I can't seem to get VS Code to like WxWidgets on Linux or MacOS. It seems like it's trying to default to MSW?
The specific question is making VSCode play nice (autocomplete, don't give false errors) with WxWidgets. In command prompt, compiling any Wx project works perfect.
Steps:
- VS Code is installed
- Create folder for project. Let's call it /src/hello
- Create a hello.cpp file with code from: https://docs.wxwidgets.org/3.0/overview_helloworld.html
- Download WxWidgets into /src/hello/deps
- Going through steps to compile and install Wx https://docs.wxwidgets.org/trunk/plat_osx_install.html
- Check my Intellisense includes to include ${workspaceFolder}/**
Now, in the command prompt, if I run:
g++ hello.cpp 'wx-config --cxxflags --libs' -o hello
./hello runs perfect!
But in VSCode is unusable because it's giving me this error:
cannot open source file "../../../lib/vc_lib/msw/wx/setup.h" (dependency of "wx/wxprec.h")
I'm pretty sure msw is for windows?
I feel like I've tried everything:
- Downloaded and Git version of Wx (Yeah, I know it's the same. But people on the wx forums recommended trying...)
- Use the Homebrew WxWidgets install.
- Using the sample projects included with Wx.
- Using the Hello World
- Same issues in Linux and MacOS.
- Updating Intellisense's includes every way you can think of.
- Using the output of wxconfig and putting the cxxflags and lib include output into Intellisense.
Anyone able to test this all on their MacOS or Linux system and see if they are able to get VS Code to play nice?
THANK YOU!!
Top comments (4)
wxWidgets? Talk about blast from the past. That thing still alive ...? ๐
Yeah. It's updated regularly.
I'd rather use it over QT because of how specific QT is about the OS license, linked libs, etc.
I was going to use Flutter, but it doesn't have a proper datatable feature. (And I don't know it well enough to force Jquery Datatable to work)
Not using electron because I'm a stubborn old man. lol.
Interestingly, I remember it 20 years ago when it was created :)
Same.