[vlc-devel] Project of generation libvlc.lib compatible with MS Visual Studio.

Jacques Boileau jboileau at gmail.com
Thu Nov 10 18:05:29 CET 2011


Hi Jean-Baptiste,

Of course it would make it simpler for users of libvlc if the .lib was
already included and is certainly a desirable addition.

How to implement this in the make whoever is beyond my knowledge of
make files. But we would need to have access to lib.exe from
VisualStudio, so the build configuration would have to know where it
is. I know most of you are Linux oriented developers so I don't know
if you have VisualStudio available when you do your Win32
build.Microsoft states the following: You can start this tool only
from the Visual Studio command prompt. You cannot start it from a
system command prompt or from Windows Explorer.

I assume creating a .def file from the .sym file by adding EXPORTS at
the top shouldn't be too hard.

Jacques Boileau




On Thu, Nov 10, 2011 at 11:41 AM, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> On Thu, Nov 10, 2011 at 10:28:14AM -0500, Jacques Boileau wrote :
>> What I have been doing for quite a while now that is probably the
>> simpliest way to get a VisualStudio compatible .lib:
>>
>> Copy the file from the VLC source distribution \src\libvlc.sym to a
>> directory of your choice.
>>
>> Add a line at the top of the copied file with the single word EXPORTS.
>>
>> Start a Visual Studio command prompt from the visual studio tools
>> program menu. Navigate the directory where you copied the libvlc.sym
>> file and issue the command:
>>
>> lib /DEF:libvlc.sym
>>
>> This will create the libvlc.lib needed to link with the libvlc.dll.
>
> Wouldn't it be better to generate the .lib from the .def, at libvlc.dll
> build time and ship it in the sdk?
>
> Best Regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



More information about the vlc-devel mailing list