View previous topic :: View next topic |
Author |
Message |
Uranus Guru
Joined: 07 May 2002 Posts: 438 Location: Portugal, Braga
|
Posted: Fri Sep 13, 2002 12:14 pm Post subject: compiling my qt software |
|
|
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 |
|
|
shadow303 Tux's lil' helper
Joined: 19 Apr 2002 Posts: 101
|
Posted: Fri Sep 13, 2002 3:08 pm Post subject: |
|
|
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 |
|
|
Uranus Guru
Joined: 07 May 2002 Posts: 438 Location: Portugal, Braga
|
Posted: Fri Sep 13, 2002 3:45 pm Post subject: |
|
|
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 |
|
|
shadow303 Tux's lil' helper
Joined: 19 Apr 2002 Posts: 101
|
Posted: Fri Sep 13, 2002 7:25 pm Post subject: |
|
|
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 |
|
|
Uranus Guru
Joined: 07 May 2002 Posts: 438 Location: Portugal, Braga
|
Posted: Sat Sep 14, 2002 12:48 am Post subject: |
|
|
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 |
|
|
|