Hi again,

I'd decided to do a 64-bit build of OpenSG and discovered that the 
"libOSGBase.so", "libOSGSystem.so", "libOSGWindowX.so" libs were bulit 
alright...but "libOSGWindowGLUT.so" was not built.
So how do I get it to be built?


Thanks.

________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Gerrit Voss [EMAIL 
PROTECTED]
Sent: Thursday, August 07, 2008 4:49 PM
To: [email protected]
Subject: Re: [Opensg-users] HELP - makefile for tutorial        samples doesn't 
work!

Hi,

On Thu, 2008-08-07 at 16:37 +0800, Gerrit Voss wrote:
> Hi,
>
> On Thu, 2008-08-07 at 16:14 +0800, Eng Yuit Fun, Melvin wrote:
> > Hi,
> >
> > I deleted the executables and that seemed to move things forward a bit.
> > However I now get the following message:
> > "/usr/bin/ld: skipping incompatible 
> > /home/engyf/Desktop/OpenSG-1.8.0-redhat4-opt//lib/opt/libOSGWindowGLUT.so 
> > when searching for -lOSGWindowGLUT
> > /usr/bin/ld: cannot find -lOSGWindowGLUT"
> > I'm now wondering where the lib files for linking are? (the "lib" folder 
> > only contains the runtime shared object files)
>
> looks like you are running a x86_64 linux but the OpenSG version you
> downloaded is 32bit. IIRC the makefile only does native builds so
> you try to link your 64bit executable against 32bit libs, that is the
> 'skipping incompatible' part.
>
> Let me check how to convince the makefile to build 32bit exectuables.

if you look at Tutorials/Makefile the last two lines:

%$(EXEEXT): %.cpp
        $(CC) $(CCFLAGS) $< $(LDFLAGS) $(LDOUT)$@

can you change the last line to

        $(CC) -m32 $(CCFLAGS) $< $(LDFLAGS) $(LDOUT)$@

This should build the tutorials 32bit.

But you might run into problems if not all of the system libs (like
libtiff or libjpeg) have their 32bit development packages installed.

In this case the easiest solutions (besides installing the 32bit dev
packages) is, go to the lib/opt dir of OpenSG and add some links, like
the following for libtiff:

ln -s /usr/lib/libtiff.so.3.6 libtiff.so


kind regards,
  gerrit




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

IHPC has moved to Fusionopolis with effect from 21st July 2008. There is no 
change to our email or telephone numbers.
Our new address is :

Institute of High Performance Computing,
1 Fusionopolis Way, #16-16 Connexis,
Singapore 138632

This email is confidential and may be privileged. If you are not the intended 
recipient, please delete it and notify us immediately. Please do not copy or 
use it for any purpose, or disclose its contents to any other person. Thank you.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to