Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have installed qt3 on my laptop machine running SuSE 9.0 with KDE 3.1
I have a simple project in a direatory called QtWindowWithButtons that
just makes a Qt window with three buttons.
I am able to run qmake and when i run make it cannot find the header
files. This is of course is an include problem. I know that Qt Makefiles
use a QTDIR environment that specifies qt directory...in my case being
/usr/lib/qt3. However, if i say QTDIR=/usr/lib/qt3 and then echo $QTDIR
in Konsole, I get /usr/lib/qt3. This is as expected, but when i type
qmake, then make it uses /include instead of /usr/lib/qt3/include.
This is because i forgot to export QTDIR.
So I did that and it worked fine, however when I reboot of course the environment variable is no longer set. I guess my qeustion is, is there a way to permanently set environment variables. I know that I can modify my .bashrc file to set it whenever I open up a Konsole. But on system boot up, is there like a registry that I can change to set an environment variable. Like the Windows Registry???
# Environment variables for the Qt package:
if [ -d /usr/lib/qt3 ]; then
if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then
I had to create the qt.sh file and put it in that directory. Do I need to set up some link to source that shell script when my machine boots. Because I rebooted and no QTDIR was defined. I tested using echo $QTDIR. Maybe I am just missing something...