Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: xantippe on November 25, 2013, 11:24:22 am
-
Perhaps someone can help,
Under UBUNTU Linux 13.10
I try to setup a QT4 project. At the point of giving in the Qt's location C::B gives the following hint:
===
Please select the location of Trolltech Qt4 on your computer.
This is the top-level folder where Qt4 was installed.
To help you, this folder must contain the subfolders
"include" and "lib"
===
But under UBUNTU Qt4 has been installed at /usr/include/qt4 and /usr/lib/qt4
For using qmake with an example I put in .profile
PATH=$PATH:/usr/include/qt4:/usr/lib/qt4
export PATH
===
This works for qmake. But not for C::B.
Question:
How can I put in the right qt4 folder(s) for Code::Blocks ?
Thanks
-
that $(#qt4) that you see there is referring to a global variable called qt4. Go to Settings->global variables, and then click on new to make a new one. Name it qt4 and specify the directories there.
This is done because when you move your project file to a different computer that variable might link to different location. But it's still the same variable that your referencing for both computers so everything just works...
See this for more on global variables:
http://wiki.codeblocks.org/index.php?title=Global_compiler_variables