Page 1 of 1

Compiling VLC Code in VS 2008

Posted: 17 Apr 2008 04:53
by bobber205
http://wiki.videolan.org/LibVLC_Tutorial_086c

Trying to compile the basic code.
Downloaded the tar, unpacked it to C:\tools\VLC (renamed folder).
Added it to my include path for "include files" under options->Projects and Solutions->VC++ Directories
Took care of the #include problems so I know that went correctly.

However I am getting errors like
Error 1 error LNK2019: unresolved external symbol _libvlc_destroy referenced in function _main main.obj

So I know I need the DLL.

I am not sure what exactly to add.
I added C:\Program Files\VideoLAN\VLC\ to my "Library Files" path but that must not be it.
Edit
Turns out I think I need libvlc.lib to get things to compile. However I cannot find this file. :)


Thanks for any help VLC community. :)

Re: Compiling VLC Code in VS 2008

Posted: 30 Apr 2008 07:57
by ydf9
When I open the .dsw file,I can't find any files in the project "libvlc".Can you help me to solve it?

Re: Compiling VLC Code in VS 2008

Posted: 01 May 2008 04:39
by ydf9
You may compile libvlc.lib by yourself using the project libvlc.
Now I have compiled the file,add the path,but I can't compile the vlc project either.The Errors are the same! :cry:
http://wiki.videolan.org/LibVLC_Tutorial_086c

Trying to compile the basic code.
Downloaded the tar, unpacked it to C:\tools\VLC (renamed folder).
Added it to my include path for "include files" under options->Projects and Solutions->VC++ Directories
Took care of the #include problems so I know that went correctly.

However I am getting errors like
Error 1 error LNK2019: unresolved external symbol _libvlc_destroy referenced in function _main main.obj

So I know I need the DLL.

I am not sure what exactly to add.
I added C:\Program Files\VideoLAN\VLC\ to my "Library Files" path but that must not be it.
Edit
Turns out I think I need libvlc.lib to get things to compile. However I cannot find this file. :)


Thanks for any help VLC community. :)