[osg-submissions] OSG 2.1.5 fixes for MINGW

Robert Osfield robert.osfield at gmail.com
Sun Aug 19 12:26:33 PDT 2007


Hi Antoine,

On 8/19/07, Robert Osfield <robert.osfield at gmail.com> wrote:
> > - 2- osgPlugins/txp compiling
> > TXP plugin is not compiling (nor on OSG 2.0.0). The issue is coming from
> > a missing "-I." argument to gcc. I do not get it why is works under Linux.
> > Anyway, root issue is that includes are not correctly written: all use
> > <> includes even for local files. I have fixed this since I could not
> > fix the compiler command (thanks sed) : attached but untested (only
> > compiling and linking).
>
> I think the right way to solve this one is to add the include of the
> local directory into the build rather than change the <> to "".  The
> code you've changed is provided by Terrex and the next code drop they
> provide will have the <> in it and therefore break the build once
> more.  This should just require a tweak of the txp/CMakeLists.txt
> file.

I've done so investigating, looking into adding the txp directory into
the include paths, and by enabling the verbose makefile output I got
the following output:

[106%] Building CXX object
src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/TileMapper.o
/usr/bin/c++   -Dosgdb_txp_EXPORTS   -g -fPIC
-I/home/robert/OpenSceneGraph/include
-I/home/robert/OpenSceneGraph/src/osgPlugins/txp/.   -o
src/osgPlugins/txp/CMakeFiles/osgdb_txp.dir/TileMapper.o -c
/home/robert/OpenSceneGraph/src/osgPlugins/txp/TileMapper.cpp


Note the -I/home/robert/OpenSceneGraph/src/osgPlugins/txp/. entry
which probably goes a long way to explaining why Linux compiles just
fine.  To enable the verbose makefile output  run ccmake . in the root
OpenSceneGraph directory and then press 't' to toggle on the advanced
options, then scroll down to the CMAKE_VERBOSE_MAKEFILE entry and
toggle this from OFF to ON.  Then press 'c' then 'g' to configure and
generate the fine makefiles.

This should give you some direction on what might be up.

Robert.


More information about the osg-submissions mailing list