Sorry to sound silly, but make sure the file libGLU.so exists. I mean, in my system, it is a sym link. Check if the target file exists.

-Siva


On 03/26/09 11:55, Ben wrote:
Hello,

First let me say sorry if this is the incorrect forum for this question.  I've 
recently built a solaris package of gcc 4.3.3.  It appears as though it cannot 
read the libraries linked under the /usr/openwin/lib directory (I'm assuming 
these were built with either a older version of gcc or sun studio).  I'm 
attempting to compile QT 4.5.0 w/ opengl support using the gcc 4.3.3 pckage I 
built however I am running into the following error when running configure:

OpenGL auto-detection... ()
g++ -c -O2 -Wall -W  -I../../../mkspecs/solaris-g++ -I. -I/usr/X11/include 
-I/usr/X11/include -I. -I/usr/sfw/include -o opengl.o opengl.cpp
g++  -o opengl opengl.o    -L/usr/sfw/lib -L/usr/openwin/lib -L/usr/openwin/lib 
-lGL -lGLU -lXext -lX11 -lresolv -lsocket -lnsl
/usr/openwin/lib/libGLU.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [opengl] Error 1


I've set the vendor property of the ogl-select service to mesa (it was left 
empty by default) to attempt to switch to a different opengl implementation 
then the standard sun one, however that made no difference.  I've also 
attempted to build mesa using my gcc package however there is a problem in QT 
where it isn't taking the path to the opengl package to link against.

Anyway the reason I'm posting this here and not to a qt mailing list is that 
I'd like to know a way to switch the system to using my version of opengl?  Do 
I have to replace all the files under /usr/openwin/lib with my own binaries?  
Or is there some easy way to switch gl installations?  Also if anyone has any 
idea as to why gcc 4.3.3 is saying the GLU lib is an unrecognized file format 
please let me know.  Below are some details on my system:

opensolaris x86 0906 build 109 from genunix

i...@decepticon:~$ gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.3.3/configure --prefix=/usr/local --with-gnu-as 
--with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld 
--enable-languages=c,c++
Thread model: posix
gcc version 4.3.3 (GCC)

i...@decepticon:~$ ld -v
GNU ld (GNU Binutils) 2.19


Thanks in advance and any ideas would be appreciated.
Ben
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to