Author Topic: More than one QT path needed on Linux, yet Code::Blocks offers one prompt  (Read 4898 times)

Offline Anvilsmith

  • Single posting newcomer
  • *
  • Posts: 5
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.

Offline Anvilsmith

  • Single posting newcomer
  • *
  • Posts: 5
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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7597
    • My Best Post
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

« Last Edit: July 26, 2008, 04:51:49 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Anvilsmith

  • Single posting newcomer
  • *
  • Posts: 5
I meant "global compiler variables", naturally.