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
wxVLC - a wxWidgets VLC Media Player
-
- In need of some credit
- Posts: 7
- Joined: Mon Aug 28, 2023 1:07 am
- doublemax@work
- Super wx Problem Solver
- Posts: 397
- Joined: Wed Jul 29, 2020 6:06 pm
Re: wxVLC - a wxWidgets VLC Media Player
The links in my previous post contained tools to convert a .lib to a .a file.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?
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
-
- In need of some credit
- Posts: 7
- Joined: Mon Aug 28, 2023 1:07 am
Re: wxVLC - a wxWidgets VLC Media Player
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.
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.
Re: wxVLC - a wxWidgets VLC Media Player
With VS2022 you need to use the original .lib.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".
Use the source, Luke!
- evstevemd
- 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
Hi,
https://packages.msys2.org/package/ming ... po=mingw64
One solution is already given by DM. If you want to use Mingw64 with MSYS then check outnewbierajk 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
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?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
-
- In need of some credit
- Posts: 7
- Joined: Mon Aug 28, 2023 1:07 am
Re: wxVLC - a wxWidgets VLC Media Player
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.
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.
Re: wxVLC - a wxWidgets VLC Media Player
Regarding libvlc, you need libvlc.lib and libvlccore.libnewbierajk 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.
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!
- evstevemd
- 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
Can you post full error stack?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.
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?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?