Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, June 2007
Solaris 10 Update 3 configuration problems


Message 1 in thread

Greetings,

Recently, I downloaded the qt 4.3.0 open source release to create my
own build of it for packaging for Solaris 10 Update 3.

I noticed that ./configure failed to enable OpenGL support among other
things with the default mkspec configuration.

I had to change the following mkspecs/solaris-cc/qmake.conf entries
before it would properly detect OpenGL and Xrender:

--- qt-x11-opensource-src-4.3.0-orig/mkspecs/solaris-cc/qmake.conf
 Fri May 25 08:24:01 2007
+++ qt-x11-opensource-src-4.3.0/mkspecs/solaris-cc/qmake.conf   Sun
Jun 24 17:58:53 2007
@@ -26,7 +26,7 @@
 QMAKE_CFLAGS_THREAD    = -mt

 QMAKE_CXX              = CC
-QMAKE_CXXFLAGS         = $$QMAKE_CFLAGS
+QMAKE_CXXFLAGS         = $$QMAKE_CFLAGS -I/usr/X11/include -I/usr/X/include
 QMAKE_CXXFLAGS_DEPS    = $$QMAKE_CFLAGS_DEPS
 QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
 QMAKE_CXXFLAGS_WARN_OFF        = $$QMAKE_CFLAGS_WARN_OFF
@@ -40,7 +40,7 @@
 QMAKE_INCDIR           = /usr/sfw/include
 QMAKE_LIBDIR           = /usr/sfw/lib
 QMAKE_INCDIR_X11       = /usr/openwin/include
-QMAKE_LIBDIR_X11       = /usr/openwin/lib
+QMAKE_LIBDIR_X11       = /usr/openwin/lib:/usr/X11/lib:/usr/X/lib
 QMAKE_INCDIR_QT                = $$[QT_INSTALL_HEADERS]
 QMAKE_LIBDIR_QT                = $$[QT_INSTALL_LIBS]
 QMAKE_INCDIR_OPENGL    = /usr/openwin/include
@@ -48,7 +48,7 @@

 QMAKE_LINK             = CC
 QMAKE_LINK_SHLIB       = CC
-QMAKE_LFLAGS           = -R/usr/lib -R$$[QT_INSTALL_LIBS]
+QMAKE_LFLAGS           = -R/usr/lib -R/usr/sfw/lib -R/usr/X11/lib
-R/usr/X/lib -L/usr/sfw/lib -L/usr/X11/lib -L/usr/X/lib
-R$$[QT_INSTALL_LIBS]
 QMAKE_LFLAGS_RELEASE   =
 QMAKE_LFLAGS_DEBUG     =
 QMAKE_LFLAGS_SHLIB     = -G

I also had to add the -R paths so that when I ran the resulting build
of designer, etc. it would be able to find the right libraries.
Without them, I would have to muck with environment variables to get
designer to run.

I'm sure this isn't the right fix, but I am curious as to what the right one is.

I should also note for Solaris users that I had to create a symlink named:
/usr/X11/include/GL/glu.h to ../mesa/glu.h

I have the latest Solaris nVidia drivers installed.

After making these changes, the build completed. All of the Qt demos
work as I expect (including the OpenGL ones) so I assume I'm not too
far off on my solution.

-- 
 [ signature omitted ]