Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems compiling with QT
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
The_Bell
Apprentice
Apprentice


Joined: 01 Jul 2002
Posts: 157

PostPosted: Sun Aug 04, 2002 8:34 pm    Post subject: Problems compiling with QT Reply with quote

I have the QT installed in Gentoo, but when I run the make command to build the main.cpp listed below, with a makefile made with the qmake -project and qmake commands, I got a lot of undefined references and the compiles exits with an error status. Could anyone tell me where the problem is? Maybe something I have not installed?

Here is the main.cpp file (copy & paste from the QT Documentation tutorials):

Code:

/****************************************************************
**
** Qt tutorial 1
**
****************************************************************/

#include <qapplication.h>
#include <qpushbutton.h>


int main( int argc, char **argv )
{
    QApplication a( argc, argv );

    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );

    a.setMainWidget( &hello );
    hello.show();
    return a.exec();
}


Thanks
Back to top
View user's profile Send private message
The_Bell
Apprentice
Apprentice


Joined: 01 Jul 2002
Posts: 157

PostPosted: Sun Aug 04, 2002 8:57 pm    Post subject: Reply with quote

I've seen I have the same problem the guy here in this other post:

https://forums.gentoo.org/viewtopic.php?t=9920

It seems qmake isn't putting the right variables in LIBS, whant can I do to fix it, it would be annoying to modify all the Makefiles I do manually.
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