wxVLC - a wxWidgets VLC Media Player

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
newbierajk
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Aug 28, 2023 1:07 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by newbierajk »

Hi evstevemd,

Sorry for my late response. Current it just gives one error as shown below when building in code blocks:

||=== Build: Debug in wxVLC (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lvlc.lib|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

I have the wxVLC code blocks project and the VLC sdk kit are inside the same folder C:\spproj\wxVLC and C:\spproj\vlc-3.0.18 but I have included the path for all the lib files like libvlc.lib/libvlccore.lib/vlc.lib/vlccore.lib in the compiler and linker.

I think its expecting libvlc.a file instead of libvlc.lib file. I am not getting any info on libvlc.a file. Can you help?

Regards,
rajk
User avatar
doublemax@work
Super wx Problem Solver
Super wx Problem Solver
Posts: 397
Joined: Wed Jul 29, 2020 6:06 pm

Re: wxVLC - a wxWidgets VLC Media Player

Post by doublemax@work »

newbierajk wrote: Mon Sep 11, 2023 3:44 am I think its expecting libvlc.a file instead of libvlc.lib file. I am not getting any info on libvlc.a file. Can you help?
The links in my previous post contained tools to convert a .lib to a .a file.

This .zst package contains the libs already converted to .a:
https://packages.msys2.org/package/ming ... po=mingw64

You can unpack it with:
https://github.com/mcmilk/7-Zip-zstd
newbierajk
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Aug 28, 2023 1:07 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by newbierajk »

Wonderful!!!

Thank you so much it worked after I got the libvlc.a lib file.

I am trying to run the same code in VS 2022. But receiving the error in VLC instance creation "unresolved external symbol libvlc_new". How can I transfer the CB project to VS project. Any thoughts appreciated.

Regards,
Bobin.
User avatar
doublemax
Moderator
Moderator
Posts: 18556
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxVLC - a wxWidgets VLC Media Player

Post by doublemax »

newbierajk wrote: Mon Sep 11, 2023 6:11 pm I am trying to run the same code in VS 2022. But receiving the error in VLC instance creation "unresolved external symbol libvlc_new".
With VS2022 you need to use the original .lib.
Use the source, Luke!
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2398
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxVLC - a wxWidgets VLC Media Player

Post by evstevemd »

Hi,
newbierajk wrote: Mon Sep 11, 2023 3:44 am Hi evstevemd,

Sorry for my late response. Current it just gives one error as shown below when building in code blocks:

||=== Build: Debug in wxVLC (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lvlc.lib|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

I have the wxVLC code blocks project and the VLC sdk kit are inside the same folder C:\spproj\wxVLC and C:\spproj\vlc-3.0.18 but I have included the path for all the lib files like libvlc.lib/libvlccore.lib/vlc.lib/vlccore.lib in the compiler and linker.

I think its expecting libvlc.a file instead of libvlc.lib file. I am not getting any info on libvlc.a file. Can you help?

Regards,
rajk
One solution is already given by DM. If you want to use Mingw64 with MSYS then check out
https://packages.msys2.org/package/ming ... po=mingw64
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
newbierajk
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Aug 28, 2023 1:07 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by newbierajk »

Hi Dmax/evstevemd,

I tried the 32bit build in VS 2022 but it gives error as unresolved references for wxwindow and libvlc_new. I used the VLC3.0.18 SDK lib which has libvlc.lib and its 32bit and also installed wxwidgets 32bit static version via vcpkg.

I am not sure if I can use the resource.rc file which has this include "wx/msw/wx.rc" but VS compiler says it cannot find. Also not sure if I can use wxFrame.wxs file, not sure if its causing the link error.

So some modifications are needed to make it work in VS2022 but not sure what and all I need. It compiles good as I added all the include and library files in the compiler added depndencies and also did the same in Linker additional directories but still Linking has issues

Any suggestions are welcome.

Regards,
Bobin.
User avatar
doublemax
Moderator
Moderator
Posts: 18556
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxVLC - a wxWidgets VLC Media Player

Post by doublemax »

newbierajk wrote: Tue Sep 12, 2023 2:36 pm I tried the 32bit build in VS 2022 but it gives error as unresolved references for wxwindow and libvlc_new. I used the VLC3.0.18 SDK lib which has libvlc.lib and its 32bit and also installed wxwidgets 32bit static version via vcpkg.
Regarding libvlc, you need libvlc.lib and libvlccore.lib
Did you add them to the list of input libraries?

Same goes for the wxWidgets libraries. As i've never used vcpkg, i don't know if this happens automatically.
Use the source, Luke!
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2398
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxVLC - a wxWidgets VLC Media Player

Post by evstevemd »

newbierajk wrote: Tue Sep 12, 2023 2:36 pm Hi Dmax/evstevemd,

I tried the 32bit build in VS 2022 but it gives error as unresolved references for wxwindow and libvlc_new.
Can you post full error stack?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Post Reply