User forums > Using Code::Blocks
Help setting up Code::BLocks with QT4
zak:
Hi,
cmake help us to solve the problem, both on windows and linux.
1) read some info about cmake here
http://www.cmake.org/cmake/help/examples.html
2) create a cmakelist.txt for a QT4 project following this
http://www.qtcentre.org/wiki/index.php?title=Compiling_Qt4_apps_with_CMake
3) run cmake in the directory where cmakelist.txt is using the commans:
$> cmake ./ -G "CodeBlocks - MinGW Makefiles"
in order to produce the cache for cmake and the C:B project
4) run the file .cbp project produced by cmake and.. it will works!
5) only for windows users: in order to avoid linking problems
start a QT command prompt (start->programs->Qt->Qt command prompt)
navigate the directory until your project is and run the .cbp file:
Good Work!
Navigation
[0] Message Index
[*] Previous page
Go to full version