Page 1 of 1

VLC_Compilation_On_Windows

Posted: 30 Mar 2010 04:19
by maravind1986
Hi,

I am compiling VLC on Windows using Mingw. So I am able to do all the steps till bootstrap command. After that if i try to configure ,It is giving
Configure Error: C Compiler can not create executables.

Please let me know how to solve this?

Re: VLC_Compilation_On_Windows

Posted: 30 Mar 2010 17:07
by VLC_help
Which guide are you following?

Re: VLC_Compilation_On_Windows

Posted: 03 Apr 2010 16:21
by maravind1986
Hi ,

I Used this http://wiki.videolan.org/Win32CompileMSYSNew for compilation.I even updated the latest m4 package. Now I am able to do till Configure-msys.sh . After that when i try to compile it, It was able to compile some of the modules. After finished compiling, It was giving Error as

C:/Msys/1.0/win32/lib/libBasicUsageEnvironment.a:BasicHashTable.cpp:(.text+0x29b
4): undefined reference to `_Unwind_SjLj_Resume'
C:/Msys/1.0/win32/lib/libBasicUsageEnvironment.a:BasicHashTable.cpp:(.text+0x29b
f): undefined reference to `_Unwind_SjLj_Unregister'
collect2: ld returned 1 exit status
make[5]: *** [liblive555_plugin.la] Error 1
make[5]: Leaving directory `/c/vlc/modules/demux'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/c/vlc/modules/demux'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/c/vlc/modules/demux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/vlc'
make: *** [all] Error 2

acer@ACER-AA0B0CF702 /c/vlc
$

Please kindly do some help regarding this.

Re: VLC_Compilation_On_Windows

Posted: 04 Apr 2010 14:35
by VLC_help
Your contrib package is targeted to same GCC version as your GCC is? (so if you use e.g. contrib-20100329-win32-bin-gcc-4.4.2-runtime-3.17-only.tar.bz2 does your gcc -v also say version 4.4.2)

Re: VLC_Compilation_On_Windows

Posted: 05 Apr 2010 14:53
by maravind1986
It says gcc -4.4.0 when you check for gcc -v . Please Kindly help me regarding this

Re: VLC_Compilation_On_Windows

Posted: 05 Apr 2010 15:02
by maravind1986
I was parallely trying to compile in another machine as well. In this while configure-msys.sh, configure: error : Could not find libx264 >=0.76 on your system. you may get it from http://www.videolan.org/x264.html

Re: VLC_Compilation_On_Windows

Posted: 05 Apr 2010 17:11
by VLC_help
You can disable x264 support. --disable-x264

Re: VLC_Compilation_On_Windows

Posted: 06 Apr 2010 04:24
by maravind1986
Ok.Thanks a lot. Now coming back to compilation ,

This is Error. What has to be done to avoid this error and compile it successfully. I am trying to use VLC mainly for matroska. Please let me know ASAP.

Hi ,

I Used this http://wiki.videolan.org/Win32CompileMSYSNew for compilation.I even updated the latest m4 package. Now I am able to do till Configure-msys.sh . After that when i try to compile it, It was able to compile some of the modules. After finished compiling, It was giving Error as

C:/Msys/1.0/win32/lib/libBasicUsageEnvironment.a:BasicHashTable.cpp:(.text+0x29b
4): undefined reference to `_Unwind_SjLj_Resume'
C:/Msys/1.0/win32/lib/libBasicUsageEnvironment.a:BasicHashTable.cpp:(.text+0x29b
f): undefined reference to `_Unwind_SjLj_Unregister'
collect2: ld returned 1 exit status
make[5]: *** [liblive555_plugin.la] Error 1
make[5]: Leaving directory `/c/vlc/modules/demux'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/c/vlc/modules/demux'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/c/vlc/modules/demux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/vlc'
make: *** [all] Error 2

Re: VLC_Compilation_On_Windows

Posted: 06 Apr 2010 04:31
by maravind1986
Hi,
One more thing . As you told when i try gcc -v ,it says gcc version 4.4.0 .

Re: VLC_Compilation_On_Windows

Posted: 06 Apr 2010 15:37
by Jean-Baptiste Kempf
Deactivate live555 and projectm modules.

Re: VLC_Compilation_On_Windows

Posted: 07 Apr 2010 06:38
by maravind1986
Sorry, I didn't get you. I mean deactivate in the sense you want to disable Live555 lib and projectm modules.

Re: VLC_Compilation_On_Windows

Posted: 07 Apr 2010 11:39
by Jean-Baptiste Kempf
In configure, disable those, because they are the one blocking the compilation.

Re: VLC_Compilation_On_Windows

Posted: 27 Apr 2010 16:49
by buatcintaku
i'd tried build vlc on msys and mingw
i follow http://wiki.videolan.org/Win32CompileMSYSNew to build

at compile section

Code: Select all

PATH=/usr/win32/bin:$PATH make
error happened like this

Code: Select all

In file included from vlcshell.cpp:44: vlcplugin.h:85: error: 'uint16' has not been declared vlcplugin.h:111: error: 'WNDPROC' does not name a type vlcplugin.h:113: error: 'WNDPROC' has not been declared vlcplugin.h:138: error: 'uint16' does not name a type vlcplugin.h:216: error: 'WNDPROC' does not name a type vlcplugin.h: In member function 'void VlcPlugin::setWindowProc(int)': vlcplugin.h:114: error: 'pf_wndproc' was not declared in this scope In file included from vlcshell.cpp:45: vlcshell.h: At global scope: vlcshell.h:30: error: 'jref' does not name a type vlcshell.h:33: error: 'uint16' has not been declared vlcshell.h:33: error: 'int16' has not been declared vlcshell.h:43: error: 'uint16' has not been declared vlcshell.h:47: error: 'int32' does not name a type vlcshell.h:48: error: 'int32' does not name a type vlcshell.cpp:268: error: 'jref' does not name a type vlcshell.cpp:278: error: 'uint16' has not been declared vlcshell.cpp:278: error: 'int16' has not been declared vlcshell.cpp: In function 'NPError NPP_Destroy(NPP_t*, NPSavedData**)': vlcshell.cpp:323: error: 'WNDPROC' was not declared in this scope vlcshell.cpp:323: error: expected ';' before 'winproc' vlcshell.cpp:324: error: 'winproc' was not declared in this scope vlcshell.cpp:327: error: 'GWL_WNDPROC' was not declared in this scope vlcshell.cpp:327: error: 'SetWindowLong' was not declared in this scope vlcshell.cpp: In function 'NPError NPP_SetWindow(NPP_t*, NPWindow*)': vlcshell.cpp:442: error: 'WNDPROC' was not declared in this scope vlcshell.cpp:442: error: expected ';' before 'oldproc' vlcshell.cpp:443: error: 'oldproc' was not declared in this scope vlcshell.cpp:446: error: 'GWL_WNDPROC' was not declared in this scope vlcshell.cpp:446: error: 'SetWindowLong' was not declared in this scope vlcshell.cpp:449: error: 'GWLP_USERDATA' was not declared in this scope vlcshell.cpp:450: error: 'SetWindowLongPtr' was not declared in this scope vlcshell.cpp:453: error: expected ')' before 'SetWindowLong' vlcshell.cpp:457: error: 'GWL_STYLE' was not declared in this scope vlcshell.cpp:457: error: 'GetWindowLong' was not declared in this scope vlcshell.cpp:458: error: 'WS_CLIPCHILDREN' was not declared in this scope vlcshell.cpp:458: error: 'WS_CLIPSIBLINGS' was not declared in this scope vlcshell.cpp:459: error: 'SetWindowLong' was not declared in this scope vlcshell.cpp:462: warning: 'void libvlc_video_set_parent(libvlc_instance_t*, lib vlc_drawable_t, libvlc_exception_t*)' is deprecated (declared at ../../include/v lc/deprecated.h:85) vlcshell.cpp:462: warning: 'void libvlc_video_set_parent(libvlc_instance_t*, lib vlc_drawable_t, libvlc_exception_t*)' is deprecated (declared at ../../include/v lc/deprecated.h:85) vlcshell.cpp:469: error: 'InvalidateRect' was not declared in this scope vlcshell.cpp:470: error: 'UpdateWindow' was not declared in this scope vlcshell.cpp:477: error: 'GWL_WNDPROC' was not declared in this scope vlcshell.cpp:477: error: 'class VlcPlugin' has no member named 'getWindowProc' vlcshell.cpp:477: error: 'SetWindowLong' was not declared in this scope vlcshell.cpp:481: warning: 'void libvlc_video_set_parent(libvlc_instance_t*, lib vlc_drawable_t, libvlc_exception_t*)' is deprecated (declared at ../../include/v lc/deprecated.h:85) vlcshell.cpp:481: warning: 'void libvlc_video_set_parent(libvlc_instance_t*, lib vlc_drawable_t, libvlc_exception_t*)' is deprecated (declared at ../../include/v lc/deprecated.h:85) vlcshell.cpp: At global scope: vlcshell.cpp:582: error: 'uint16' has not been declared vlcshell.cpp:611: error: 'int32' does not name a type vlcshell.cpp:617: error: 'int32' does not name a type vlcshell.cpp: In function 'LRESULT Manage(HWND__*, UINT, WPARAM, LPARAM)': vlcshell.cpp:738: error: 'GWLP_USERDATA' was not declared in this scope vlcshell.cpp:738: error: 'GetWindowLongPtr' was not declared in this scope vlcshell.cpp:742: error: 'WM_ERASEBKGND' was not declared in this scope vlcshell.cpp:745: error: 'WM_PAINT' was not declared in this scope vlcshell.cpp:747: error: 'PAINTSTRUCT' was not declared in this scope vlcshell.cpp:747: error: expected ';' before 'paintstruct' vlcshell.cpp:751: error: 'paintstruct' was not declared in this scope vlcshell.cpp:751: error: 'BeginPaint' was not declared in this scope vlcshell.cpp:753: error: 'GetClientRect' was not declared in this scope vlcshell.cpp:755: error: 'BLACK_BRUSH' was not declared in this scope vlcshell.cpp:755: error: 'GetStockObject' was not declared in this scope vlcshell.cpp:755: error: 'FillRect' was not declared in this scope vlcshell.cpp:756: error: 'RGB' was not declared in this scope vlcshell.cpp:756: error: 'SetTextColor' was not declared in this scope vlcshell.cpp:757: error: 'SetBkColor' was not declared in this scope vlcshell.cpp:759: error: 'DT_CENTER' was not declared in this scope vlcshell.cpp:759: error: 'DT_VCENTER' was not declared in this scope vlcshell.cpp:759: error: 'DT_SINGLELINE' was not declared in this scope vlcshell.cpp:759: error: 'DrawText' was not declared in this scope vlcshell.cpp:761: error: 'EndPaint' was not declared in this scope vlcshell.cpp:766: error: 'class VlcPlugin' has no member named 'getWindowProc' vlcshell.cpp:767: error: 'CallWindowProc' was not declared in this scope make[2]: *** [npvlc_la-vlcshell.lo] Error 1 make[2]: Leaving directory `/home/ebiss-11/vlc-1.0.5/projects/mozilla' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ebiss-11/vlc-1.0.5' make: *** [all] Error 2
what should i do??

thanks

sorry my english is bad

Re: VLC_Compilation_On_Windows

Posted: 28 Apr 2010 18:18
by VLC_help
buatcintaku: build 1.1.0 or 1.2.0

huafeihua116: disable Live555 lib

Re: VLC_Compilation_On_Windows

Posted: 09 May 2010 13:01
by mr.sniper
The only problem to stop to reach the end......


In file included from vlcshell.cpp:44:
vlcplugin.h:85: error: 'uint16' has not been declared
vlcplugin.h:111: error: 'WNDPROC' does not name a type
vlcplugin.h:113: error: 'WNDPROC' has not been declared
vlcplugin.h:138: error: 'uint16' does not name a type
vlcplugin.h:216: error: 'WNDPROC' does not name a type
vlcplugin.h: In member function 'void VlcPlugin::setWindowProc(int)':
vlcplugin.h:114: error: 'pf_wndproc' was not declared in this scope

Does anybody have an idea to solve this mozilla dependant problem?

Re: VLC_Compilation_On_Windows

Posted: 10 May 2010 00:25
by Jean-Baptiste Kempf
use newer contribs or deactivate mozilla in configure.