How can I compile the wxwindows interface in VC6?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Eric
New Cone
New Cone
Posts: 9
Joined: 23 Dec 2003 05:08

How can I compile the wxwindows interface in VC6?

Postby Eric » 23 Dec 2003 05:24

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.

Guest

Postby Guest » 26 Dec 2003 02:18

I found the VC .dsp in msvc directory of vlc, but when I compile it, it alerted many errors.
Can anyone help me?
Thanks.

Eric
New Cone
New Cone
Posts: 9
Joined: 23 Dec 2003 05:08

Postby Eric » 05 Jan 2004 04:04

Help. Please.

Dnumgis

Postby Dnumgis » 05 Jan 2004 09:59

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

Guest

Postby Guest » 06 Jan 2004 14:07

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)

Guest

Postby Guest » 08 Jan 2004 19:54

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!!

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 09 Jan 2004 13:33

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.

Guest

Postby Guest » 09 Jan 2004 15:20

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

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 09 Jan 2004 22:06

Sorry, cut&paste error, I meant vlc-snapshot-20040109.tar.gz when it is available.

Guest

Postby Guest » 13 Jan 2004 15:52

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

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 13 Jan 2004 16:23

the ffmpeg plugin is not supposed to be compilable on VC7, don't know about the livedotcom one

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 13 Jan 2004 16:26

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

Eric
New Cone
New Cone
Posts: 9
Joined: 23 Dec 2003 05:08

Postby Eric » 15 Jan 2004 05:34

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.

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 15 Jan 2004 09:00

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.

Guest

Postby Guest » 16 Jan 2004 17:43

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

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 16 Jan 2004 19:21

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

_ole_
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2004 23:29
Location: West Conshohocken, USA

Postby _ole_ » 20 Jan 2004 23:44

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) ??


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests