VLC_Compilation_On_Windows

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.
maravind1986
New Cone
New Cone
Posts: 7
Joined: 23 Mar 2010 13:05

VLC_Compilation_On_Windows

Postby maravind1986 » 30 Mar 2010 04:19

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?

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

Re: VLC_Compilation_On_Windows

Postby VLC_help » 30 Mar 2010 17:07

Which guide are you following?

maravind1986
New Cone
New Cone
Posts: 7
Joined: 23 Mar 2010 13:05

Re: VLC_Compilation_On_Windows

Postby maravind1986 » 03 Apr 2010 16:21

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.

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

Re: VLC_Compilation_On_Windows

Postby VLC_help » 04 Apr 2010 14:35

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)

maravind1986
New Cone
New Cone
Posts: 7
Joined: 23 Mar 2010 13:05

Re: VLC_Compilation_On_Windows

Postby maravind1986 » 05 Apr 2010 14:53

It says gcc -4.4.0 when you check for gcc -v . Please Kindly help me regarding this

maravind1986
New Cone
New Cone
Posts: 7
Joined: 23 Mar 2010 13:05

Re: VLC_Compilation_On_Windows

Postby maravind1986 » 05 Apr 2010 15:02

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

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

Re: VLC_Compilation_On_Windows

Postby VLC_help » 05 Apr 2010 17:11

You can disable x264 support. --disable-x264

maravind1986
New Cone
New Cone
Posts: 7
Joined: 23 Mar 2010 13:05

Re: VLC_Compilation_On_Windows

Postby maravind1986 » 06 Apr 2010 04:24

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

maravind1986
New Cone
New Cone
Posts: 7
Joined: 23 Mar 2010 13:05

Re: VLC_Compilation_On_Windows

Postby maravind1986 » 06 Apr 2010 04:31

Hi,
One more thing . As you told when i try gcc -v ,it says gcc version 4.4.0 .

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC_Compilation_On_Windows

Postby Jean-Baptiste Kempf » 06 Apr 2010 15:37

Deactivate live555 and projectm modules.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

maravind1986
New Cone
New Cone
Posts: 7
Joined: 23 Mar 2010 13:05

Re: VLC_Compilation_On_Windows

Postby maravind1986 » 07 Apr 2010 06:38

Sorry, I didn't get you. I mean deactivate in the sense you want to disable Live555 lib and projectm modules.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC_Compilation_On_Windows

Postby Jean-Baptiste Kempf » 07 Apr 2010 11:39

In configure, disable those, because they are the one blocking the compilation.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

buatcintaku
New Cone
New Cone
Posts: 5
Joined: 17 Apr 2010 13:07

Re: VLC_Compilation_On_Windows

Postby buatcintaku » 27 Apr 2010 16:49

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

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

Re: VLC_Compilation_On_Windows

Postby VLC_help » 28 Apr 2010 18:18

buatcintaku: build 1.1.0 or 1.2.0

huafeihua116: disable Live555 lib

mr.sniper
New Cone
New Cone
Posts: 1
Joined: 07 May 2010 17:38

Re: VLC_Compilation_On_Windows

Postby mr.sniper » 09 May 2010 13:01

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC_Compilation_On_Windows

Postby Jean-Baptiste Kempf » 10 May 2010 00:25

use newer contribs or deactivate mozilla in configure.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 58 guests