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

This forum is about all development around libVLC.
Vaselinessa
Blank Cone
Blank Cone
Posts: 48
Joined: 03 Apr 2011 02:26
Location: Sacramento, CA

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

Postby Vaselinessa » 07 Jan 2013 06:10

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 07 Jan 2013 11:56

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Vaselinessa
Blank Cone
Blank Cone
Posts: 48
Joined: 03 Apr 2011 02:26
Location: Sacramento, CA

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

Postby Vaselinessa » 07 Jan 2013 15:46

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
Last edited by Vaselinessa on 07 Jan 2013 16:03, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 07 Jan 2013 15:48

No, you might need to symlink your win32 to mingw32
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests