Hi Raynaud,

On Fri, 8 Sep 2006 [EMAIL PROTECTED] wrote:

> Hello,
>
> I have downloaded OpenSG 1.6 sources and install it on a RedHat EL 3.
> The installation seems to be ok (I use a X86_64 arch and ./configure
> --prefix=/opt/opensg
> --enable-png --enable-jpeg --enable-tiff).
> After "make" and "make install", I have these libraries:
> libOSGBase.so  libOSGSystem.so  libOSGWindowGLUT.so  libOSGWindowX.so
> and also an include directory and a bin directory with osg-config file.
>
> I have also written this in my .bashrc:
> export LD_LIBRARY_PATH=/opt/opensg/lib/{opt/dbg}:$LD_LIBRARY_PATH
>
> Now, I have tried to make tutorials and I have this error:
> /*********************************************************/
> "g++" -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_PNG
> -D_OSG_HAVE_CONFIGURED_H_ -DQT_NO_XINERAMA -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE
> -DQT_NO_XKB -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG
> -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE
> -DQT_NO_STYLE_COMPACT -m64
> -ansi -use_readonly_const -ftemplate-depth-100 -fPIC -g -DOSG_DEBUG
> -DOSG_WITH_GLUT
> -DOSG_WITH_PNG -I/opt/opensg/include 01hello.cpp  -g -L/opt/opensg/lib/dbg
> -lOSGWindowGLUT -lOSGSystem -lOSGBase -lpng -lz -lglut -lGLU -lGL
> -lXmu -lXi -lXt -lX11
> -lpthread -ldl -lm -L/usr/X11R6/lib64 -o 01hello
> /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/../../../../lib64/libGL.so:
> file not
> recognized:File format not recognized
> collect2: ld returned 1 exit status
> make: *** [01hello] Erreur 1
> /*********************************************************/
>
> /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/../../../../lib64/libGL.so
> corresponds to the usr/lib64 directory.
>
> A ll in this directory (on libGL*) gives me :
>
> libGLcore.so.1 -> libGLcore.so.1.0.8774
> libGLcore.so.1.0.8774
> libGL.la
> libGL.so -> libGL.so.1
> libGL.so.1 -> libGL.so.1.0.8774
> libGL.so.1.0.8774
> libGLU.so -> ../../usr/X11R6/lib64/libGLU.so.1.3
> libGLU.so.1 -> ../../usr/X11R6/lib64/libGLU.so.1.3

This really sounds like a 32/64 bit mixup to me. Can you do a

$ file /opt/opensg/lib/{opt/dbg}/*

and a

$ file /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/../../../../lib64/libGL.so
/
and paste the results?

> glxinfo is ok. (I have installed the last Nvidia drivers on my computer)

are you sure glxinfo is actually using the Nvidia drivers? That is, does 
it return something like:

$ glxinfo |grep NVID
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation
OpenGL version string: 2.0.0 NVIDIA 76.67

If so, can you do a

$  ldd `which glxinfo`

and check that the libGL.so line points to the same libGL.so that your 
OpenSG program is linked against?

HTH,
        Akos


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to