Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compiling my qt software
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Uranus
Guru
Guru


Joined: 07 May 2002
Posts: 438
Location: Portugal, Braga

PostPosted: Fri Sep 13, 2002 12:14 pm    Post subject: compiling my qt software Reply with quote

I wanted to make cross-platform software, so QT seemed like a good choice... I made a simple test proggie and I did a 'qmake -project', then a 'qmake', and finally a 'make' (as the documentation suggests)... but I get a WHOLE bunch of errors on the qt include files... (parse errors, invalid arguments, undeclared variables... anything else you can think of)... I read the install faq on www.trolltech.com and it said the problem is probably because I have 2 versions of QT installed (which I need to compile my gentoo apps)... it said to make sure qt v3 was before version 2 on the compiler path .... I've tried everything and this thing still does the same thing... can anyone help me on this one?
Back to top
View user's profile Send private message
shadow303
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2002
Posts: 101

PostPosted: Fri Sep 13, 2002 3:08 pm    Post subject: Reply with quote

Have you tried tweaking the makefile to explicitly set include directories and library directories (i.e. -I /usr/qt/3/include and -L /usr/qt/3/lib)? I haven't actually had two versions installed so this is just an idea.
Back to top
View user's profile Send private message
Uranus
Guru
Guru


Joined: 07 May 2002
Posts: 438
Location: Portugal, Braga

PostPosted: Fri Sep 13, 2002 3:45 pm    Post subject: Reply with quote

I just tried it, and no go... I generated the Makefile with qmake (as recommended) and searched the Makefile for $QTDIR and replaced it with /usr/qt/3 .... I looked and everything seemed fine... when I do a 'make' it does the same thing (hundreds of lines that look like this):

Code:
/usr/qt/3/include/qnamespace.h:50: parse error before `Q_EXPORT'
/usr/qt/3/include/qnamespace.h:50: syntax error before `{'
/usr/qt/3/include/qnamespace.h:92: conflicting types for `Vertical'
/usr/qt/3/include/qstring.h:127: previous declaration of `Vertical'
/usr/qt/3/include/qnamespace.h:651: parse error before `QCursor'
/usr/qt/3/include/qnamespace.h:692: conflicting types for `Right'
/usr/qt/3/include/qstring.h:133: previous declaration of `Right'
/usr/qt/3/include/qnamespace.h:698: parse error before `ToolBarDock'


obviously I can't unmerge qt2 coz it'll break things... please... HELP!
Back to top
View user's profile Send private message
shadow303
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2002
Posts: 101

PostPosted: Fri Sep 13, 2002 7:25 pm    Post subject: Reply with quote

I just had another thought. Are the errors generated by g++ or by moc? You might want to check that the correct moc is running.
Back to top
View user's profile Send private message
Uranus
Guru
Guru


Joined: 07 May 2002
Posts: 438
Location: Portugal, Braga

PostPosted: Sat Sep 14, 2002 12:48 am    Post subject: Reply with quote

Code:
$ which moc
/usr/qt/3/bin/moc


there's nothing in the makefile that seems wrong... if u want I can post it... damnit... just don't understand this thing!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum