Hi, On compiling vorbis in a cygwin shell using "./autogen.sh" I get the following error... configure:19396: checking for Ogg configure:19431: gcc -o conftest.exe -O20 -D__NO_MATH_INLINES -fsigned-char -DUSE_MEMORY_H conftest.c -lm -logg >&5 /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -logg collect2: ld returned 1 exit status The Ogg library "libogg" is properly installed - I can see it in the /usr/local/lib directory. It seems to me that the config script tries to link an "ogg" library. I do not understand that. To make shure not to use a version out of date, I have downloaded the nightly cvs snapshot from yesterday and tried again - no changes. Can anybody help me? Thanks, Roland --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
At 06:31 AM 2/18/2004, you wrote:>Hi, > >On compiling vorbis in a cygwin shell using "./autogen.sh" I get the >following error... > >configure:19396: checking for Ogg >configure:19431: gcc -o conftest.exe -O20 -D__NO_MATH_INLINES -fsigned-char >-DUSE_MEMORY_H conftest.c -lm -logg >&5 >/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: >cannot find -logg >collect2: ld returned 1 exit status > >The Ogg library "libogg" is properly installed - I can see it in the >/usr/local/lib directory. It seems to me that the config script tries to >link an "ogg" library. I do not understand that. To make shure not to use a >version out of date, I have downloaded the nightly cvs snapshot from >yesterday and tried again - no changes. > >Can anybody help me? > >Thanks, >RolandHave you tried -llibogg? --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Yes! Therefore I changed the line OGG_LIBS="OGG_LIBS -logg" to OGG_LIBS="OGG_LIBS -llibogg" I also had to have writeprotect the file, otherwise it becomes overwritten during the autogen process. The error message does only change the term -logg to -llibogg, the error keeps the same. Where is the right place to change the library name? <p><p>-----Original Message----- From: owner-vorbis-dev@xiph.org [mailto:owner-vorbis-dev@xiph.org] On Behalf Of Tim Sent: Wednesday, February 18, 2004 6:32 PM To: vorbis-dev@xiph.org Subject: Re: [vorbis-dev] compiling vorbis in cygwin programmer_ted wrote:> Have you tried -llibogg?The 'lib' prefix is assumed. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Wed 18 February 2004 15:31, Wintersteller, Roland wrote:> Hi, > > On compiling vorbis in a cygwin shell using "./autogen.sh" I get > the following error... > > configure:19396: checking for Ogg > configure:19431: gcc -o conftest.exe -O20 -D__NO_MATH_INLINES > -fsigned-char -DUSE_MEMORY_H conftest.c -lm -logg >&5 > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/ >bin/ld: cannot find -logg > collect2: ld returned 1 exit status > > The Ogg library "libogg" is properly installed - I can see it in > the /usr/local/lib directory. It seems to me that the config > script tries to link an "ogg" library. I do not understand that. > To make shure not to use a version out of date, I have downloaded > the nightly cvs snapshot from yesterday and tried again - no > changes.You need to run ldconfig after installing libraries to let the linker recreate its index of what is where. It may be that /usr/local/lib is not in its search path, on Linux systems this is defined in /etc/ld.so.conf. I don't know about Cygwin, but it's probably in the equivalent location. HTH, Lourens -- GPG public key: http://home.student.utwente.nl/l.e.veen/lourens.key --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On 2004-02-18 at 15:31:46 Wintersteller, Roland wrote:> configure:19431: gcc -o conftest.exe -O20 -D__NO_MATH_INLINES -fsigned-char > -DUSE_MEMORY_H conftest.c -lm -logg >&5 > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: > cannot find -loggTry adding -L/usr/local/lib to your LDFLAGS, i.e.: LDFLAGS="-L/usr/local/lib" ./autogen.sh Alternatively, you can instruct the ogg configure stage to put its libs in /usr/lib instead of /usr/local/lib, which makes it easier for other programs to find those library files. However, this will clobber up your Cygwin installation. Btw, note that passing a "-lfoo" option to ld will make it look for a file "libfoo.a". You should *not* specify "-llibfoo". Cheers, Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 184 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20040218/d1779116/part-0001.pgp
Thx for all your inputs. I've managed it now. First I modified the configure script from ogg_libraries="" to ogg_libraries="usr/local/bin". With this modification the configure script successfully finishes. Unfortunately the ./configure script is rewritten during the ./autogen process and I don't know where the right place for this modification is. (Do anybody know?) A second way is to call ./autogen with the option --with-ogg-libraries=/usr/local/bin This works fine. So, thanks a lot. Roland <p><p><p>-----Original Message----- From: Dimitry Andric [mailto:dimitry@andric.com] Sent: Wednesday, February 18, 2004 8:49 PM To: Lourens Veen Cc: vorbis-dev@xiph.org; Wintersteller, Roland Subject: Re: compiling vorbis in cygwin On 2004-02-18 at 20:31:47 Lourens Veen wrote:> You need to run ldconfig after installing libraries to let the > linker recreate its index of what is where.Cygwin doesn't have ldconfig, and on systems where it does exist, it is only for shared libraries. Some configure scripts or gcc installations do automatically look in /usr/local/include for include files, and /usr/local/lib for library files, but if they don't, you'll have to explicitly specify CFLAGS and/or LDFLAGS for them. Cheers, Dimitry --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.