I am having some problems using libVLC in VS2008, I need to use this IDE because the whole project must work on Winforms, yet I'd prefer to stay in a mixed native and managed form becase I am using also other libraries developped in native C for gps and perspective deformation of cartography to overlay on video.
I tried to compile the project with /crl mixing the Winforms code with the libvlc.lib obtained from the libvlc.dll as explained here http://wiki.videolan.org/GenerateLibFromDll yet I get
Code: Select all
warning LNK4078: multiple '.text' sections found with different attributes
warning LNK4248: unresolved typeref token for 'libvlc_instance_t'; image may not run
warning LNK4248: unresolved typeref token for 'libvlc_media_t'; image may not run
warning LNK4248: unresolved typeref token for 'libvlc_media_player_t'; image may not run
http://msdn.microsoft.com/en-us/library/h8027ys9.aspx
http://msdn.microsoft.com/en-us/library/049hc7a0.aspx
So I thought the cause was that the VLC I have installed, and therefore the dll from which I derived the lib, is compiled with gcc and mingw and not VS.
If you can think any solution let me know. Is there any libvlc.lib precompiled and ready to be used with VS for native+managed projects?
Else I'll try some libvlc.net project, and I'll use the others native libraries I need with PkInvoke... but I need some low level access to the video stream, grabbing each frame to a rgb matrix in order to overlay other information and access to time metadata in order to syncronize the video with the gps data, so in this case I ask you some advice about which libvlc .net project is better to make something like here http://wiki.videolan.org/LibVLC_SampleCode_SDL and get also time information.