[Vorbis] Configure error, Ogg not found on Mac OS X

Joshua Root josh+xiph at root.id.au
Mon Apr 21 02:30:02 PDT 2014


On 2014-4-21 17:38 , Unga wrote:
> 
> I have narrow down the problem with the following test program:
> 
> #include <stdio.h>
> 
> char oggpack_writealign ();
> 
> int
> main ()
> {
>  return oggpack_writealign ();
>  return 0;
> }
> 
> LD_LIBRARY_PATH='/usr/lib' clang oggpack.c -DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char -Wdeclaration-after-statement  -DUSE_MEMORY_H -I/usr/include -logg -lpthread -o oggpack

LD_LIBRARY_PATH is hardly used on OS X (only by dlopen() AFAIK) and
there isn't an exact equivalent to the function it has on Linux. You
probably meant LIBRARY_PATH if you wanted (roughly) the equivalent of -L?

> ld: library not found for -logg
> clang: error: linker command failed with exit code 1 (use -v to see invocation)

Works for me (when I create a libogg.dylib link in /usr/lib). What clang
are you using? (-v would have shown this.)

- Josh


More information about the Vorbis mailing list