Problem with cross-compiling for win32
Posted: 12 Jul 2010 19:16
In order to compile a customized version of vlc for Windows I started setting up a build environment. After reading into the wiki, I figured that using Linux to cross-compile for win32 would be the best option as this is what the official binary distribution is compiled with (afaik).
So I set up Debian Linux in a VM. I installed from the lenny CD, though I updated to the testing branch squeeze later on to get more recent packages. Then I installed the required packages as outlined in Win32Compile. I also manually updated mingw32-runtime and w32api as explained in some blog (I used runtime 3.18 and w32api 3.14 and later also tested with 3.15.2 and 3.13 though that didn't change anything), though I'm not 100% sure whether this was actually required as I'm not building ffmpeg myself.
Command to check compiler version:
Since the command reported that I had version 4.2.1,I downloaded the respective contrib package. I later also tried a more recent version of the compiler in conjunction with the most recent contribs though the problem persisted.
I extracted the contribs using
I also double checked they were in /usr/win32.
I then downloaded the 1.1.0 source tarball from the VLC Website. Apparently it doesn't contain the config scripts as explained in the wiki, though I could retrieve them from Git.
However when I started the configure with
Just in case that's relevant, I did all this as root (yeah I know it's evil).
I'm totally at a loss as to why it is not working. Did I forget something important? Any ideas would be appreciated.
So I set up Debian Linux in a VM. I installed from the lenny CD, though I updated to the testing branch squeeze later on to get more recent packages. Then I installed the required packages as outlined in Win32Compile. I also manually updated mingw32-runtime and w32api as explained in some blog (I used runtime 3.18 and w32api 3.14 and later also tested with 3.15.2 and 3.13 though that didn't change anything), though I'm not 100% sure whether this was actually required as I'm not building ffmpeg myself.
Command to check compiler version:
Code: Select all
i586-mingw32msvc-gcc --ver
I extracted the contribs using
Code: Select all
tar jxf <archive> -C /
I then downloaded the 1.1.0 source tarball from the VLC Website. Apparently it doesn't contain the config scripts as explained in the wiki, though I could retrieve them from Git.
However when I started the configure with
Code: Select all
sh extras/package/configure-mingw.sh
Code: Select all
configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.
I'm totally at a loss as to why it is not working. Did I forget something important? Any ideas would be appreciated.