Hi Daniel,

On Thu, 2006-04-06 at 10:47 -0700, Daniel Sperka wrote:
> Hi -
> 
> I am trying to cross compile OpenSG. I am developing on an x86_64 system 
> and am building OpenSG for i686. 

Sounds familiar. ;)

> I have an x86_64 cross i686 compiler 
> and binutils, as well as C libs etc. [ Note: I'm missing lex or bison 
> for the 32-bit system; I'll create that asap]. I have built simple 
> programs and tested them on the host platform, and all seems well.

I'm not sure why you need a cross-compiler, the x86_64 compiler can
create i686 binaries as well. I have a dailybuild that does it, see
http://www.opensg.org/dailybuild_logs/opensg_dailybuild.060405.x86_64-
unknown-linux-gnu.g++32.rhel4.Main.html.gz for an example.

> I configure OpenSG using the following
> 
> PATH=/path/to/cross-compiler/bin:$PATH  \
> ./configure --prefix=/sw/i686 --build=x86_64-unknown-linux --host=i686-linux
...
> Has anyone else cross-compiled OpenSG in this way? Do you see what I've 
> done wrong?

Our configure is not following the autoconf conventions very well, so
the 'normal' way of cross-compiling doesn't work with OpenSG (long
story...). 

The way to make OpenSG support a new compiler is to add a new
common.*.in and conf.*.in to CommonConf. Sometimes (although rarely
these days) it is necessary to adjust some setting in OSGConfig.h.

So for your cross-compiling just configure with --compiler=g++32 and
without --build and --host and it should work just fine. 

Hope it helps

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to