Hi Martin

The answer has to be in doing a cross compile, by creating two out of source
build directories, one for each platform.  You set up env vars before you
call cmake to enable the different compiles.  Under Linux I tried
successfully to do this, the following thread on osg-build will give you a
bit of background.


http://groups.google.com/group/osg-build/browse_thread/thread/76569d0b42c3161f?hl=en

Setting the CXXFLAGS, CFLAGS, and LDFLAGS is required before running cmake.
The next question is what should these values be for N32 and N64...

The process will be something like (from the directory above where you have
OpenSceneGaph):

  mkdir buildOSG_64
  cd buildOSG_64
  setenv CXXFLAGS=...
  setenv CFLAGS=...
  setenv LDFLAGS=...
  cmake ../OpenSceneGraph
  make
  cd ..



  mkdir buildOSG_32
  cd buildOSG_32
  setenv CXXFLAGS=...
  setenv CFLAGS=...
  setenv LDFLAGS=...
  cmake ../OpenSceneGraph
  make
  cd ..


Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to