Need help compiling VLC player on WIN with CYGWIN

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
TheAmateur
New Cone
New Cone
Posts: 2
Joined: 10 Jul 2008 04:55

Need help compiling VLC player on WIN with CYGWIN

Postby TheAmateur » 15 Jul 2008 20:34

I followed the instruction in the VLC Wiki and got this error when trying to compile.

...Making all in gui
make[3]: Entering directory `/cygdrive/c/VLC/vlc/modules/gui'
make all-recursive
make[4]: Entering directory `/cygdrive/c/VLC/vlc/modules/gui'
Making all in qnx
make[5]: Entering directory `/cygdrive/c/VLC/vlc/modules/gui/qnx'
make all-am
make[6]: Entering directory `/cygdrive/c/VLC/vlc/modules/gui/qnx'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui/qnx'
make[5]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui/qnx'
Making all in qt4
make[5]: Entering directory `/cygdrive/c/VLC/vlc/modules/gui/qt4'
make all-am
make[6]: Entering directory `/cygdrive/c/VLC/vlc/modules/gui/qt4'
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -mno-cygwin -DHAVE_CONFIG_H -I. -I../../.. -I/usr/win32/include -I/usr/win32/include/ebml -D
SYS_MINGW32 -I../../../include -I../../../include `top_builddir="../../.." ../../../vlc-config --cxxflags plugin components/libqt4_plugin_la-interface
_widgets.lo` -mms-bitfields -MT components/libqt4_plugin_la-interface_widgets.lo -MD -MP -MF components/.deps/libqt4_plugin_la-interface_widgets.Tpo
-c -o components/libqt4_plugin_la-interface_widgets.lo `test -f 'components/interface_widgets.cpp' || echo './'`components/interface_widgets.cpp
g++ -mno-cygwin -DHAVE_CONFIG_H -I. -I../../.. -I/usr/win32/include -I/usr/win32/include/ebml -DSYS_MINGW32 -I../../../include -I../../../include -I/
usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -D__LIBVLC__ -D__PLUGIN__ -DMODULE_N
AME=qt4 -DMODULE_NAME_IS_qt4 -DMODULE_STRING=\"qt4\" -g -O2 -ffast-math -funroll-loops -mtune=pentium2 -DQT_NODLL -I/usr/win32/include/qt4 -I/usr/win3
2/include/qt4/QtCore -I/usr/win32/include/qt4/QtGui -DQT4LOCALEDIR=\"/usr/win32/share/qt4/translations/\" -mms-bitfields -MT components/libqt4_plugin_
la-interface_widgets.lo -MD -MP -MF components/.deps/libqt4_plugin_la-interface_widgets.Tpo -c components/interface_widgets.cpp -DDLL_EXPORT -DPIC -o
components/.libs/libqt4_plugin_la-interface_widgets.o
components/interface_widgets.cpp:82:2: #error This is broken. Fix it with a QEventLoop with a processEvents ()
make[6]: *** [components/libqt4_plugin_la-interface_widgets.lo] Error 1
make[6]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui/qt4'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/VLC/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc'
make: *** [all] Error 2

Any help is greatly appreciated.

Thanks.

basos
Blank Cone
Blank Cone
Posts: 24
Joined: 17 Jul 2008 14:19

Re: Need help compiling VLC player on WIN with CYGWIN

Postby basos » 17 Jul 2008 14:40

Hello

******** I THINk this thread should be under VLC for windows topic ********

I skipped this error caused on vlc-snapshot-20080714 and on latest GIT version by downloading the contrib-20080215-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2
package.

But you will fall into another error later:

g++ -mno-cygwin -shared -nostdlib /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-min
gw32/lib/dllcrt2.o .libs/libmkv_plugin_la-mkv.o .libs/libmkv_plugin_la-libmp4.o .libs/libmk
v_plugin_la-drms.o -L/usr/win32/lib -lz -lmatroska -lebml ../../src/.libs/libvlccore.dll.a
-lmingw32 -L/usr/lib/gcc/i686-pc-mingw32/3.4.4 -L/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../..
/../i686-pc-mingw32/lib -L/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../.. -lstdc++ -lmingw32 -lg
cc -lmoldname -lmingwex -lmsvcrt -lmingw32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw3
2 -lgcc -lmoldname -lmingwex -lmsvcrt -mno-cygwin -mms-bitfields -o .libs/libmkv_plugin.dl
l -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libmkv_plugin.dll.a
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld: /usr/lib/gcc/i686-pc-
mingw32/3.4.4/libstdc++.a(eh_personality.o): warning: duplicate section `.rdata$_ZTISt9excep
tion[typeinfo for std::exception]' has different size


/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/bin/ld: /usr/lib/gcc/i686-pc-
mingw32/3.4.4/libstdc++.a(tinfo.o): warning: duplicate section `.rdata$_ZTISt9exception[type
info for std::exception]' has different size


[.......................]

/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0xb7): undefined reference to `
std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_tra
its<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'

/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0xc9): undefined reference to `
std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits
<char> >::_M_insert<void const*>(void const*)'
[...............]
/usr/win32/lib/libebml.a(MemIOCallback.o):MemIOCallback.cpp:(.text+0x33c): undefined referen
ce to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::c
har_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/usr/win32/lib/libebml.a(MemIOCallback.o):MemIOCallback.cpp:(.text+0xd5c): undefined referen
ce to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::c
har_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
Creating library file: .libs/libmkv_plugin.dll.a
collect2: ld returned 1 exit status

make[5]: *** [libmkv_plugin.la] Error 1
[.............]
make: *** [all] Error 2



Please someone who has done it tell us all the dependencies..

Environment :
- Cygwin / winxp
- contrib-20080215-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2
- latest GIT-VLC (tested on 20080715)
- gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Need help compiling VLC player on WIN with CYGWIN

Postby Arite » 17 Jul 2008 14:49

Topic moved to VLC media player for Windows forum.

Arite.
Don't use PMs for support questions.

free_chao
New Cone
New Cone
Posts: 2
Joined: 06 Aug 2008 07:27

Re: Need help compiling VLC player on WIN with CYGWIN

Postby free_chao » 22 Aug 2008 05:04

I have the same question. hope someone tell us how to do?


TheAmateur
New Cone
New Cone
Posts: 2
Joined: 10 Jul 2008 04:55

Re: Need help compiling VLC player on WIN with CYGWIN

Postby TheAmateur » 11 Sep 2008 06:23

Thanks VLC_help, with the new contrib, I can complete the compilation and run the player.

jack_jones
Blank Cone
Blank Cone
Posts: 14
Joined: 04 Sep 2008 05:08

Re: Need help compiling VLC player on WIN with CYGWIN

Postby jack_jones » 18 Sep 2008 10:40

I encounter the same problem with basos.
Who can tell me what i can do for it,thank you very much.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Need help compiling VLC player on WIN with CYGWIN

Postby VLC_help » 18 Sep 2008 14:43

As I said earlier, update your contribs.

jack_jones
Blank Cone
Blank Cone
Posts: 14
Joined: 04 Sep 2008 05:08

Re: Need help compiling VLC player on WIN with CYGWIN

Postby jack_jones » 25 Sep 2008 11:30

I use the latest contribs for vlc-0.9.1,
"contrib-20080811-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2",
"contrib-20080528-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2",
"contrib-20080702-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2"

however,I have the same problem:
"/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x996): undefined r
eference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostre
am<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)'
/usr/win32/lib/libebml.a(IOCallback.o):IOCallback.cpp:(.text+0x9a6): undefined r
eference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_i
nsert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<c
har> >&, char const*, int)'
/usr/win32/lib/libebml.a(MemIOCallback.o):MemIOCallback.cpp:(.text+0x33c): undef
ined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ost
ream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_tr
aits<char> >&, char const*, int)'
/usr/win32/lib/libebml.a(MemIOCallback.o):MemIOCallback.cpp:(.text+0xd5c): undef
ined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ost
ream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_tr
aits<char> >&, char const*, int)'
Creating library file: .libs/libmkv_plugin.dll.a
collect2: ld returned 1 exit status
make[5]: *** [libmkv_plugin.la] Error 1
make[5]:leaving directory '/cygdrive/c/cygwin/modules/demux'
make[4]:***[all-recursive]Error 1
make[4]:leaving directory '/cygdrive/c/cygwin/modules/demux
...
"
I have not any ideas.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Need help compiling VLC player on WIN with CYGWIN

Postby VLC_help » 25 Sep 2008 15:08

disable libmkv support during configure
--disable-mkv

jack_jones
Blank Cone
Blank Cone
Posts: 14
Joined: 04 Sep 2008 05:08

Re: Need help compiling VLC player on WIN with CYGWIN

Postby jack_jones » 06 Oct 2008 10:02

Vlc-help:
Thank you for your reply.when setting "disable-mkv",I can compile more.
Now I encounter a new error:
"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1663: er
ror: declaration of C function `LONG InterlockedCompareExchange(volatile LONG*,
LONG, LONG)' conflicts with
/usr/win32/include/qt4/QtCore/../src/corelib/arch/qatomic_windows.h:393: error:
previous declaration `long int InterlockedCompareExchange(long int*, long int, l
ong int)' here
......

/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1676: er
ror: declaration of C function `LONG InterlockedIncrement(volatile LONG*)' confl
icts with
/usr/win32/include/qt4/QtCore/../src/corelib/arch/qatomic_windows.h:394: error:
previous declaration `long int InterlockedIncrement(long int*)' here
make[6]: *** [libqt4_plugin_la-qt4.lo] Error 1
make[6]: Leaving directory `/cygdrive/c/cygwin/modules/gui/qt4'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/cygdrive/c/cygwin/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/cygwin/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/cygwin/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/cygwin/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/cygwin'
make: *** [all] Error 2
"
I updated the qt4 with"qt4-4.4.1-win32-bin.tar.bz2",but it is not useful.
Can you give me some suggested for that.thanks.



Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: MSCC_Brad and 72 guests