Re: [osg-users] #include on MSVC results in errors

2017-07-11 Thread Bruno Oliveira
This is how I add the include folders of OSG on CMake

include_directories ( ${OPENSCENEGRAPH_INCLUDE_DIRS} )

is this correct?


2017-07-11 12:51 GMT+01:00 Bruno Oliveira :

> I agree. However, somehow, using CMake, the include/osgDB folder got
> appended to the include path This did not happen previously
>
> 2017-07-11 12:13 GMT+01:00 Voerman, L. :
>
>> Hi Bruno,
>> it's very uncommon to have subfolder of osg\include in your include path,
>> like include\osgText.
>> The normal configuration has something like E:\dev\OpenSceneGraph\include
>> in the project include path, and requests the use of the osgText\String
>> with:
>> #include 
>>
>> this way there will be no confusion with the system string haeder files.
>> Regards, Laurens.
>>
>> On Tue, Jul 11, 2017 at 12:57 PM, Bruno Oliveira <
>> bruno.manata.olive...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Windows is not case sentitive, hence, on MSVC 2015,
>>>
>>> #include 
>>>
>>> is the same as
>>>
>>> #include 
>>>
>>> For this reason, I am including  to get std::string definitions,
>>> but MSVC is include  from OSG.
>>>
>>> Is there a way to fix this? I'm sure this has happened to more people.
>>>
>>> ___
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opens
>>> cenegraph.org
>>>
>>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] #include on MSVC results in errors

2017-07-11 Thread Bruno Oliveira
I agree. However, somehow, using CMake, the include/osgDB folder got
appended to the include path This did not happen previously

2017-07-11 12:13 GMT+01:00 Voerman, L. :

> Hi Bruno,
> it's very uncommon to have subfolder of osg\include in your include path,
> like include\osgText.
> The normal configuration has something like E:\dev\OpenSceneGraph\include
> in the project include path, and requests the use of the osgText\String
> with:
> #include 
>
> this way there will be no confusion with the system string haeder files.
> Regards, Laurens.
>
> On Tue, Jul 11, 2017 at 12:57 PM, Bruno Oliveira <
> bruno.manata.olive...@gmail.com> wrote:
>
>> Hello,
>>
>> Windows is not case sentitive, hence, on MSVC 2015,
>>
>> #include 
>>
>> is the same as
>>
>> #include 
>>
>> For this reason, I am including  to get std::string definitions,
>> but MSVC is include  from OSG.
>>
>> Is there a way to fix this? I'm sure this has happened to more people.
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] #include on MSVC results in errors

2017-07-11 Thread Voerman, L.
Hi Bruno,
it's very uncommon to have subfolder of osg\include in your include path,
like include\osgText.
The normal configuration has something like E:\dev\OpenSceneGraph\include
in the project include path, and requests the use of the osgText\String
with:
#include 

this way there will be no confusion with the system string haeder files.
Regards, Laurens.

On Tue, Jul 11, 2017 at 12:57 PM, Bruno Oliveira <
bruno.manata.olive...@gmail.com> wrote:

> Hello,
>
> Windows is not case sentitive, hence, on MSVC 2015,
>
> #include 
>
> is the same as
>
> #include 
>
> For this reason, I am including  to get std::string definitions,
> but MSVC is include  from OSG.
>
> Is there a way to fix this? I'm sure this has happened to more people.
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] #include on MSVC results in errors

2017-07-11 Thread Bruno Oliveira
Hello,

Windows is not case sentitive, hence, on MSVC 2015,

#include 

is the same as

#include 

For this reason, I am including  to get std::string definitions,
but MSVC is include  from OSG.

Is there a way to fix this? I'm sure this has happened to more people.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Error with InputStream reading osgb files

2017-07-11 Thread Riccardo Corsi
Hi Robert,

I've eventually tested the submission on my project and everything works as
expected.
Big files are now written and read correctly.
Thank you,
Riccardo.

On Mon, Jun 19, 2017 at 6:44 PM, Riccardo Corsi 
wrote:

> Hi Robert,
>
> this week I'm out of office, I'll give it a test as soon as I come back.
> Cheers,
> Riccardo
>
> On Jun 19, 2017 6:03 PM, "Robert Osfield" 
> wrote:
>
>> HI Riccardo,
>>
>> On 14 June 2017 at 19:32, Robert Osfield 
>> wrote:
>> > Thanks Riccardo.  I'm just heading offline for the evening so will
>> > have a look tomorrow.
>>
>> I finally got the chance to do a review and merge your PR.  I made a
>> couple of further commits, first changing the long long to uint64,
>> then added an if (version) check to the writing to mirror what you
>> added to the reading, to leave the door open to eventually allowing us
>> to write files that are compatible with older OSG versions, finally I
>> bumped the version number up to 149 to enable the feature.  All these
>> changes are now checked into git master.
>>
>> I have tested by writing a .osgb file prior to bumping the version
>> number, then the same model after bumping the version number.  Both
>> versions load just fine with the recent file just a little larger
>> indicating the 64bit sizes are being written and read correctly :-)
>>
>> Could you test things out to confirm everything works at your end.
>>
>> Cheers,
>> Robert.
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org