tuffy / python-audio-tools

A collection of audio handling programs which work from the command line.
http://audiotools.sourceforge.net
GNU General Public License v2.0
251 stars 57 forks source link

Cannot install on OSX 10.8 #16

Open void-main opened 11 years ago

void-main commented 11 years ago

This is what I've done to install audiotools-2.19 (the zip file downloaded from sourceforge):

1.I've downloaded the libcdio src from a git repo, and use the following instructions to make install it:

git clone git://git.sv.gnu.org/libcdio.git
cd libcdio
touch doc/version.texi
./autogen.sh   ##This creates different ./configure with development stuff I guess
./configure
make
sudo make install

2.I've double checked that headers files has been added to /usr/local/include as folder cdio and cdio++.

3.After that, I crack into audiotools folder, and tried my luck with make install, and here's what I've got:

voidmain@MBP  ~/Developement/audiotools-2.19  make install
python setup.py install
running install
running build
running build_py
creating build
creating build/lib.macosx-10.8-intel-2.7
creating build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/__init__.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/accuraterip.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/aiff.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/ape.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/au.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/cue.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/delta.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/dvda.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/flac.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/freedb.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/id3.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/id3v1.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/image.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/m4a.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/m4a_atoms.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/mp3.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/musicbrainz.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/ogg.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/opus.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/player.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/shn.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/text.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/toc.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/ui.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/vorbis.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/vorbiscomment.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/wav.py -> build/lib.macosx-10.8-intel-2.7/audiotools
copying audiotools/wavpack.py -> build/lib.macosx-10.8-intel-2.7/audiotools
creating build/lib.macosx-10.8-intel-2.7/audiotools/py_decoders
copying audiotools/py_decoders/__init__.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_decoders
copying audiotools/py_decoders/alac.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_decoders
copying audiotools/py_decoders/flac.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_decoders
copying audiotools/py_decoders/shn.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_decoders
copying audiotools/py_decoders/wavpack.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_decoders
creating build/lib.macosx-10.8-intel-2.7/audiotools/py_encoders
copying audiotools/py_encoders/__init__.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_encoders
copying audiotools/py_encoders/alac.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_encoders
copying audiotools/py_encoders/flac.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_encoders
copying audiotools/py_encoders/shn.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_encoders
copying audiotools/py_encoders/wavpack.py -> build/lib.macosx-10.8-intel-2.7/audiotools/py_encoders
running build_ext
building 'audiotools.cdio' extension
creating build/temp.macosx-10.8-intel-2.7
creating build/temp.macosx-10.8-intel-2.7/src
gcc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/cdiomodule.c -o build/temp.macosx-10.8-intel-2.7/src/cdiomodule.o
In file included from src/cdiomodule.c:1:
src/cdiomodule.h:2:23: error: cdio/cdda.h: No such file or directory
src/cdiomodule.h:3:27: error: cdio/paranoia.h: No such file or directory
In file included from src/cdiomodule.c:1:
src/cdiomodule.h:15: error: expected specifier-qualifier-list before ‘cdrom_drive_t’
src/cdiomodule.h:63: error: expected declaration specifiers or ‘...’ before ‘paranoia_cb_mode_t’
src/cdiomodule.h:101: error: expected specifier-qualifier-list before ‘CdIo_t’
In file included from src/cdiomodule.c:2:
/usr/local/include/cdio/cd_types.h:149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_guess_cd_type’
In file included from src/cdiomodule.c:3:
/usr/local/include/cdio/audio.h:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_get_volume’
/usr/local/include/cdio/audio.h:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_pause’
/usr/local/include/cdio/audio.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_play_msf’
/usr/local/include/cdio/audio.h:104: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_play_track_index’
/usr/local/include/cdio/audio.h:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_read_subchannel’
/usr/local/include/cdio/audio.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_resume’
/usr/local/include/cdio/audio.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_set_volume’
/usr/local/include/cdio/audio.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_stop’
In file included from src/cdiomodule.c:4:
/usr/local/include/cdio/track.h:105: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:111: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:121: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:127: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:132: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:138: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:148: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:154: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:168: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:182: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:193: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:204: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:218: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:230: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:236: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:247: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/cdiomodule.c: In function ‘CDDA_dealloc’:
src/cdiomodule.c:70: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:71: warning: implicit declaration of function ‘cdio_paranoia_free’
src/cdiomodule.c:71: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:72: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:73: warning: implicit declaration of function ‘cdio_cddap_close’
src/cdiomodule.c:73: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDDA_new’:
src/cdiomodule.c:85: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDDA_init’:
src/cdiomodule.c:94: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:99: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:102: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:102: warning: implicit declaration of function ‘cdio_cddap_identify’
src/cdiomodule.c:103: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:109: warning: implicit declaration of function ‘cdio_cddap_open’
src/cdiomodule.c:109: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:115: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:115: warning: implicit declaration of function ‘cdio_paranoia_init’
src/cdiomodule.c:115: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:116: warning: implicit declaration of function ‘paranoia_modeset’
src/cdiomodule.c:116: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:117: error: ‘PARANOIA_MODE_FULL’ undeclared (first use in this function)
src/cdiomodule.c:117: error: (Each undeclared identifier is reported only once
src/cdiomodule.c:117: error: for each function it appears in.)
src/cdiomodule.c:117: error: ‘PARANOIA_MODE_NEVERSKIP’ undeclared (first use in this function)
src/cdiomodule.c: In function ‘CDDA_total_tracks’:
src/cdiomodule.c:125: warning: implicit declaration of function ‘cdio_cddap_tracks’
src/cdiomodule.c:125: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_track_offsets’:
src/cdiomodule.c:140: warning: implicit declaration of function ‘cdio_cddap_track_firstsector’
src/cdiomodule.c:140: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:142: warning: implicit declaration of function ‘cdio_cddap_track_lastsector’
src/cdiomodule.c:142: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_read_sector’:
src/cdiomodule.c:161: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:177: warning: implicit declaration of function ‘cdio_paranoia_read_limited’
src/cdiomodule.c:177: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:179: warning: assignment makes pointer from integer without a cast
src/cdiomodule.c: In function ‘CDDA_read_sectors’:
src/cdiomodule.c:207: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:224: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:226: warning: assignment makes pointer from integer without a cast
src/cdiomodule.c: In function ‘CDDA_first_sector’:
src/cdiomodule.c:242: warning: implicit declaration of function ‘cdio_cddap_disc_firstsector’
src/cdiomodule.c:242: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_last_sector’:
src/cdiomodule.c:248: warning: implicit declaration of function ‘cdio_cddap_disc_lastsector’
src/cdiomodule.c:248: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_track_type’:
src/cdiomodule.c:260: warning: implicit declaration of function ‘cdio_get_track_format’
src/cdiomodule.c:260: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_seek’:
src/cdiomodule.c:273: warning: implicit declaration of function ‘cdio_paranoia_seek’
src/cdiomodule.c:273: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c: In function ‘CDDA_set_speed’:
src/cdiomodule.c:288: warning: implicit declaration of function ‘cdio_cddap_speed_set’
src/cdiomodule.c:288: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_length_in_seconds’:
src/cdiomodule.c:301: warning: implicit declaration of function ‘cdio_get_track_msf’
src/cdiomodule.c:301: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:303: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDImage_new’:
src/cdiomodule.c:321: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:322: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c:324: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDImage_init’:
src/cdiomodule.c:333: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:334: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:339: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:344: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:344: warning: implicit declaration of function ‘cdio_open_cue’
src/cdiomodule.c:347: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:347: warning: implicit declaration of function ‘cdio_open_bincue’
src/cdiomodule.c:350: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:350: warning: implicit declaration of function ‘cdio_open_cdrdao’
src/cdiomodule.c:353: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:353: warning: implicit declaration of function ‘cdio_open_nrg’
src/cdiomodule.c:356: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:360: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_dealloc’:
src/cdiomodule.c:370: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:371: warning: implicit declaration of function ‘cdio_destroy’
src/cdiomodule.c:371: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDImage_total_tracks’:
src/cdiomodule.c:379: warning: implicit declaration of function ‘cdio_get_last_track_num’
src/cdiomodule.c:379: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_track_offsets’:
src/cdiomodule.c:394: warning: implicit declaration of function ‘cdio_get_track_lsn’
src/cdiomodule.c:394: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:395: warning: implicit declaration of function ‘cdio_get_track_last_lsn’
src/cdiomodule.c:395: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_read_sector’:
src/cdiomodule.c:405: error: ‘CDIO_CD_FRAMESIZE_RAW’ undeclared (first use in this function)
src/cdiomodule.c:406: warning: implicit declaration of function ‘cdio_read_audio_sector’
src/cdiomodule.c:406: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:408: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c:409: error: ‘DRIVER_OP_SUCCESS’ undeclared (first use in this function)
src/cdiomodule.c:410: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:417: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c: In function ‘CDImage_read_sectors’:
src/cdiomodule.c:435: error: ‘CDIO_CD_FRAMESIZE_RAW’ undeclared (first use in this function)
src/cdiomodule.c:436: warning: implicit declaration of function ‘cdio_read_audio_sectors’
src/cdiomodule.c:436: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:438: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c:440: error: ‘DRIVER_OP_SUCCESS’ undeclared (first use in this function)
src/cdiomodule.c:441: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:449: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c: In function ‘CDImage_first_sector’:
src/cdiomodule.c:461: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:462: warning: implicit declaration of function ‘cdio_get_first_track_num’
src/cdiomodule.c:462: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_last_sector’:
src/cdiomodule.c:468: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:469: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_track_type’:
src/cdiomodule.c:480: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_seek’:
src/cdiomodule.c:486: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c: In function ‘CDImage_length_in_seconds’:
src/cdiomodule.c:499: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:500: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: At top level:
src/cdiomodule.c:534: error: expected declaration specifiers or ‘...’ before ‘paranoia_cb_mode_t’
src/cdiomodule.c: In function ‘read_sector_callback’:
src/cdiomodule.c:542: error: ‘mode’ undeclared (first use in this function)
src/cdiomodule.c: In function ‘cdio_identify_cdrom’:
src/cdiomodule.c:563: warning: implicit declaration of function ‘cdio_is_cuefile’
src/cdiomodule.c:565: warning: implicit declaration of function ‘cdio_is_binfile’
src/cdiomodule.c:567: warning: implicit declaration of function ‘cdio_is_tocfile’
src/cdiomodule.c:569: warning: implicit declaration of function ‘cdio_is_nrg’
src/cdiomodule.c:576: warning: implicit declaration of function ‘cdio_is_device’
src/cdiomodule.c:576: error: ‘DRIVER_LINUX’ undeclared (first use in this function)
In file included from src/cdiomodule.c:1:
src/cdiomodule.h:2:23: error: cdio/cdda.h: No such file or directory
src/cdiomodule.h:3:27: error: cdio/paranoia.h: No such file or directory
In file included from src/cdiomodule.c:1:
src/cdiomodule.h:15: error: expected specifier-qualifier-list before ‘cdrom_drive_t’
src/cdiomodule.h:63: error: expected declaration specifiers or ‘...’ before ‘paranoia_cb_mode_t’
src/cdiomodule.h:101: error: expected specifier-qualifier-list before ‘CdIo_t’
In file included from src/cdiomodule.c:2:
/usr/local/include/cdio/cd_types.h:149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_guess_cd_type’
In file included from src/cdiomodule.c:3:
/usr/local/include/cdio/audio.h:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_get_volume’
/usr/local/include/cdio/audio.h:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_pause’
/usr/local/include/cdio/audio.h:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_play_msf’
/usr/local/include/cdio/audio.h:104: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_play_track_index’
/usr/local/include/cdio/audio.h:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_read_subchannel’
/usr/local/include/cdio/audio.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_resume’
/usr/local/include/cdio/audio.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_set_volume’
/usr/local/include/cdio/audio.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cdio_audio_stop’
In file included from src/cdiomodule.c:4:
/usr/local/include/cdio/track.h:105: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:111: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:121: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:127: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:132: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:138: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:148: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:154: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:168: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:182: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:193: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:204: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:218: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:230: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:236: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/usr/local/include/cdio/track.h:247: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
src/cdiomodule.c: In function ‘CDDA_dealloc’:
src/cdiomodule.c:70: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:71: warning: implicit declaration of function ‘cdio_paranoia_free’
src/cdiomodule.c:71: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:72: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:73: warning: implicit declaration of function ‘cdio_cddap_close’
src/cdiomodule.c:73: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:74: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDDA_new’:
src/cdiomodule.c:85: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDDA_init’:
src/cdiomodule.c:94: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:99: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:102: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:102: warning: implicit declaration of function ‘cdio_cddap_identify’
src/cdiomodule.c:103: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:109: warning: implicit declaration of function ‘cdio_cddap_open’
src/cdiomodule.c:109: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:115: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:115: warning: implicit declaration of function ‘cdio_paranoia_init’
src/cdiomodule.c:115: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:116: warning: implicit declaration of function ‘paranoia_modeset’
src/cdiomodule.c:116: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:117: error: ‘PARANOIA_MODE_FULL’ undeclared (first use in this function)
src/cdiomodule.c:117: error: (Each undeclared identifier is reported only once
src/cdiomodule.c:117: error: for each function it appears in.)
src/cdiomodule.c:117: error: ‘PARANOIA_MODE_NEVERSKIP’ undeclared (first use in this function)
src/cdiomodule.c: In function ‘CDDA_total_tracks’:
src/cdiomodule.c:125: warning: implicit declaration of function ‘cdio_cddap_tracks’
src/cdiomodule.c:125: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_track_offsets’:
src/cdiomodule.c:140: warning: implicit declaration of function ‘cdio_cddap_track_firstsector’
src/cdiomodule.c:140: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:142: warning: implicit declaration of function ‘cdio_cddap_track_lastsector’
src/cdiomodule.c:142: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_read_sector’:
src/cdiomodule.c:161: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:177: warning: implicit declaration of function ‘cdio_paranoia_read_limited’
src/cdiomodule.c:177: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:179: warning: assignment makes pointer from integer without a cast
src/cdiomodule.c: In function ‘CDDA_read_sectors’:
src/cdiomodule.c:207: error: ‘cdio_CDDAObject’ has no member named ‘pcm_module’
src/cdiomodule.c:224: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c:226: warning: assignment makes pointer from integer without a cast
src/cdiomodule.c: In function ‘CDDA_first_sector’:
src/cdiomodule.c:242: warning: implicit declaration of function ‘cdio_cddap_disc_firstsector’
src/cdiomodule.c:242: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_last_sector’:
src/cdiomodule.c:248: warning: implicit declaration of function ‘cdio_cddap_disc_lastsector’
src/cdiomodule.c:248: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_track_type’:
src/cdiomodule.c:260: warning: implicit declaration of function ‘cdio_get_track_format’
src/cdiomodule.c:260: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_seek’:
src/cdiomodule.c:273: warning: implicit declaration of function ‘cdio_paranoia_seek’
src/cdiomodule.c:273: error: ‘cdio_CDDAObject’ has no member named ‘paranoia’
src/cdiomodule.c: In function ‘CDDA_set_speed’:
src/cdiomodule.c:288: warning: implicit declaration of function ‘cdio_cddap_speed_set’
src/cdiomodule.c:288: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDDA_length_in_seconds’:
src/cdiomodule.c:301: warning: implicit declaration of function ‘cdio_get_track_msf’
src/cdiomodule.c:301: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c:303: error: ‘cdio_CDDAObject’ has no member named ‘cdrom_drive’
src/cdiomodule.c: In function ‘CDImage_new’:
src/cdiomodule.c:321: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:322: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c:324: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDImage_init’:
src/cdiomodule.c:333: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:334: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:339: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:344: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:344: warning: implicit declaration of function ‘cdio_open_cue’
src/cdiomodule.c:347: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:347: warning: implicit declaration of function ‘cdio_open_bincue’
src/cdiomodule.c:350: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:350: warning: implicit declaration of function ‘cdio_open_cdrdao’
src/cdiomodule.c:353: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:353: warning: implicit declaration of function ‘cdio_open_nrg’
src/cdiomodule.c:356: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:360: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_dealloc’:
src/cdiomodule.c:370: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:371: warning: implicit declaration of function ‘cdio_destroy’
src/cdiomodule.c:371: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:373: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c: In function ‘CDImage_total_tracks’:
src/cdiomodule.c:379: warning: implicit declaration of function ‘cdio_get_last_track_num’
src/cdiomodule.c:379: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_track_offsets’:
src/cdiomodule.c:394: warning: implicit declaration of function ‘cdio_get_track_lsn’
src/cdiomodule.c:394: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:395: warning: implicit declaration of function ‘cdio_get_track_last_lsn’
src/cdiomodule.c:395: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_read_sector’:
src/cdiomodule.c:405: error: ‘CDIO_CD_FRAMESIZE_RAW’ undeclared (first use in this function)
src/cdiomodule.c:406: warning: implicit declaration of function ‘cdio_read_audio_sector’
src/cdiomodule.c:406: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:408: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c:409: error: ‘DRIVER_OP_SUCCESS’ undeclared (first use in this function)
src/cdiomodule.c:410: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:417: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c: In function ‘CDImage_read_sectors’:
src/cdiomodule.c:435: error: ‘CDIO_CD_FRAMESIZE_RAW’ undeclared (first use in this function)
src/cdiomodule.c:436: warning: implicit declaration of function ‘cdio_read_audio_sectors’
src/cdiomodule.c:436: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:438: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c:440: error: ‘DRIVER_OP_SUCCESS’ undeclared (first use in this function)
src/cdiomodule.c:441: error: ‘cdio_CDImage’ has no member named ‘pcm_module’
src/cdiomodule.c:449: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c: In function ‘CDImage_first_sector’:
src/cdiomodule.c:461: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:462: warning: implicit declaration of function ‘cdio_get_first_track_num’
src/cdiomodule.c:462: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_last_sector’:
src/cdiomodule.c:468: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:469: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_track_type’:
src/cdiomodule.c:480: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: In function ‘CDImage_seek’:
src/cdiomodule.c:486: error: ‘cdio_CDImage’ has no member named ‘current_sector’
src/cdiomodule.c: In function ‘CDImage_length_in_seconds’:
src/cdiomodule.c:499: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c:500: error: ‘cdio_CDImage’ has no member named ‘image’
src/cdiomodule.c: At top level:
src/cdiomodule.c:534: error: expected declaration specifiers or ‘...’ before ‘paranoia_cb_mode_t’
src/cdiomodule.c: In function ‘read_sector_callback’:
src/cdiomodule.c:542: error: ‘mode’ undeclared (first use in this function)
src/cdiomodule.c: In function ‘cdio_identify_cdrom’:
src/cdiomodule.c:563: warning: implicit declaration of function ‘cdio_is_cuefile’
src/cdiomodule.c:565: warning: implicit declaration of function ‘cdio_is_binfile’
src/cdiomodule.c:567: warning: implicit declaration of function ‘cdio_is_tocfile’
src/cdiomodule.c:569: warning: implicit declaration of function ‘cdio_is_nrg’
src/cdiomodule.c:576: warning: implicit declaration of function ‘cdio_is_device’
src/cdiomodule.c:576: error: ‘DRIVER_LINUX’ undeclared (first use in this function)
lipo: can't open input file: /var/folders/y3/vdmp2qn93q7f8dzj14w1l2lc0000gn/T//ccj0b77A.out (No such file or directory)
error: command 'gcc' failed with exit status 1
make: *** [install] Error 1

basically, it's complaining about the missing files of:

src/cdiomodule.h:2:23: error: cdio/cdda.h: No such file or directory
src/cdiomodule.h:3:27: error: cdio/paranoia.h: No such file or directory

How can I get this work?

BTW: I'm using OSX 10.8 with python 2.7.2.

tuffy commented 11 years ago

On my Mac OS X 10.8 machines, cdio module compilation using built-in Python 2.7.2 and XCode 4.6.3 looks like:

running build_ext
building 'audiotools.cdio' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/cdiomodule.c -o build/temp.macosx-10.8-intel-2.7/src/cdiomodule.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang -bundle -undefined dynamic_lookup -Wl,-F. -arch i386 -arch x86_64 build/temp.macosx-10.8-intel-2.7/src/cdiomodule.o -lcdio -lcdio_paranoia -lcdio_cdda -lm -o build/lib.macosx-10.8-intel-2.7/audiotools/cdio.so
ld: warning: ld: warning: ld: warning: ignoring file /usr/local/lib/libcdio.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libcdio.dylibignoring file /usr/local/lib/libcdio_cdda.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libcdio_cdda.dylibignoring file /usr/local/lib/libcdio_paranoia.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/lib/libcdio_paranoia.dylib

and seems to function correctly. Are you also using XCode for a compiler?

void-main commented 11 years ago

I've changed to compiler back to clang, and here's what I've got:

python setup.py build
running build
running build_py
running build_ext
building 'audiotools.cdio' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/cdiomodule.c -o build/temp.macosx-10.8-intel-2.7/src/cdiomodule.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
In file included from src/cdiomodule.c:1:
src/cdiomodule.h:2:10: fatal error: 'cdio/cdda.h' file not found
#include <cdio/cdda.h>
         ^
1 error generated.
error: command 'clang' failed with exit status 1
make: *** [all] Error 1

It's telling me that cdio-related header files cannot be found, but I did found them on /usr/local/include, what can be wrong here?

tuffy commented 11 years ago

Perhaps try:

$ export C_INCLUDE_PATH=/usr/local/include

prior to compilation. According to clang's documentation, this should add the additional search path.

void-main commented 11 years ago

Thanks tuffy, I tried: $ export C_INCLUDE_PATH=/usr/local/include && make install

But still got the same error. Something must be wrong with my cdio installation.

gfranxman commented 10 years ago

Did you overcome this? My /usr/local/include has only: /usr/local/include/cdio/ audio.h cdio.h disc.h iso9660.h mmc_hl_cmds.h read.h types.h utf8.h bytesex.h cdio_config.h ds.h logging.h mmc_ll_cmds.h rock.h udf.h util.h bytesex_asm.h cdtext.h dvd.h mmc.h mmc_util.h sector.h udf_file.h version.h cd_types.h device.h ecma_167.h mmc_cmds.h posix.h track.h udf_time.h xa.h

My cdio is ver 0.92. Perhaps cdda.h and paranoia.h are from an older version...