CLion with wxWidgets

I am running CLion on Ubuntu 16.04. I am trying to create a project using wxWidgets. I can create a project with CodeLite and it will successfully build and run. The wxWidgets libraries are installed from the Ubuntu repositories. Using CLion, if I create a new project and try to build with wxWidgets, I get errors that it cannot find wx/setup.h. No matter what I try in the cmake file, this occurs. If I import a known working project created in CodeLite, I get hundreds of undefined reference errors when it tries to build. As a starting point, I would like to be able to build the wxWidgets "Hello World" app just to get a working baseline and take it further from there. Any help would be appreciated, I'm a couple days into my trial period at the moment. Any further info you may need, please ask, I'd be happy to provide it. Thank you.

3 comments

I too had tons of trouble making CLion work with the wxWidgets library. Here is my solution, after many weeks of screwing around with it...

https://forums.wxwidgets.org/viewtopic.php?f=19&t=45198 

0

How to use clion with Wxwidgets in windows

0

Please sign in to leave a comment.