LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 07-20-2006, 01:42 PM   #1
TTux
LQ Newbie
 
Registered: Jun 2004
Location: India, Pune
Distribution: SuSE 10.1
Posts: 8

Rep: Reputation: 0
Exclamation QT on suse9.3 compile error, fresh installation


Hello all,

I have freshly installed SuSE 9.3, with QT developmental files and tools. Its a very fresh installation, and I installed it only because I had to develop for this specific version of QT which comes as default with SuSE 9.3.

Now the problem is when I try to compile even the "hello world" code given in QT documentation (tutorial# 1, example 1 - hello world), it gives huge amounts of compile errors!
I followed the standard method of qmake -project, qmake, make. Below are the initial few lines of compiler errors after running make (I captured these by running make 2>&1 | less):


gcc -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -DQT_NO_DEBUG -DQT_SHARED -
DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I. -I
/usr/include -I/usr/lib/qt3/include -o hello.o hello.c
In file included from /usr/lib/qt3/include/qwindowdefs.h:43,
from /usr/lib/qt3/include/qwidget.h:42,
from /usr/lib/qt3/include/qdesktopwidget.h:40,
from /usr/lib/qt3/include/qapplication.h:42,
from hello.c:1:
/usr/lib/qt3/include/qobjectdefs.h:152: error: syntax error before "QObject"
/usr/lib/qt3/include/qobjectdefs.h:152: warning: type defaults to `int' in decla
ration of `QObject'
/usr/lib/qt3/include/qobjectdefs.h:152: warning: data definition has no type or
storage class
/usr/lib/qt3/include/qobjectdefs.h:153: error: syntax error before "QMetaObject"
/usr/lib/qt3/include/qobjectdefs.h:153: warning: type defaults to `int' in decla
ration of `QMetaObject'
/usr/lib/qt3/include/qobjectdefs.h:153: warning: data definition has no type or
storage class
/usr/lib/qt3/include/qobjectdefs.h:154: error: syntax error before "QSignal"
/usr/lib/qt3/include/qobjectdefs.h:154: warning: type defaults to `int' in decla
ration of `QSignal'
.....
.....

The total lines of errors printed were like almost 3500!!!

I'm clueless about what's wrong... is it not able to find some header file or something?
I'm clearly missing something basic here, because same I tried on SuSE 10 as well as SuSE 10.1, and same result, same errors...

Please help...

Thanks and best regards,
TTux
 
Old 07-20-2006, 02:23 PM   #2
TTux
LQ Newbie
 
Registered: Jun 2004
Location: India, Pune
Distribution: SuSE 10.1
Posts: 8

Original Poster
Rep: Reputation: 0
Smile

Okay I got the solution. I edited the qmake.conf file (/usr/lib/qt3/mkspecs/linux-g++/qmake.conf). Changed the following line:

Old:
QMAKE_CC = gcc
New:
QMAKE_CC = g++


This did the trick. :-)
 
  


Reply

Tags
compilation, compile, error, errors, qt, qt3, suse93


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
suse9.3 error installation first cd finding-suse Linux From Scratch 2 02-26-2006 09:06 AM
cant connect to internet on fresh install of suse9.1 springdog Linux - Newbie 13 12-27-2004 04:47 PM
cant compile mplayer 1.0pre3 in suse9 Anubis Linux - Software 1 02-21-2004 11:54 PM
Fresh 9.1 install/ compile and some weird sound/mozilla problems Abe_the_Man Slackware 2 11-28-2003 01:47 AM
wine installation error during compile process. Please help. TRON2 Linux - Software 1 11-02-2003 04:11 AM


All times are GMT -5. The time now is 04:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration