[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sox-users
Subject:    [SoX-users] FLAC and OGG detection in ./configure
From:       Jan Stary <hans () stare ! cz>
Date:       2012-03-11 22:37:58
Message-ID: 20120311223757.GA20919 () www ! stare ! cz
[Download RAW message or body]

The detection of FLAC and OGG support is strange.
This is what happens with current git on MacOSX:

hans@mac:sox$ ./configure --prefix=$HOME
[...]

BUILD OPTIONS
Debugging build............no
Distro name ...............not specified!
Dynamic loading support....yes
Pkg-config location........disabled
Play and rec symlinks......yes
Symlinks enabled...........yes

OPTIONAL DEVICE DRIVERS
ao (Xiph)..................no
alsa (Linux)...............no
coreaudio (Mac OS X).......yes
sndio (OpenBSD)............no
oss........................no
pulseaudio.................no
sunaudio...................no
waveaudio (MS-Windows).....no

OPTIONAL FILE FORMATS
amrnb......................no
amrwb......................no
ffmpeg.....................no
flac.......................no
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp2/mp3....................no
 id3tag....................no
 lame......................no
 mad.......................no
 twolame...................no
oggvorbis..................no
sndfile....................yes
 dlopen sndfile............no
wavpack....................no

OTHER OPTIONS
ladspa effects.............yes
magic support..............no
png support................no
GOMP support...............no

Configure finished.  Do 'make -s && make install' to compile and install SoX.


Besides gsm and lpc10, which are in-tree, the coreaudio framework is detected,
sndfile is detected, and the ladspa effects are detected. Nothing else
is detected. I understand this is probably because only _some_ of
the stuff in configure queries pkg-config. Now,

hans@mac:sox$ make
[...]

hans@mac:sox$ make install
[...]

hans@mac:sox$ which sox
/Users/hans/bin/sox

hans@mac:sox$ otool -L ~/bin/sox
/Users/hans/bin/sox:
	/Users/hans/lib/libsox.3.dylib (compatibility version 4.0.0, current version 4.0.0)
	/opt/local/lib/libltdl.7.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/local/lib/libsndfile.1.dylib (compatibility version 2.0.0, current version 2.25.0)
	/opt/local/lib/libFLAC.8.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/local/lib/libvorbisenc.2.dylib (compatibility version 3.0.0, current version 3.8.0)
	/opt/local/lib/libvorbis.0.dylib (compatibility version 5.0.0, current version 5.5.0)
	/opt/local/lib/libogg.0.dylib (compatibility version 9.0.0, current version 9.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.7)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)


So while ./configure did not detect FLAC or OGG,
make built the sox binary linked against them.
Yet it cannot use them:

hans@mac:sox$ sox -n /tmp/file.wav trim 0 10

hans@mac:sox$ sox /tmp/file.wav /tmp/file.flac
sox FAIL formats: no handler for file extension `flac'

hans@mac:sox$ sox /tmp/file.wav /tmp/file.ogg
sox FAIL formats: no handler for file extension `ogg'


Unfortunately, I don't know anything about the auto* tools
and the whole config* world (and I am a bit intimidated
by configure being 32203 lines of unreadable shell code).

	Jan


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic