View Single Post
Old 06-02-2016, 06:05 PM   #2
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
QtQreator and cmake project short howto

I skipped the part about getting sources and dependencies - you can find all necessary information here .

QtQreator is running .
[File]->[Open File or Project] menu shows "Open File" box, let's navigate to source folder (Sigil) and chose the "CMakeList.txt" file there. QtC shows then "CMake Wizard" and wants to know where we shell build Sigil, I just Next'ed its proposal. Now it wants to "Run CMake" and offers us an opportunity to give it some arguments. I use something like this:
Code:
-G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/path/to/install -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/path/to/qt/cmake/lib -DPYTHON_LIBRARY=/path/to/python3/library
so in real life it looks like that:
Code:
-G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/home/varlog -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/Qt5.5.1/5.5/gcc_64/lib/cmake -DPYTHON_LIBRARY=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/libpython3.4m.so
Debug because I expect many many errors . Otherwise it would be Release.
Now QtC runs cmake: no errors so just click on "Finish". QtC parses/indexes.
To check if the project really builds I click on green arrow down left - should build and run Sigil.

it sucks... Embedded Python Error... I had it before but don't remember how I got rid of it (I recreate the process fresh for your sake, my usual environment works as expected).

to be continued...?

Last edited by varlog; 06-02-2016 at 06:17 PM.
varlog is offline   Reply With Quote