LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-06-2010, 09:20 AM   #1
tovarish
LQ Newbie
 
Registered: Jun 2010
Posts: 17

Rep: Reputation: 0
Can't compile because of qt-mt lib


Hello,

I can't compile several applications on my 11.2 x64 installation. Configure script returns something like:

"checking for Qt... configure: error: Qt (>= Qt 3.0) (library qt-mt) not found. Please check your installation!"

qt3, qt3-devel, qt3-32bit, qt3-devel-32bit packages installed. If I ran ./configure with --enable-libsuffix=64 it's done without troubles:

"checking for Qt... libraries /usr/lib/qt3/lib64, headers /usr/lib/qt3/include using -mt"

But then make returns error:

".../usr/lib/qt3/include/qrect.h:53: error: variable ‘Q_EXPORT QRect’ has initializer but incomplete type
/usr/lib/qt3/include/qrect.h:53: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
/usr/lib/qt3/include/qrect.h:55: error: expected primary-expression before ‘public’
/usr/lib/qt3/include/qrect.h:55: error: expected ‘}’ before ‘public’
/usr/lib/qt3/include/qrect.h:55: error: expected ‘,’ or ‘;’ before ‘public’
/usr/lib/qt3/include/qrect.h:57: error: expected constructor, destructor, or type conversion before ‘;’ token
/usr/lib/qt3/include/qrect.h:58: error: expected constructor, destructor, or type conversion before ‘;’ token ..." (and so on).

Any advice?

Many thx in advance.
 
Old 06-07-2010, 02:39 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Maybe you can check out the -std=c++0x or -std=gnu++0x options?
First read up on what they do/mean, then pick either one and pass it as a compiler option to make.
 
Old 06-07-2010, 03:09 AM   #3
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,110

Rep: Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102
It looks like Q_EXPORT has not been defined. You probably need to #include some other header before qrect.h

Evo2.
 
Old 06-09-2010, 05:58 AM   #4
tovarish
LQ Newbie
 
Registered: Jun 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Thank a lot for replies.

evo2, you are right, Q_EXPORT isn't set. could you please explain me what value Q_EXPORT should contain? I tried to google it but still can't understand.

Thx in advance.
 
Old 06-10-2010, 01:05 AM   #5
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,110

Rep: Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102Reputation: 1102
Quote:
Originally Posted by tovarish View Post
evo2, you are right, Q_EXPORT isn't set. could you please explain me what value Q_EXPORT should contain? I tried to google it but still can't understand.
Sorry, I don't know. I was just going by the message returned by the compiler.

You could try looking in the various qt headers.

Evo2.
 
Old 06-10-2010, 03:24 AM   #6
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 175

Rep: Reputation: 31
qt-mt is for multi-threaded support. Do you have libqt-mt and it's headers installed?
 
Old 06-10-2010, 11:21 AM   #7
tovarish
LQ Newbie
 
Registered: Jun 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alan99 View Post
qt-mt is for multi-threaded support. Do you have libqt-mt and it's headers installed?
Sorry, what is libqt-mt? I can't find it even with http://rpm.pbone.net/.
 
Old 06-11-2010, 02:31 AM   #8
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 175

Rep: Reputation: 31
It is in the Debian distribution. I don't know where you could find a rpm for your distribution.
 
Old 06-12-2010, 05:39 PM   #9
tovarish
LQ Newbie
 
Registered: Jun 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Solution can be founded here: http://forums.opensuse.org/get-help-...ml#post2175947
 
  


Reply

Tags
opensuse112, qt, suse11, x64


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
LXer: How-To: Compile and Install xine-lib 1.1.15 in Debian Lenny and Ubuntu 8.04 LXer Syndicated Linux News 0 09-12-2008 10:00 PM
Can't compile Kaffeine 0.8.4 from sources. Problem with xine-lib detection. Zibi1981 Linux - Software 18 07-28-2007 04:26 PM
no lib/modules/2.6.13 after kernel compile Motown Slackware 2 09-07-2005 07:59 AM
Lib path and compile toolshed Linux - Software 4 08-27-2004 12:10 PM


All times are GMT -5. The time now is 04:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration