View previous topic :: View next topic |
Author |
Message |
The_Bell Apprentice
Joined: 01 Jul 2002 Posts: 157
|
Posted: Sun Aug 04, 2002 8:34 pm Post subject: Problems compiling with QT |
|
|
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 |
|
|
The_Bell Apprentice
Joined: 01 Jul 2002 Posts: 157
|
Posted: Sun Aug 04, 2002 8:57 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|