Compilation errors in latest snapshot 1.02 with Msys/mingw32
Posted: 06 Oct 2009 01:55
I downloaded the latest snapshot of vlc.
When i try to compile it on windows using msys/mingw32 i found following problems.
Making all in stream_out
make[3]: Entering directory `/vlc/vlc/modules/stream_out'
make all-am
make[4]: Entering directory `/vlc/vlc/modules/stream_out'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/vlc/vlc/modules/stream_out'
make[3]: Leaving directory `/vlc/vlc/modules/stream_out'
make[3]: Entering directory `/vlc/vlc/modules'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/vlc/vlc/modules'
make[2]: Leaving directory `/vlc/vlc/modules'
Making all in share
make[2]: Entering directory `/vlc/vlc/share'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/vlc/vlc/share'
Making all in doc
make[2]: Entering directory `/vlc/vlc/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/vlc/vlc/doc'
Making all in test
make[2]: Entering directory `/vlc/vlc/test'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/vlc/vlc/test'
Making all in projects/mozilla
make[2]: Entering directory `/vlc/vlc/projects/mozilla'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.
. -I../../include -I../../include -I/usr/win32/include -I/usr/win32/include/eb
ml -D__USE_MINGW_ANSI_STDIO=1 -DSYS_MINGW32 `top_srcdir="../.." top_builddir="..
/.." ../../vlc-config --cxxflags mozilla` -mms-bitfields -MT npvlc_la-npolibvl
c.lo -MD -MP -MF .deps/npvlc_la-npolibvlc.Tpo -c -o npvlc_la-npolibvlc.lo `test
-f 'control/npolibvlc.cpp' || echo './'`control/npolibvlc.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../inclu
de -I/usr/win32/include -I/usr/win32/include/ebml -D__USE_MINGW_ANSI_STDIO=1 -DS
YS_MINGW32 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFI
LE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -DXPCOM_GLUE -DHAVE_CPP_MODERN_S
PECIALIZE_TEMPLATE_SYNTAX -I/usr/win32/gecko-sdk -I/usr/win32/gecko-sdk/include
-I/usr/win32/gecko-sdk/embedstring/include -I/usr/win32/gecko-sdk/xpcom/include
-I/usr/win32/gecko-sdk/nspr/include -I/usr/win32/gecko-sdk/string/include -I/usr
/win32/gecko-sdk/plugin/include -I/usr/win32/gecko-sdk/java/include -g -O2 -ffas
t-math -funroll-loops -mtune=pentium2 -mms-bitfields -MT npvlc_la-npolibvlc.lo -
MD -MP -MF .deps/npvlc_la-npolibvlc.Tpo -c control/npolibvlc.cpp -DDLL_EXPORT -
DPIC -o .libs/npvlc_la-npolibvlc.o
control/npolibvlc.cpp: In member function `virtual RuntimeNPObject::InvokeResult
LibvlcAudioNPObject::getProperty(int, NPVariant&)':
../../include/vlc/libvlc_media_player.h:974: error: too many arguments to functi
on `int libvlc_audio_get_mute(libvlc_instance_t*)'
control/npolibvlc.cpp:221: error: at this point in file
make[2]: *** [npvlc_la-npolibvlc.lo] Error 1
make[2]: Leaving directory `/vlc/vlc/projects/mozilla'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vlc/vlc'
make: *** [all] Error 2
Anyone has any solution for this?
Also i have to make changes in config.status
S["UIC"]="uic" to S["UIC"]="uic.exe"
S["RCC"]="rcc" to S["RCC"]="rcc.exe"
S["MOC"]="moc" to S["MOC"]="moc.exe"
And libtool
global_symbol_pipe="" to
global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1\\2\\3 \\3/p'"
regards
Abhijit
When i try to compile it on windows using msys/mingw32 i found following problems.
Making all in stream_out
make[3]: Entering directory `/vlc/vlc/modules/stream_out'
make all-am
make[4]: Entering directory `/vlc/vlc/modules/stream_out'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/vlc/vlc/modules/stream_out'
make[3]: Leaving directory `/vlc/vlc/modules/stream_out'
make[3]: Entering directory `/vlc/vlc/modules'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/vlc/vlc/modules'
make[2]: Leaving directory `/vlc/vlc/modules'
Making all in share
make[2]: Entering directory `/vlc/vlc/share'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/vlc/vlc/share'
Making all in doc
make[2]: Entering directory `/vlc/vlc/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/vlc/vlc/doc'
Making all in test
make[2]: Entering directory `/vlc/vlc/test'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/vlc/vlc/test'
Making all in projects/mozilla
make[2]: Entering directory `/vlc/vlc/projects/mozilla'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.
. -I../../include -I../../include -I/usr/win32/include -I/usr/win32/include/eb
ml -D__USE_MINGW_ANSI_STDIO=1 -DSYS_MINGW32 `top_srcdir="../.." top_builddir="..
/.." ../../vlc-config --cxxflags mozilla` -mms-bitfields -MT npvlc_la-npolibvl
c.lo -MD -MP -MF .deps/npvlc_la-npolibvlc.Tpo -c -o npvlc_la-npolibvlc.lo `test
-f 'control/npolibvlc.cpp' || echo './'`control/npolibvlc.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../inclu
de -I/usr/win32/include -I/usr/win32/include/ebml -D__USE_MINGW_ANSI_STDIO=1 -DS
YS_MINGW32 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFI
LE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -DXPCOM_GLUE -DHAVE_CPP_MODERN_S
PECIALIZE_TEMPLATE_SYNTAX -I/usr/win32/gecko-sdk -I/usr/win32/gecko-sdk/include
-I/usr/win32/gecko-sdk/embedstring/include -I/usr/win32/gecko-sdk/xpcom/include
-I/usr/win32/gecko-sdk/nspr/include -I/usr/win32/gecko-sdk/string/include -I/usr
/win32/gecko-sdk/plugin/include -I/usr/win32/gecko-sdk/java/include -g -O2 -ffas
t-math -funroll-loops -mtune=pentium2 -mms-bitfields -MT npvlc_la-npolibvlc.lo -
MD -MP -MF .deps/npvlc_la-npolibvlc.Tpo -c control/npolibvlc.cpp -DDLL_EXPORT -
DPIC -o .libs/npvlc_la-npolibvlc.o
control/npolibvlc.cpp: In member function `virtual RuntimeNPObject::InvokeResult
LibvlcAudioNPObject::getProperty(int, NPVariant&)':
../../include/vlc/libvlc_media_player.h:974: error: too many arguments to functi
on `int libvlc_audio_get_mute(libvlc_instance_t*)'
control/npolibvlc.cpp:221: error: at this point in file
make[2]: *** [npvlc_la-npolibvlc.lo] Error 1
make[2]: Leaving directory `/vlc/vlc/projects/mozilla'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vlc/vlc'
make: *** [all] Error 2
Anyone has any solution for this?
Also i have to make changes in config.status
S["UIC"]="uic" to S["UIC"]="uic.exe"
S["RCC"]="rcc" to S["RCC"]="rcc.exe"
S["MOC"]="moc" to S["MOC"]="moc.exe"
And libtool
global_symbol_pipe="" to
global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1\\2\\3 \\3/p'"
regards
Abhijit