Open void-main opened 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?
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?
Perhaps try:
$ export C_INCLUDE_PATH=/usr/local/include
prior to compilation. According to clang's documentation, this should add the additional search path.
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.
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...
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:
2.I've double checked that headers files has been added to
/usr/local/include
as foldercdio
andcdio++
.3.After that, I crack into audiotools folder, and tried my luck with
make install
, and here's what I've got:basically, it's complaining about the missing files of:
How can I get this work?
BTW: I'm using OSX 10.8 with python 2.7.2.