Difference between revisions of "Win32CompileMSYSTroubleShooting"

From VideoLAN Wiki
Jump to navigation Jump to search
(initial commit)
 
(init)
Line 1: Line 1:
 
This is a list of various errors that have occurred "over the years" during building VLC, with their resolutions.  Of course, if it's not here, google is your friend.
 
This is a list of various errors that have occurred "over the years" during building VLC, with their resolutions.  Of course, if it's not here, google is your friend.
 +
 +
 +
 +
*It doesn't link, and complains about missing gcc symbols: You missed this line in the instructions:
 +
 +
Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be library_names='') due to bug in latest MinGW.''
 +
 +
*Compilation stops early, after configure was complaining about mismatched quotes:
 +
 +
Check the VLC_COMPILE_HOST variable in your config.h - if it's ''Option f is not valid'' then ''hostname -f'' fails (on Windows, there is no such option as -f). In configure.ac change
 +
<pre>AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -f 2&gt; /dev/null || hostname`", [host which ran configure])</pre>
 +
to
 +
<pre>AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname`", [host which ran configure])</pre>
 +
*If compile complains about a config.h and pthread.h not found problem, just delete config.h
 +
*If building self-contained packages fails with ''make: zip: Command not found'' then download the following file and extract it to C:\Msys\1.0 :
 +
*http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/m/project/mi/mingw/MSYS/zip/zip-3.0-1/zip-3.0-1-msys-1.0.14-bin.tar.lzma
 +
*If building self-contained packages fails with ''make: 7z: Command not found'' then copy 7z.exe from C:\Program Files\7-Zip in to C:\Msys\1.0\bin
 +
*If building self-contained packages fails with ''Error: cannot locate makensis tool'' then use:
 +
<pre>PATH=/c/Program\ Files/NSIS/:$PATH make package-win32</pre>

Revision as of 22:50, 22 September 2010

This is a list of various errors that have occurred "over the years" during building VLC, with their resolutions. Of course, if it's not here, google is your friend.


  • It doesn't link, and complains about missing gcc symbols: You missed this line in the instructions:

Use text editor to change MinGW\lib\gcc\mingw32\4.4.0\libstdc++.la file (line should be library_names=) due to bug in latest MinGW.

  • Compilation stops early, after configure was complaining about mismatched quotes:

Check the VLC_COMPILE_HOST variable in your config.h - if it's Option f is not valid then hostname -f fails (on Windows, there is no such option as -f). In configure.ac change

AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -f 2> /dev/null || hostname`", [host which ran configure])

to

AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname`", [host which ran configure])
PATH=/c/Program\ Files/NSIS/:$PATH make package-win32