Page 1 of 1

failed to win32 cross compile VLC 2.0.1 on ubunto

Posted: 01 Oct 2012 20:28
by captainst
I am using newly installed Ubuntu-12.04.1 installed in the VMPlayer.

I followed the steps described in this page:
http://wiki.videolan.org/Win32Compile

I installed the gcc-mingw32 with

Code: Select all

apt-get install gcc-mingw32
but without

Code: Select all

mingw32-binutils
since the later one complains that the gcc w64 tools need to be installed.

I downloaded the VLC 2.0.1 source from the archive.

The first steps were smooth, until I ran the command to configure

Code: Select all

$ ../extras/package/win32/configure.sh --host=i586-mingw32msvc
First, it complains that libmad is not found. I installed the libmad0 and libmad0-dev, no change. I downloaded the libmad-0.15.1.b, compiled and installed as default (to /usr/local/lib), also

Code: Select all

export LD_LIBRARY_PATH = /usr/local/lib
, nothing changed. The libmad libs are right inside the /usr/local/lib and I even copied them to the /usr/lib but still not recognized.

Then I used --disable-mad to move-on, until the error "cannot find development headers for libfaad". I installed the libfaad-dev from software center, still complain on the same error.

Has anyone successfully made win32 cross compile with VLC 2.0.x ? Many thanks !

Re: failed to win32 cross compile VLC 2.0.1 on ubunto

Posted: 01 Oct 2012 21:19
by RĂ©mi Denis-Courmont
You skipped buils steps, build failed. No surprises.

Re: failed to win32 cross compile VLC 2.0.1 on ubunto

Posted: 02 Oct 2012 03:41
by captainst
You skipped buils steps, build failed. No surprises.
Thank you. I want to add that I did the contrib prebuilt steps exactly as the wiki documents, no error in those steps.

You mean I skipped the "mingw32-binutils" ?

Actually if I did

Code: Select all

sudo apt-get install gcc-mingw32 mingw32-binutils
together, I got the error message that gcc, g++ and fortran w64 were not installed. Even if I installed these tools, it reported the same error.

If I did

Code: Select all

sudo apt-get install gcc-mingw32
and

Code: Select all

sudo apt-get install mingw32-binutils
seperatedly, then the binutils install said to remove the firstly installed gcc-mingw32 ...

So how to install them both ? Thanks again.

Re: failed to win32 cross compile VLC 2.0.1 on ubunto

Posted: 02 Oct 2012 11:59
by Jean-Baptiste Kempf
because you did not do the contribs part correctly.

Re: failed to win32 cross compile VLC 2.0.1 on ubunto

Posted: 02 Oct 2012 14:33
by captainst
because you did not do the contribs part correctly.
Thank you. But the compiler installation comes before the installation of contribs.

Re: failed to win32 cross compile VLC 2.0.1 on ubunto

Posted: 04 Oct 2012 21:29
by edwardw
Contribs refers to this, please read it: http://wiki.videolan.org/Win32Compile#P ... _libraries