我正在尝试安装Python音频工具,但是当我运行make install
时,我得到以下输出:
python setup.py build
running build
running build_py
running build_ext
building 'audiotools.cdio' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/cdiomodule.c -o build/temp.linux-x86_64-2.7/src/cdiomodule.o
In file included from /usr/local/include/cdio/cdio.h:42:0,
from /usr/include/cdio/cdda.h:31,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/types.h:108:7: error: expected ‘;’, identifier or ‘(’ before ‘_Bool’
In file included from src/cdiomodule.h:2:0,
from src/cdiomodule.c:1:
/usr/include/cdio/cdda.h:82:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/cdda.h:209:41: error: unknown type name ‘CdIo_t’
In file included from src/cdiomodule.c:1:0:
src/cdiomodule.h:98:5: error: unknown type name ‘CdIo_t’
In file included from src/cdiomodule.c:3:0:
/usr/include/cdio/audio.h:72:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:72:47: error: unknown type name ‘CdIo_t’
/usr/include/cdio/audio.h:85:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:85:42: error: unknown type name ‘CdIo_t’
/usr/include/cdio/audio.h:94:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:94:45: error: unknown type name ‘CdIo_t’
/usr/include/cdio/audio.h:104:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:105:5: error: unknown type name ‘CdIo_t’
/usr/include/cdio/audio.h:113:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:113:52: error: unknown type name ‘CdIo_t’
/usr/include/cdio/audio.h:122:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:122:43: error: unknown type name ‘CdIo_t’
/usr/include/cdio/audio.h:131:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:131:47: error: unknown type name ‘CdIo_t’
/usr/include/cdio/audio.h:140:3: error: unknown type name ‘driver_return_code_t’
/usr/include/cdio/audio.h:140:41: error: unknown type name ‘CdIo_t’
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:34:5: error: redeclaration of enumerator ‘TRACK_FORMAT_AUDIO’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:93:5: note: previous definition of ‘TRACK_FORMAT_AUDIO’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:35:5: error: redeclaration of enumerator ‘TRACK_FORMAT_CDI’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:94:5: note: previous definition of ‘TRACK_FORMAT_CDI’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:36:5: error: redeclaration of enumerator ‘TRACK_FORMAT_XA’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:95:5: note: previous definition of ‘TRACK_FORMAT_XA’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:37:5: error: redeclaration of enumerator ‘TRACK_FORMAT_DATA’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:96:5: note: previous definition of ‘TRACK_FORMAT_DATA’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:38:5: error: redeclaration of enumerator ‘TRACK_FORMAT_PSX’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:97:5: note: previous definition of ‘TRACK_FORMAT_PSX’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:41:5: error: redeclaration of enumerator ‘TRACK_FORMAT_ERROR’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:100:5: note: previous definition of ‘TRACK_FORMAT_ERROR’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:42:5: error: conflicting types for ‘track_format_t’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:101:5: note: previous declaration of ‘track_format_t’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:73:5: error: expected identifier before numeric constant
/usr/include/cdio/track.h:112:3: error: unknown type name ‘cdtext_t’
/usr/include/cdio/track.h:112:30: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:120:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:120:11: error: conflicting types for ‘cdio_get_first_track_num’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:185:11: note: previous declaration of ‘cdio_get_first_track_num’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:126:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:136:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:142:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:147:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:153:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:153:18: error: conflicting types for ‘cdio_get_track_format’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:195:18: note: previous declaration of ‘cdio_get_track_format’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:163:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:163:8: error: conflicting types for ‘cdio_get_track_green’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:205:8: note: previous declaration of ‘cdio_get_track_green’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:169:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:183:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:183:9: error: conflicting types for ‘cdio_get_track_lba’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:214:9: note: previous declaration of ‘cdio_get_track_lba’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:197:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:197:9: error: conflicting types for ‘cdio_get_track_lsn’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:223:9: note: previous declaration of ‘cdio_get_track_lsn’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:208:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:219:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:233:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:245:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:245:8: error: conflicting types for ‘cdio_get_track_msf’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:232:8: note: previous declaration of ‘cdio_get_track_msf’ was here
In file included from src/cdiomodule.c:4:0:
/usr/include/cdio/track.h:251:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:262:3: error: unknown type name ‘CdIo_t’
/usr/include/cdio/track.h:262:16: error: conflicting types for ‘cdio_get_track_sec_count’
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:241:16: note: previous declaration of ‘cdio_get_track_sec_count’ was here
src/cdiomodule.c: In function ‘CDImage_init’:
src/cdiomodule.c:340:21: warning: assignment from incompatible pointer type [enabled by default]
src/cdiomodule.c:343:21: warning: assignment from incompatible pointer type [enabled by default]
src/cdiomodule.c:346:9: warning: implicit declaration of function ‘cdio_open_cdrdao’ [-Wimplicit-function-declaration]
src/cdiomodule.c:346:21: warning: assignment makes pointer from integer without a cast [enabled by default]
src/cdiomodule.c:349:21: warning: assignment from incompatible pointer type [enabled by default]
src/cdiomodule.c: In function ‘CDImage_dealloc’:
src/cdiomodule.c:367:9: warning: passing argument 1 of ‘cdio_destroy’ from incompatible pointer type [enabled by default]
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:116:8: note: expected ‘struct CdIo *’ but argument is of type ‘int *’
src/cdiomodule.c: In function ‘CDImage_read_sector’:
src/cdiomodule.c:398:36: warning: passing argument 1 of ‘cdio_read_audio_sector’ from incompatible pointer type [enabled by default]
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:261:7: note: expected ‘const struct CdIo *’ but argument is of type ‘int *’
src/cdiomodule.c:399:10: error: ‘DRIVER_OP_SUCCESS’ undeclared (first use in this function)
src/cdiomodule.c:399:10: note: each undeclared identifier is reported only once for each function it appears in
src/cdiomodule.c: In function ‘CDImage_read_sectors’:
src/cdiomodule.c:429:37: warning: passing argument 1 of ‘cdio_read_audio_sectors’ from incompatible pointer type [enabled by default]
In file included from /usr/include/cdio/cdda.h:31:0,
from src/cdiomodule.h:2,
from src/cdiomodule.c:1:
/usr/local/include/cdio/cdio.h:267:7: note: expected ‘const struct CdIo *’ but argument is of type ‘int *’
src/cdiomodule.c:430:10: error: ‘DRIVER_OP_SUCCESS’ undeclared (first use in this function)
src/cdiomodule.c: In function ‘cdio_identify_cdrom’:
src/cdiomodule.c:556:10: warning: implicit declaration of function ‘cdio_is_tocfile’ [-Wimplicit-function-declaration]
src/cdiomodule.c:558:10: warning: implicit declaration of function ‘cdio_is_nrg’ [-Wimplicit-function-declaration]
error: command 'gcc' failed with exit status 1
make: *** [all] Error 1
有没有人知道如何解决这个问题?
提前致谢!
答案 0 :(得分:1)
看起来你有一些混合的依赖。你手动安装了libcdio
吗?
如果是这样,您可以尝试从默认存储库安装这些依赖项:在我的系统(12.04)上使用它们,Audio Tools编译时没有任何错误:
sudo apt-get install libcdio-dev libcdio-paranoia-dev
此外,它似乎编译了一些python模块,因此您可能需要:
sudo apt-get install python-dev
如果在此之后您仍然遇到该错误,则可能必须卸载手动安装的libcdio
库。