Hi Marcus,
On Mon, 21 May 2007, Marcus Lindblom wrote:
> Akos Balazs wrote:
>> Hi all,
>>
>> we would like to build a couple cross-platform OpenSG apps on Windows, and
>> for this we'd like to use the 1.8 dailybuild. So far it worked well by
>> just modifying the included .dsp file for the 01hello tutorial. However,
>> as using VS (in our case VS2005) directly for project (solution :)
>> management is kinda contraproductive for cross-platform development, we'd
>> like to use cmake for building our apps. The questions are therefore:
>>
>> a) is it enough to just add all the relevant properties from the project
>> settings into the cmakefile (e.g. compiler/linker switches, include dirs,
>> etc.) or is there some hidden magic? :) The problem here of course, is it
>> may change between different OpenSG versions and it may have to be redone
>> (manually) every time. How is it handled for the .dsp file generation? We
>> couldn't find any scripts in the source distribution that would generate
>> the .dsp files, did we miss something? Any recommendations for doing it
>> automatically instead of copying all values manually?
> The most supported method to build OpenSG is scons. The VS proj files
> aren't always updated (only with major release points), so the best way
> would probably be to launch opensg's scons from cmake, which ought to be
> quite simple, no? (scons is included in OpenSG's svn-tree so you need
> not worry about a separate installation).
I think you misunderstood the mail a bit, we don't want to build OpenSG
itself via cmake (the binary dailybuild or even building with scons is
just fine by us) but applications that use OpenSG. AFAICS the recommended
way of building Windows apps that use OpenSG currently is taking the
workspace files of one of the tutorials and removing the tutorial sources
and adding your own. This is, err, somewhat suboptimal, especially if you
want to build your app on different platforms -- that's why we thought
cmake could be used here.
And BTW, while the OpenSG source distrib does include scons, it relies on
python in turn which is no problem under Linux, but usually you don't have
python installed on most Windows boxes. But it's not that big of a
problem. :)
> Also, I don't know if scons supports cross-compiling, at all or as well
> as cmake. (We might only need some configuration in OpenSG's
> scons-scripts to support it.)
We don't want to cross-compile, we just want to build on different
platforms from a common source tree (and preferably with one buildsystem,
which would be cmake. :)
Thanks,
Akos
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users