Re: Configure error, Ogg not found on Mac OS X
Unga <[email protected]> Mon, 21 Apr 2014 00:38:38 -0700 (PDT)
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.general |
|---|---|
| Message-ID | <[email protected]> |
> On Sunday, April 20, 2014 9:40 PM, Joshua Root <[email protected]> wro= te: > > On 2014-4-21 00:18 , Unga wrote: >> = >> = >> Hi all >> = >> I'm trying to compile and install libvorbis 1.3.4 on Mac OS X = > (Mavericks). >> = >> When try to run configure, it shows the following error: >> = >> CC=3Dclang ./configure=A0 \ >> =A0 --prefix=3D/usr --with-ogg-libraries=3D/usr/lib \ >> =A0 --with-ogg-includes=3D/usr/include --enable-shared --disable-static > = > Leaving aside that /usr is vendor-land and thus not a great place to be > installing... > = Noted. Thanks. Will install to /usr/local once configure script runs. > = >> checking for Ogg... no >> *** Could not run Ogg test program, checking why... >> = >> The config.log shows: >> = >> configure:12648: checking for Ogg >> configure:12683: clang -o conftest -DDARWIN -fno-common = > -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char = > -Wdeclaration-after-statement=A0 -DUSE_MEMORY_H -I/usr/include=A0 confte= st.c=A0 = > -L/usr/lib -logg >&5 >> clang: warning: -O4 is equivalent to -O3 >> ld: library not found for -logg >> clang: error: linker command failed with exit code 1 (use -v to see = > invocation) > = > ...have you tried running clang with -v to see the linker command as it > suggests? > = > - Josh > = I have narrow down the problem with the following test program: #include <stdio.h> char oggpack_writealign (); int main () { =A0return oggpack_writealign (); =A0return 0; } LD_LIBRARY_PATH=3D'/usr/lib' clang oggpack.c -DDARWIN -fno-common -force_cp= usubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char -Wdeclaration-after-sta= tement -DUSE_MEMORY_H -I/usr/include -logg -lpthread -o oggpack ld: library not found for -logg clang: error: linker command failed with exit code 1 (use -v to see invocat= ion) clang oggpack.c -DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ff= ast-math -fsigned-char -Wdeclaration-after-statement -DUSE_MEMORY_H -I/usr= /include /usr/lib/libogg.dylib -lpthread -o oggpack No error. ls -l /usr/lib/ | grep ogg -rwxr-xr-x 1 root wheel 31336 Apr 20 18:37 libogg.0.dylib lrwxr-xr-x 1 root wheel 14 Apr 20 18:37 libogg.dylib -> libogg.0= .dylib ls -l /usr/lib/ | grep pthread lrwxr-xr-x 1 root wheel 15 Apr 12 11:58 libpthread.dylib -> libS= ystem.dylib This seems -logg does not look for /usr/lib/libogg.dylib ! Any idea why? Unga