8

Can anyone suggest a tutorial or getting started guide to CLion and wxWdgets? I have searched around but am unable to find anything.

DonJoe
  • 355
  • 1
  • 4
  • 12
  • What seems to be the problem? Also, it would be nice to know you OS version as well as wx version. Thank you. – Igor Apr 15 '16 at 13:58
  • Hello, I have never worked with CLion or wxWidgets. The OS is Windows 10, wxWidgets v3.1.0. The only C++ development that I have done in the past is with Qt so, there was very little configuration of the IDE to get started. It appears that it would be much easier to use Visual Studio for wxWidgets however, I am a big fan of Jetbrains (IntelliJ, PyCharm, etc.) so, I wanted to give CLion a whirl. Thanks! – DonJoe Apr 19 '16 at 11:26
  • is CLion some kind of Java IDE? I never heard about it before... Nevertheless if it can work with C++ it is very easy. Just build wxWIdgets either using MinGW or MSVC and set it up in CLion. No special requirements necessary – Igor Apr 19 '16 at 19:32
  • I just googled it and it is C/C++ IDE which uses CMake. There is a GitHub fork of wxWidgets that is using CMake. Post on either wx-users or on the forums.wxwidgets.org and you will get a link to its repo. Then build the library and set up the IDE – Igor Apr 19 '16 at 19:36
  • I presume you already have CMake set up so you should be good after you get a CMake files for wxWidgets. After you build the library, just open the project, point the include directory to wxWidgets/include and lib directory to wxWidgets/lib and that's it. After that just build the code, and fix any compiler errors you get. ;-) – Igor Apr 19 '16 at 19:39
  • It this CMake file. It may help you. https://stackoverflow.com/questions/39871053/building-wxwidgets-3-1-0-on-clion-ubuntu/44415505#44415505 – Jasurbek Nabijonov Jun 07 '17 at 14:33
  • Try this solution. I think it can help you https://stackoverflow.com/questions/39871053/building-wxwidgets-3-1-0-on-clion-ubuntu/44415505#44415505 – Jasurbek Nabijonov Jun 07 '17 at 14:37

1 Answers1

10

Well,

  1. you should download WxWidgets here http://www.wxwidgets.org/downloads/.
  2. Then, you should compile and install to your system.
  3. Download and install CLion.
  4. Create new Project.
  5. Then, follow to this edit your CMakeLists.txt Building wxWidgets 3.1.0 on CLion (Ubuntu)
  6. Then try Hello World sample http://docs.wxwidgets.org/trunk/overview_helloworld.html.
  7. If everything okay, start to develop great apps!
Jasurbek Nabijonov
  • 1,607
  • 3
  • 24
  • 37