Page 1 of 1

How can I compile the wxwindows interface in VC6?

Posted: 23 Dec 2003 05:24
by Eric
I want to add some features to the VLC interface such as web browser,windows media plugin etc...
Can anybody tell me how to compile the wxwindows interface in VC6?
Thanks for your help.

Posted: 26 Dec 2003 02:18
by Guest
I found the VC .dsp in msvc directory of vlc, but when I compile it, it alerted many errors.
Can anyone help me?
Thanks.

Posted: 05 Jan 2004 04:04
by Eric
Help. Please.

Posted: 05 Jan 2004 09:59
by Dnumgis
Look in wxwindows docs on how to compile wxwindows with different compilers. VLC should compile with VC6, but it will not be feature complete. If there are errors, please tell us what they are

Posted: 06 Jan 2004 14:07
by Guest
Look in wxwindows docs on how to compile wxwindows with different compilers. VLC should compile with VC6, but it will not be feature complete. If there are errors, please tell us what they are
I also can not get VLC to compile in VC6, these are the errors:

Compiling...
libvlc.c
d:\download\videolan\vlc-0.7.0\src\libvlc.h(933) : error C2059: syntax error : '{'
d:\download\videolan\vlc-0.7.0\src\libvlc.h(933) : error C2059: syntax error : '{'
Error executing cl.exe.

vlc.exe - 2 error(s), 0 warning(s)

Posted: 08 Jan 2004 19:54
by Guest
Yeah, I have same error with VC 7...

...error C2059: syntax error : '{'

for me it looks like some syntax in modules_inner.h is not C++ compatible (this VC 7 compiler tries to be more standard-oriented)...

please help!!

Posted: 09 Jan 2004 13:33
by Gibalou
Thanks for the report, this is fixed in cvs now.
Give a try to: http://download.videolan.org/pub/vlc/sn ... 108.tar.gz when it is available.

Posted: 09 Jan 2004 15:20
by Guest
Thanks for the report, this is fixed in cvs now.
Give a try to: http://download.videolan.org/pub/vlc/sn ... 108.tar.gz when it is available.
Nope, I still cannot build it. Same error, same place...I use VC++ 7.1.3088 and just tried the vlc-snapshot-20040108.tar.gz...even more - it complains about absence of some include files, that wasn't a case before...
does anyone has any ideas what to change in modules_inner.h to make it buildable?

thank you

Posted: 09 Jan 2004 22:06
by Gibalou
Sorry, cut&paste error, I meant vlc-snapshot-20040109.tar.gz when it is available.

Posted: 13 Jan 2004 15:52
by Guest
Sorry, cut&paste error, I meant vlc-snapshot-20040109.tar.gz when it is available.
Very good, thanx! I was able to build it right away. Now I’m struggling with building plugin_ffmpeg and plugin_livedotcom…are they buildable at all – I mean, in M$ VC7 ??

Thank you

Posted: 13 Jan 2004 16:23
by Sigmund
the ffmpeg plugin is not supposed to be compilable on VC7, don't know about the livedotcom one

Posted: 13 Jan 2004 16:26
by Sigmund
the livemedia library seems to be buildable on win32, so it should be possible to build the livdotcom plugin on VC7, it might need some small fixes first though. Please report what errors you get

Posted: 15 Jan 2004 05:34
by Eric
I am using vlc0.6.2, I extracted the source to the cygwin root directory, and I am using the libraries that was extracted to cygwin\usr from the the package below.
http://www.videolan.org/pub/testing/win ... in.tar.bz2

Below is the paths:
cygwin path c:\cygwin
vlc path c:\cygwin\vlc-0.6.2
header&lib path c:\cygwin\usr\win32

1. I found the .dsp files in vlc-0.6.2\msvc directory, I tried compiling it in VC6, the errors are:

Compiling...
wxwindows.cpp
fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory
......

2. So I add the path "..\..\usr\win32\include" and "..\..\usr\win32\lib" to the settings of project and then recompiled it, the errors are:

Compiling...
wxwindows.cpp
c:\cygwin\usr\win32\include\wx\platform.h(86) : fatal error C1083: Cannot open include file: 'wx/setup.h': No such file or directory
......

3. So I copied the setup.h file from usr\win32\lib\wx\include\msw-2.5-i586-mingw32msvc\wx to usr\win32\include\wx, and then recompiled it, the errors are:

Compiling...
wxwindows.cpp
c:\cygwin\usr\win32\include\wx\msw\gccpriv.h(21) : fatal error C1083: Cannot open include file: 'w32api.h': No such file or directory
......

4. So I add the path "..\..\usr\include" and then recompiled it, the errors are:

Compiling...
wxwindows.cpp
c:\cygwin\usr\include\sys\_types.h(13) : error C2632: 'long' followed by 'long' is illegal
c:\cygwin\usr\include\sys\_types.h(13) : error C2144: syntax error : missing ';' before type 'long'
c:\cygwin\usr\include\sys\_types.h(13) : error C2501: '__extension__' : missing storage-class or type specifiers
c:\cygwin\usr\include\sys\_types.h(13) : fatal error C1004: unexpected end of file found
......

:( :(
I wonder how can I solve these problems. BTW, I can compile vlc in cygwin, but when I have modified anything of wxwindows module, recompiling it always expends a long time, and I tried "make modules/gui/wxwindows/libwxwindows_plugin.dll" command to make the compiling faster, but it failed. I wonder how can I make the compiling faster.

Posted: 15 Jan 2004 09:00
by Gibalou
Sorry but I honestly don't want to loose time trying to compile the wxWindows interface with VC6. I'm sure this is possible but it may not be straight forward (as you noticed already).

I have two advice however:
- to only compile the wxwindows plugin under cygwin, just do "(cd modules/gui/wxwindows; make libwxwindows_plugin.dll)"
- if you really want to compile the wxwindows plugin under VC6 I'd suggest you use one of the precompiled (for VC6) wxwindows libraries from wxwindows.org.

Posted: 16 Jan 2004 17:43
by Guest
the livemedia library seems to be buildable on win32, so it should be possible to build the livdotcom plugin on VC7, it might need some small fixes first though. Please report what errors you get
yeah, I was able to build it finally - after I downloaded and build liveMedia source code...thank you

now I'm still trying to build ffmpeg plug-in

Posted: 16 Jan 2004 19:21
by Sigmund
ffmpeg needs to be built with gcc. Don't even hope to compile it with VC++. Once you have ffmpeg compiled it should be possible to link the ffmpeg module compiled with VC++ to it. This may require nasty hacks (like linking with libgcc) but should be possible (Xbox media player does it)

Please tell us if/how you manage(d) to do it

Posted: 20 Jan 2004 23:44
by _ole_
ffmpeg needs to be built with gcc. Don't even hope to compile it with VC++. Once you have ffmpeg compiled it should be possible to link the ffmpeg module compiled with VC++ to it. This may require nasty hacks (like linking with libgcc) but should be possible (Xbox media player does it)

Please tell us if/how you manage(d) to do it
yeah...I downloaded most recent ffmpeg source code from their site (ffmpeg.sourceforge.net) and followed their documentation in order to build it – installed MinGW and MSYS…it took some efforts to get through though…finally I was able to build it. After that – I linked plugin_ffmpeg (VC 7) to newly-build libraries and compiled it.

Now – I’m trying to rebuild ffmpeg with faac support!!! Didn’t succeed yet. I took ffmpeg-20040103 snapshot, took care of #ifdef CONFIG_FAAC things in some files and try to build by MinGW and MSYS … when I run ‘make’, it finds faac.c, but cannot find its headers – where should I put faac headers and/or include files??? Can you guys provide more detailed information how to enable faac support in VLC (VC 7) ??