Page 1 of 1

Compile using MSYS issue/configure does not find librarys

Posted: 10 Jan 2014 10:50
by Wojtek_user
Hi,

I have a problem with compile my own vlc on windows. i am newbie in that topic so i followed the istuctions on vlc wiki https://wiki.videolan.org/Win32CompileMSYS/

Due the issue i needed to update m4 lib, becuase mingw said that i have too old version, i dont know maybe that is the problem ? i downloaded m4 for here http://downloads.sourceforge.net/mingw/ ... YS.tar.bz2


Anyway, i followed all the instuction on wiki and after the bootstrap in root folder i try to configure my compilation with command

Code: Select all

sh ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --disable-nls
However this command returns some errors in loading custom libraries like:mad faad a52 and especially libgcrypt like :

Code: Select all

checking for NeAACDecOpen in -lfaad... no configure: error: Cannot find libfaad library...
Guided by https://wiki.videolan.org/Win32CompileM ... eShooting/ i tried to add path to contrib folder so my commands looked like that:

Code: Select all

sh ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --with-contrib=/home/<username>/vlc/contrib/i686-w64-mingw32/ --disable-nls
but it hasn't changed anything. From config log i am sure that the files are in good place, i can find them there. inside i've got a message for missing libs

Code: Select all

c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/MinGW/MSys/home/<username>/vlc/contrib/i686-w64-mingw32/lib/libfaad.a when searching for -lfaad
I can disable them but disabling libgcrypt causes an error which says that program could not be updated without it.

I tried to update mingw, download the newest version of vlc (solution is for 2.1.x) but nothing solved the problem.

Any idea how to solve it?

thx in advance :)

Re: Compile using MSYS issue/configure does not find library

Posted: 10 Jan 2014 11:38
by Jean-Baptiste Kempf
i686 and x86_64 are not the same thing. One is 32bits the other is 64bits.

Re: Compile using MSYS issue/configure does not find library

Posted: 10 Jan 2014 11:41
by Wojtek_user
so here is a problem :P

so i will try on os with 32 bit architecture

thanks Jean-Baptiste

Re: Compile using MSYS issue/configure does not find library

Posted: 10 Jan 2014 11:42
by Jean-Baptiste Kempf
You can install mingw-w64 in 32bits mode on Windows 64bits.

Re: Compile using MSYS issue/configure does not find library

Posted: 10 Jan 2014 13:02
by Wojtek_user
heh maybe i can but have no idea how :P

anyway one more time many thanks

Re: Compile using MSYS issue/configure does not find library

Posted: 10 Jan 2014 14:05
by Wojtek_user
ok, so i manage to install mingw with 32 compiler(http://sourceforge.net/projects/tdm-gcc/files/ 4.8 version has it as option ) , additionaly i needed to istall lua.

after that there are some new libs that compiler can't find like dvd read or shout. i can live without them but i can't without AVCODEC and the sh command show me massage:

Code: Select all

sh ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --disable-nls --with-contrib=/home/<username>/vlc/contrib/i686-w64-mingw32/ --disable-dvdread --disable-shout

Code: Select all

checking for AVCODEC... no configure: error: . Pass --disable-avcodec to ignore this error.
there is no info about it in config.log and avcodec for 100% is there. Any more solutions?