Hi -

I am trying to cross compile OpenSG. I am developing on an x86_64 system and am building OpenSG for i686. 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 configure OpenSG using the following

PATH=/path/to/cross-compiler/bin:$PATH  \
./configure --prefix=/sw/i686 --build=x86_64-unknown-linux --host=i686-linux

[ Configure script does not recognize that I am using a cross-compiler. According to the documentation in the script, it seems that the test is to compile a simple program and see if it can be run. The test actually succeeds in my case, as 32 bit executables can run on my system, so the script concludes it is not using a cross compiler. ]

Next I build with

PATH=/path/to/cross-compiler/bin:$PATH \
make opt


The build fails with the following types of messages:

/home/dan/src/OpenSG/Source/Base/Base/OSGVector.cpp:0: sorry, unimplemented: 64-bit mode not compiled in


This message comes from the compiler switch "-m64" being used, but the cross-compiler doesn't like it because it has no 64 bit capabilities.


One other thing - configure creates folders under Builds/x86_64-unknown-linux-gnu-g++, which is the same as when I normally build OpenSG. I'd like it if the build dirs can coexist, and I'll bet they can, but I'm not doing something right.

Has anyone else cross-compiled OpenSG in this way? Do you see what I've done wrong?

Dan


-------------------------------------------------------
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