Page 1 of 1

configure cannot find in /usr/local/lib & /usr/include

Posted: 07 Jan 2013 06:10
by Vaselinessa
I'm following the instructions to cross compile for win32, and when I reach the configure step, I get errors telling me that I lack libraries (libmad) or header files (for libfaad). However, when I look for these files, they appear to be in ordinary places, such as /usr/local/lib and /usr/include. Can anyone tell me what I must change?

Here's the error message I get when running configure:

Code: Select all

$ ../extras/package/win32/configure.sh --host=i686-w64-mingw32 <lots of checks...> configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.
...Yet when I look for libmad using `find` or `aptitude`, it appears to be installed. (Indeed, I downloaded the library from the url given in the error message):

Code: Select all

$ find / -name libmad.so /usr/lib/i386-linux-gnu/libmad.so /usr/local/lib/libmad.so /home/<me>/Downloads/libmad-0.15.0b/.libs/libmad.so $ aptitude search libmad p libmad-ocaml - OCaml bindings for the MAD library (Runtim v libmad-ocaml-0hmp8 - p libmad-ocaml-dev - OCaml bindings for the MAD library (Develo v libmad-ocaml-dev-0hmp8 - i libmad0 - MPEG audio decoder library i libmad0-dev - MPEG audio decoder development library i A libmadlib - mesh adaptation library p libmadlib-dbg - mesh adaptation library i libmadlib-dev - mesh adaptation library
I also tried including the `--disable-mad` flag in my call to the configure script, but that yielded the error:

Code: Select all

configure: error: Cannot find development headers for libfaad...
...Yet the libfaad headers too appear to me be in their proper place:

Code: Select all

$ find / -name faad.h /usr/include/faad.h /home/<me>/dev/win/vlc/contrib/i686-linux-gnu/include/faad.h /home/<me>/dev/win/vlc/contrib/win32/faad2/include/faad.h

Re: configure cannot find in /usr/local/lib & /usr/include

Posted: 07 Jan 2013 11:56
by Jean-Baptiste Kempf
Oh course, the one in /usr/local/lib/ are not for Win32!
Look in your config.log at the place where it searches for 3rd party.

Re: configure cannot find in /usr/local/lib & /usr/include

Posted: 07 Jan 2013 15:46
by Vaselinessa
Ah. Then do I need to add dirs to my PATH variable to include subdirs within <vlc root>/contrib/win32?

My config log provides the following details (among others):

Code: Select all

hostname = markham-Latitude-D830 uname -m = i686 uname -r = 3.5.0-17-generic uname -s = Linux uname -v = #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /home/<me>/bin

Re: configure cannot find in /usr/local/lib & /usr/include

Posted: 07 Jan 2013 15:48
by Jean-Baptiste Kempf
No, you might need to symlink your win32 to mingw32