Gary Huckabay wrote:
On Sun, 28 Mar 2004, William A. Mahaffey III wrote:
The various glX... routines are part of SGI Open Graphics Library (Open GL), you need to include the libraries which resolve those routines (-lGL -lGLU -lGLw should get everything, YMMV). It also looks as if you may need to reference -lqt twice, since some of those symbols look like other parts of qt (just a guess there, but it is often necessary to reference libraries more than once when using the GNU linker).
But how could opengl be involved? I just used the hello.cpp program to make sure the installation was ok.
Program below.
#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(); }
Thank you for responding. Other suggestions?
gary
The various glX... routines that your last post said were unresolved are OpenGL routines. I have no idea why they are being invoked, I am not a qt programmer, I was just responding based on general knowlege & the details of your post :-). qt may invoke OpenGL to do all of its screen rendering, or those routines being called may just be toolkit initializations, I can't say ....