[csw-users] sun opengl and mesa: problem with qt4

gerard ghenry at cmi.univ-mrs.fr
Mon Sep 7 17:35:00 CEST 2009


hello all,
i'm trying to compile qt4, and it fails with:
g++ -fno-exceptions -Wl,-R,/usr/local/Trolltech/Qt-4.4.3/lib 
-Wl,-R,/usr/local/Trolltech/Qt-4.4.3/lib -Wl,-R,/opt/csw/lib -o 
padnavigator .obj/release-shared/panel.o 
.obj/release-shared/roundrectitem.o .obj/release-shared/splashitem.o 
.obj/release-shared/main.o .obj/release-shared/moc_panel.o 
.obj/release-shared/moc_roundrectitem.o 
.obj/release-shared/moc_splashitem.o 
.obj/release-shared/qrc_padnavigator.o    -L/opt/csw/lib 
-L/usr/local/src/qt-x11-opensource-src-4.4.3/lib -L/usr/sfw/lib 
-L/usr/openwin/lib -lQtOpenGL -L/opt/csw/lib 
-L/usr/local/src/qt-x11-opensource-src-4.4.3/lib -L/usr/sfw/lib 
-L/usr/openwin/lib -lQtGui -lpng -lfreetype -lSM -lICE -lXi -lXrender 
-lXext -lX11 -lresolv -lsocket -lnsl -lQtCore -lz -lm -liconv -ldl -lGLU 
-lGL -lpthread -lrt
Undefined                       first referenced
  symbol                             in file
sunOglCurPrimTablePtr 
/usr/local/src/qt-x11-opensource-src-4.4.3/lib/libQtOpenGL.so
sunOglCurrentContext 
/usr/local/src/qt-x11-opensource-src-4.4.3/lib/libQtOpenGL.so

after searches, i found that these variables come with Sun OpenGL:
mombasa-root% nm /usr/lib/libGL.so | grep sunOgl
[6431]  |   1767764|       4|OBJT |GLOB |0    |20     |sunOglCurPrimTablePtr
[5476]  |   1790640|       4|OBJT |GLOB |0    |23     |sunOglCurrentContext
[2164]  |   1767908|       4|OBJT |LOCL |2    |20     |sunOglPostFinish
[2108]  |   1767904|       4|OBJT |LOCL |2    |20     |sunOglPostFlush

And the qt4 configure takes CSWmesa into account, unfortunately, it 
doesn't contains:
mombasa-root% nm /opt/csw/lib/libGL.so | grep sunOgl
mombasa-root%

I suppose the problem only happens on sparc machines, with Sun OpenGL.
A solution could be to disable OpenGL features?
Is there another solution?

thanks in advance,

gerard





More information about the users mailing list