LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ./configure problem, unable to find Qt... sometimes (https://www.linuxquestions.org/questions/linux-newbie-8/configure-problem-unable-to-find-qt-sometimes-372820/)

J--Lew 10-13-2005 08:43 PM

./configure problem, unable to find Qt... sometimes
 
Hey guys, just got myself a new laptop, and I'm having some troubles installing some programs from source. For example, when I attempt to install Kbfx my ./configure craps out saying:
Code:

Checking for Qt... configure: error: Qt (>= Qt 3.2) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

Now I know that I have the latest Qt libraries installed.

When I installed Yakuake, the script found Qt no problem, this is what it said:
Code:

checking for Qt... libraries /usr/lib/qt3/lib64, headers /usr/lib/qt3/include using -mt
so now that I know where Qt is installed to, how can I tell the other configure scripts where to find it??

Thanks guys

jailbait 10-13-2005 09:41 PM

"Checking for Qt... configure: error: Qt (>= Qt 3.2) (library qt-mt) not found."
"checking for Qt... libraries /usr/lib/qt3/lib64, headers /usr/lib/qt3/include using -mt"
"Now I know that I have the latest Qt libraries installed. "

Check the version number of Qt. Is it higher than Qt 3.2?

The other possibility is that ./configure is often ambiguous about whether it is looking for the binary or development version of a package. Check whether you also have the Qt development package installed.

---------------------------
Steve Stites

scuzzman 10-13-2005 11:12 PM

Code:

./configure --help
usually provides some extra flags you can pass to ./configure - typically, one of the flags will allow you to point to a specific location for a set of libs (such as Qt).

J--Lew 10-14-2005 05:39 PM

Thanks for the help guys, but I still can't get this to work. I made sure that I have the most up-to-date version of Qt.
I ran ./configure --help, and tried passing "./configure --with-qt-libaries=/usr/lib/qt3/lib64 --with-qt-includes=/usr/lib/qt3/include", and "./configure --with-qt-dir=/usr/lib/qt4", but I am still getting the same error. Any ideas?

Agentvenom 10-15-2005 11:03 AM

I know very little about compiling. But if you want to extend your path so it will look in other places just read this:

If, at any time, you want to extend your search path temporarily, just for the duration of the rest of this login session, you can add a new entry to the end at the command prompt with (for example):

$ PATH=$PATH:/usr/games (where /usr/games is where you want it to search)


If, however, you want to make a permanent change, you should do this in your personal .bash_profile, and your new path will take effect at the next login.

Maybe you could extend your search path to include the location you found QT in the other script?

ioerror 10-15-2005 11:55 AM

Quote:

$ PATH=$PATH:/usr/games (where /usr/games is where you want it to search)
PATH is only used to search for commands. It isn't relevant when looking for libraries during compiling.

Look in config.log, it should give some indication about what it's trying (and failing) to do.

Also, make sure you have the qt development libs/headers installed. Some distros split run time and development stuff into seperate packages.

J--Lew 10-16-2005 07:18 PM

Hey thanks for all of the replies guys, but I think I found the soution if anyone else is having this problem. I forgot to mention that I am using an AMD64 processor, and everything seems to work fine when I run
Code:

./configure --enable-libsuffix=64
I just took a shot in the dark and it seemed to work fine :D

yknott 10-24-2005 08:11 AM

error: Qt (>= Qt 3.0) (library qt-mt) not found (64 bit)
 
thanks
i was pulling my hair out over this too, and yeah i also am using the athlon64 and hence 64bit version of opensuse 10;

compiling with
--enable-libsuffix=64

worked
whereas adding all of the
--with-qt-dir=...
--with-qt-libraries=...
--with-qt-includes=...
had not helped

rumbero 11-17-2005 08:24 AM

Hi @ ALL

I had the same problem and I fixed it with:

ln -s /usr/lib/qt-3.3 /usr/lib/qt

This works with RedHat Linux :-)

Bye

rumbero

alar 12-11-2005 10:48 PM

All together now :)

./configure --enable-libsuffix=64 --without-kde --with-qt-dir=/usr/lib/qt

It worked!!!

AMD, Gnome and symlink to /usr/lib/qt

Thanks!

karry 12-13-2005 03:59 AM

Qt >=3.2
 
Hi everybody, I cannot compile due to Qt error, (>=3.2) I've tried to compile as all of you have said but I can't, I'm using suse 10. Thanks very much and regards!

alar 12-13-2005 01:31 PM

Can you maybe provide some more info?


All times are GMT -5. The time now is 01:00 AM.