Code Monkey home page Code Monkey logo

Comments (5)

tuffy avatar tuffy commented on July 18, 2024

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?

from python-audio-tools.

void-main avatar void-main commented on July 18, 2024

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?

from python-audio-tools.

tuffy avatar tuffy commented on July 18, 2024

Perhaps try:

$ export C_INCLUDE_PATH=/usr/local/include

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

from python-audio-tools.

void-main avatar void-main commented on July 18, 2024

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.

from python-audio-tools.

gfranxman avatar gfranxman commented on July 18, 2024

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...

from python-audio-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.