I have a small to medium size c++ project using Clion and a wsl/ubuntu backend, that creates a wsl console app. To move my project forward, I thought it would be a good idea to write a GUI interface for it, using wxWidgets and wxFormBuilder. And that is where my problems started.
For some reason I thought it would be easier to use visual studio than Clion for the GUI app, so I went ahead and set that all up in a win 10 virtual machine. I've been at this for like a day and half now, and I'm only making a little progress.
I followed all the steps here viewtopic.php?p=206365&sid=fb47892c27ab ... 0b#p206365 and I get this error:
So I tried again, and started a new visual studio project, downloaded the wxWidgets source zip file, and opened the samples/minimal project, and after adding in wxwidgets.props ran the build. And got the same error.wxWidgets libraries not found under "C:\wx\3.1.5\lib"
VS says line 111 in wxwidgets.props is the location of the error.
So open that in notepad and find:
Code: Select all
<Target Name="CheckWXLibs">
<Error
Condition="'$(wxUsingDll)$(wxUsingLib)' == ''"
Text="wxWidgets libraries not found under "$(MSBuildThisFileDirectory)lib"." />
</Target>
Note that I set the wxwin environment variable to c:\wx\3.1.5, the location of the wxWidgets files.