Code::Blocks Forums
User forums => Help => Topic started by: Anvilsmith on July 24, 2008, 03:51:54 pm
-
The Qt4 project wizard offers one prompt in which I can define Qt's location. This location, the wizard informs me, must include "include" and "lib". If I type /usr/share/qt4 in the prompt, I am told that the wizard cannot locate the library directory.
"Include" already exists in /usr/share/qt4 (it's a symlink), but no sign of "lib".
Being new to both Linux (I'm using Ubuntu, btw) and Qt, I have no idea where to look for the lib directory. There doesn't seem to be any actual lib directory, to be frank, as the relevant files in the libqt4-core package were installed in /usr/lib, whereas parts of the libqt4-gui package are placed in /usr/lib and others in a different directory called /usr/lib/qt4 .
The apparent solution of creating a "lib" folder in /usr/share/qt4 as a symlink to /usr/lib seems dangerous, given that part of the library, but not necessarily all of it, might be stored in /usr/lib. Please let me know if this solution is in fact feasible, or otherwise suggest an alternative for me.
-
Well, I found out about Global Variables in Code::Blocks and set one up to use /usr/lib as the library directory. I hope (pray, rather) that this is the correct path for all library files. Running a simple "hello world!" program worked, but I still worry that parts of the QT library may be located elsewhere, which may cause me lots of headache in the future.
If anyone here has used C::B with Qt on Ubuntu, please let me know whether my worries are legitimate.
-
I suggest reading this link because I am not sure what you think global variables are.
http://wiki.codeblocks.org/index.php?title=Recommended_global_variables
http://wiki.codeblocks.org/index.php?title=Global_compiler_variables
See "File" -> "New" -> "From user template"
Tim S
-
I meant "global compiler variables", naturally.