Where to set enviroment variables
Hello there
I'm trying to install qt 3.3.3 but i get some compilation errors This is probably due to the fact that i don't know where to set the QTDIR env variable as is said in the INSTALL file before compilation I've tried both .bash_profile in users home dir and .profile in root's home. Logged off and in. echo $QTDIR nothing. Anyone has some suggestion as to where to set these variables. I'm running Debian Sarge. |
.bash_profile should work OK. Are you using export? ie,
export QTDIR=/foo/bar |
.bash_profile doesn't work whatshowever
I've tested this by adding a dir to the path env and that also doesn't work i now tried to add something to /root/.bashrc that seems to work but only for user root perhaps a restart will solve it systemwide. but i still get the same error compiling qt being. /usr/local/qt-x11-free-3.3.3/lib/libqt.so: undefined reference to `pthread_getspecific' /usr/local/qt-x11-free-3.3.3/lib/libqt.so: undefined reference to `pthread_key_create' /usr/local/qt-x11-free-3.3.3/lib/libqt.so: undefined reference to `pthread_setspecific' collect2: ld returned 1 exit status make[4]: *** [../../../bin/uic] Error 1 make[4]: Leaving directory `/usr/local/qt-x11-free-3.3.3/tools/designer/uic' make[3]: *** [sub-uic] Error 2 make[3]: Leaving directory `/usr/local/qt-x11-free-3.3.3/tools/designer' make[2]: *** [sub-designer] Error 2 make[2]: Leaving directory `/usr/local/qt-x11-free-3.3.3/tools' make[1]: *** [sub-tools] Error 2 make[1]: Leaving directory `/usr/local/qt-x11-free-3.3.3' make: *** [init] Error 2 debian:/usr/local/qt-x11-free-3.3.3# |
Add the:
Code:
export QTDIR=/path/to/qt |
thnx batory
|
Looks like the Qt build system is busted.
|
O.k. so i guess i just have to run make confclean and reconfigure?
possibly install something that has to do with pthread? |
O.k QT runs.
I have as said in previous post installed the apt-get install kaffe-pthreads apt-get install kaffe-pthreads-profile (however i'm not sure this one is neccesary) added the enviroment variables mentioned in the INSTALL file to /etc/profile file ran make confclean ./configure --threads (to make sure it uses the threads as they are needed to compile boson and prokyon3) make What i didn't find out however since kfind is not functioning is where the hell debian installed the imbedded qt and how and if i should remove it. Anybody want's to tell me if it can cause trouble running both on one system? |
All times are GMT -5. The time now is 06:31 PM. |