[osg-submissions] OSG 2.1.5 fixes for MINGW

Antoine Hue tonio_73 at tiscali.fr
Sun Aug 19 13:46:17 PDT 2007


Robert Osfield wrote:
> 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
>   
Hello Robert,

Actually, to get verbose mode the simplest way to go with make is:
make VERBOSE=1

I have seen the -I.../src/osgPlugins/txp/. at some point while 
debugging. I need to restart the debug from original files. Still I 
think MINGW (Msys) compiler does not process includes the same way as 
Linux's gcc, I will also compare gcc versions.

Antoine


More information about the osg-submissions mailing list