Error compiling libsndfile

Emmanuel Hainry ehainry at free.fr
Thu Mar 8 06:05:10 PST 2007


Citando jofivigo at gmail.com :
> Hello. i'm trying to compile libsndfile 1.0.17 from the latest  
> MacPorts but I'm getting this error:
> 
> /usr/bin/libtool: can't locate file for: -lFLAC
> /usr/bin/libtool: file: -lFLAC is not an object file (not allowed in  
> a library)
> make[3]: *** [libsndfile.la] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1
> 
> Warning: the following items did not execute (for libsndfile):  
> com.apple.activate com.apple.build com.apple.destroot com.apple.install
> Error: Status 1 encountered during processing.
> 
> I've installed FLAC through MacPorts but it still doesn't compile,  
> spitting the same errors. Should I install FLAC directly from source,  
> even if I don't need it?
> 

As stated in http://trac.macports.org/projects/macports/ticket/10905 ,
this problem may arise if you have installed xiph's quicktime elements.
To forbid gcc to use this framework, you can add the line 

configure.env   CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib 

to the portfile (using port edit libsndfile). Then port clean and port
instal again.

Hope this helps

Emmanuel

PS: or you can add --disable-flac to the configure.args line.



More information about the macports-users mailing list