LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices


Reply
  Search this Thread
Old 09-06-2004, 04:34 AM   #1
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Rep: Reputation: 15
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.
 
Old 09-06-2004, 04:56 AM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
.bash_profile should work OK. Are you using export? ie,

export QTDIR=/foo/bar
 
Old 09-06-2004, 05:52 AM   #3
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Original Poster
Rep: Reputation: 15
.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#
 
Old 09-06-2004, 08:03 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Add the:
Code:
export QTDIR=/path/to/qt
to /etc/profile
 
Old 09-06-2004, 08:18 AM   #5
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Original Poster
Rep: Reputation: 15
thnx batory
 
Old 09-06-2004, 09:58 AM   #6
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
Looks like the Qt build system is busted.
 
Old 09-06-2004, 01:39 PM   #7
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Original Poster
Rep: Reputation: 15
O.k. so i guess i just have to run make confclean and reconfigure?
possibly install something that has to do with pthread?
 
Old 09-07-2004, 01:13 AM   #8
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Must set up Enviroment variables for GCC 3.4.3? colintri Linux - Software 5 03-13-2005 06:42 PM
How can I see all the enviroment variables? zvonSully Linux - Software 3 02-09-2005 07:39 AM
enviroment variables cphase Linux From Scratch 7 01-19-2005 03:15 PM
How to set System Enviroment Variables cathodion Linux - General 2 06-22-2004 05:05 PM
how to set enviroment variables RedHat123 Linux - Newbie 1 07-16-2002 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration