Page 1 of 1

Compile VLC plugin with Visual Studio 2005

Posted: 31 Jan 2007 18:42
by loic69
Hi all

I use VLC for video streaming application.
I compiled successfully with Visual Studio 6 a plugin for VLC.

Today I'm migrating all project under Visual Studio 2005 because Visual studio 6 is depreciated...
The problem is VLC plugin compiled with Visual Studio 2005 cause VLC critical error and crash...
VLC plugin compiled with Visual Studio 6 working well were.

An idea for Visual Studio 2005 settings ?

Regards

Re: Compile VLC plugin with Visual Studio 2005

Posted: 09 Feb 2007 10:01
by xiaobei
[quote="loic69"]Hi all

I use VLC for video streaming application.
I compiled successfully with Visual Studio 6 a plugin for VLC.

Hello loic69

I need compile a plugin with Visual Studio 6 for VLC.
My VLC activex version is 0.8.6.
I am a newbie on VC++.
loic69,sorry,my english is not very well.
Can you gave me some advice ?
My email : liaoyanhong2006@163.com
Thanks

Posted: 09 Feb 2007 10:20
by Jean-Baptiste Kempf
Visual Studio is not a recommended platform to build VLC. Not 6.0 nor 2005. The developers zill not be able to help you then.
Use MSys/MingW.

Posted: 09 Feb 2007 11:12
by loic69
Visual Studio is not a recommended platform to build VLC. Not 6.0 nor 2005. The developers zill not be able to help you then.
Use MSys/MingW.
Thanks for your response.

Re: Compile VLC plugin with Visual Studio 2005

Posted: 09 Feb 2007 15:24
by effractor
Hi all

I use VLC for video streaming application.
I compiled successfully with Visual Studio 6 a plugin for VLC.

Today I'm migrating all project under Visual Studio 2005 because Visual studio 6 is depreciated...
The problem is VLC plugin compiled with Visual Studio 2005 cause VLC critical error and crash...
VLC plugin compiled with Visual Studio 6 working well were.

An idea for Visual Studio 2005 settings ?

Regards
Hello Ioic69

Sorry, my english is not well
Can you send me VS6 settings?
My e-mail: effractor@gmail.com
Thanks

Posted: 10 Feb 2007 03:33
by xiaobei
Visual Studio is not a recommended platform to build VLC. Not 6.0 nor 2005. The developers zill not be able to help you then.
Use MSys/MingW.
Hello j-b

Where can i download MSys/MingW? Maybe I must get MSys and MingW, or only one of them? :?
Sorry ! Iam a realy newbie on those tools .
Another qestion,when I download those tools ,can I get document which tell me how to use the tool ,eg :Readme.txt?

Thanks!! Best regards![/quote]

Posted: 10 Feb 2007 16:20
by Jean-Baptiste Kempf
You should read the wiki / Developers's Corner. It'll help you a lot.

Posted: 12 Feb 2007 03:04
by xiaobei
You should read the wiki / Developers's Corner. It'll help you a lot.
Thanks for you help!
I have already found the documents.Another question:
In the path of vlc ,I found so many .dll documents,eg:libvlc.dll,axvlc.dll and plugins file.So ,can I compile the activex and reduce the number of dll.It is best that the activex is compiled to one .dll document. :P

Regards.

Posted: 13 Feb 2007 08:58
by xiaobei
HI Everyone

I install cygwin on my pc .I want to compile activex .
The source of activex has be put under the path :/home/administrator/activex .When enter the file ,I find an Makefile .Runing "make",it hints :
$ make
/bin/sh: ../vlc-config:No such file or directory
make:*** No rule to make target ' .. /configure.ac',needed by 'Makefile.in'.Stop.
Anyone helps me !
Could I need rewrite the "Makefile" or samething wrong during my installation of cygwin?
Pleseas ,give me some suggestions.


Thanks !

Posted: 13 Feb 2007 15:51
by Jean-Baptiste Kempf
You need to compile all VLC, not only activex folder!

Posted: 13 Feb 2007 18:00
by ascanius
Hi all, I'm also trying to build a plugin using Visual Studio 2005 (@j-b: note the difference at it was mentioned before. I try to build a plugin - NOT the complete vlc).

I have some source code which works wonderfull with version 0.8.2.
In 0.8.6 the add_submodule() call fails with a null reference exception when my module is loaded. I looked at the sources from other modules that cames with 0.8.6 and nothing is different.

The cause of the exception is that this p_symbols member of the p_module parameter of the entry function is not set.

Is there something I'm doing wrong (except using Visual C++). Are there some special things to configure?

It does not make sense to me that the parameter is not filled correctly.

Sometimes ago somebofy posted the same problem, but no solution.

Posted: 13 Feb 2007 18:45
by loic69
I think there'is difference in VS2005 with CRT DLL which are not the same.
For info, I can compile and it's work without problems on VS6 but not in VS2005. If you find solution, it would be a great day...

Thx

Posted: 14 Feb 2007 02:53
by xiaobei
.
For info, I can compile and it's work without problems on VS6 but not in VS2005. If you find solution, it would be a great day...

Thx
Hello loic69

Did you only built plugin with VC6? I also try to compile a plugin - NOT the complete vlc.Can you detailedly tell me how I should configure the building environment?

Thanks!

Posted: 14 Feb 2007 04:33
by loic69
.
For info, I can compile and it's work without problems on VS6 but not in VS2005. If you find solution, it would be a great day...

Thx
Hello loic69

Did you only built plugin with VC6? I also try to compile a plugin - NOT the complete vlc.Can you detailedly tell me how I should configure the building environment?

Thanks!
UNDER VS6
Hi I built my plugins (filters) with VS6. All is working very well.

UNDER VS2005
I try to open my dsw and dsp files with VS2005. The compile was OK but I have memory problems (crashes) in execution. I think but I'm not shure the problem is on CRT lib which are not the same with VS2005 :
VS6 : MSVCRT.DLL
VS2005 : MSVCRT8.DLL

I can send you by mail (give me your mail in private messsage) the VS6 dsp and dsw. Open it with VS2005 and try to change option such /MT /MD,.... If you have result, can you send me the sln and vcproject files back ?

Posted: 14 Feb 2007 05:40
by xiaobei

I can send you by mail (give me your mail in private messsage) the VS6 dsp and dsw. Open it with VS2005 and try to change option such /MT /MD,.... If you have result, can you send me the sln and vcproject files back ?

Thank you very much !
my e-mail :
liaoyanhong2006@163.com
If build it succesfully I will send to you as soon as possible.

Good luck

Posted: 18 Feb 2007 14:15
by seedily
.
For info, I can compile and it's work without problems on VS6 but not in VS2005. If you find solution, it would be a great day...

Thx
Hello loic69

Did you only built plugin with VC6? I also try to compile a plugin - NOT the complete vlc.Can you detailedly tell me how I should configure the building environment?

Thanks!
UNDER VS6
Hi I built my plugins (filters) with VS6. All is working very well.

UNDER VS2005
I try to open my dsw and dsp files with VS2005. The compile was OK but I have memory problems (crashes) in execution. I think but I'm not shure the problem is on CRT lib which are not the same with VS2005 :
VS6 : MSVCRT.DLL
VS2005 : MSVCRT8.DLL

I can send you by mail (give me your mail in private messsage) the VS6 dsp and dsw. Open it with VS2005 and try to change option such /MT /MD,.... If you have result, can you send me the sln and vcproject files back ?
Hi, would you please send me VS6 dsp and dsw?
my email: seedily@21cn.com

Posted: 04 May 2007 22:41
by loic69
Hi

Anyone as found a solution ?
My precedent post reffered to VLC 0.8.1 (plugin was built with VS6).
But now I'd like to switch to VLC 0.8.6b but my plugin doesn't building ith VS6...

I try to make a build with msys but I get on big vlc.exe file instead of a small vlc.exe and a libvlc.dll. I used option which are present in install.WIN2 file...

Posted: 17 May 2007 10:08
by xiaobei
Hi

Anyone as found a solution ?
My precedent post reffered to VLC 0.8.1 (plugin was built with VS6).
But now I'd like to switch to VLC 0.8.6b but my plugin doesn't building ith VS6...

I try to make a build with msys but I get on big vlc.exe file instead of a small vlc.exe and a libvlc.dll. I used option which are present in install.WIN2 file...
hi
I built vlc with cygwin succecfully. just fowllow the install.WIN32 strictly!
xiaobei

Posted: 17 May 2007 10:52
by loic69
Hi

Anyone as found a solution ?
My precedent post reffered to VLC 0.8.1 (plugin was built with VS6).
But now I'd like to switch to VLC 0.8.6b but my plugin doesn't building ith VS6...

I try to make a build with msys but I get on big vlc.exe file instead of a small vlc.exe and a libvlc.dll. I used option which are present in install.WIN2 file...
hi
I built vlc with cygwin succecfully. just fowllow the install.WIN32 strictly!
xiaobei
I'm happy for you.
Do you compile 0.8.6b ?
Do you obtain by linker an VLC.EXE and LIBVLC.DLL or just a DLL ?
Note in the setup of VLC there is dll and exe.
When I compile with msys I geted just on big VLC.exe.... :?

Posted: 18 May 2007 04:17
by xiaobei
Yeah,I compiled 0.8.6b.
But I got a axvlc.dll and .EXE only, not libvlc.dll.
Also,there was folder of plugins.

Besides,I got the same when I compiled 0.8.6a.

xiaobei