![]() ![]() Windows: The FetchContent module from CMake is quite nice because it allows you to download any library that is made using CMake but for big libraries such as this one is better to install the whole library in your local machine and use the find_package() function to add the library. This is quite easy and that's how I was working until some weeks ago in windows. Windows & Linux: Fetch and compile wxWidgets using the FetchContent module from CMake in your project. You have two options, maybe three, to set up CLion and wxWidgets.ĬLion is just the IDE that supports CMake, so you have to think that you need to make available wxWidgets to CMake in order to compile your project. I am currently using CLion and the wxWidgets library. i did notice that sometimes when i invalidate cache can clear the Enviroment variable within Clion but havent it yet set it in system. File | Settings | Build, Execution, Deployment | Cmake > Enviroment. ![]() if you provide whole path to wx-config sh will find it and execute it.i did set enviroment variable within CLion. Changing the script can work too but i dont know what would happen on upgrade. because script assumes sh, wx-config doesnt execute. clion has cmake script that searches for wx-config to configure library but there is problem your linux session can use other command line interpreter than sh as mine uses bash. the short for inpatient is set your environment variable WX_CONFIG=/pathTo/wx-config. so i took day for getting familiar with the subject. as most have also found solution from viewtopic.php?p=197038#p187276 but its only half of solution because we come to problem if we have more than one library to use. I seen lots of ppl have problem with CLion and wxWidgets on linux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |