Comments (5)
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.
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.
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.
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.
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)
- musepack support HOT 12
- Seperate Audio Decoders/Encoders and Audio Utils. HOT 1
- Output filename issue: *** Error: output file "track00.wav" occurs more than once HOT 1
- Utility to automatically merge gapless tracks HOT 1
- Fix CoreAudio for Python 3.x builds.
- "Error: read error during encoding" during wav to flac conversion
- ImportError: cannot import name WavPackDecoder HOT 1
- have any demo code for playing mp3?
- Import error while using `to_pcm()` method of OpusAudio class
- 'python setup.py clean' does not clean build files HOT 1
- audiotools.open does not recognize MP3 files in MPEG-2 or MPEG-2.5 format
- Error building on Windows pcm.h syntax error HOT 3
- how to change the output? HOT 1
- Is there a way to enqueue audio files for playing? HOT 1
- No ReplayGain tags added to aiff files
- raise UnsupportedFile(filename) HOT 2
- duplicate man audiotools.cfg.5 in man1 and man5
- FreeDB is no more HOT 1
- Container with python-audio-tools
- Missing mp3 write support after building, not sure how to debug why
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-audio-tools.