Hi Anders,

Does the below trick require modifications to your code or the OSG?
It would be good to get things to compile without these trick and get
changes checked into svn/trunk and the OSG-3.2 branch so that when I
tag 3.2.1 it'll build fine out of the box.

Robert.


On 6 August 2013 07:58, Anders Backman <[email protected]> wrote:
> Quick update.
>
> By doing the following:
>
> #include <GL/glew.h>
> // To fix the incompatible stuff between glew and osg 3.2.0
> #undef GL_ARB_gpu_shader_fp64
> #include <osg/gl2Extensions>
>
> The problem with
>
> include\osg\uniform(454): error C2065: 'GL_DOUBLE_MAT2x3' : undeclared
> identifier
> include\osg\uniform(455): error C2065: 'GL_DOUBLE_MAT2x4' : undeclared
> identifier
> include\osg\uniform(456): error C2065: 'GL_DOUBLE_MAT3x2' : undeclared
> identifier
> include\osg\uniform(457): error C2065: 'GL_DOUBLE_MAT3x4' : undeclared
> identifier
> include\osg\uniform(458): error C2065: 'GL_DOUBLE_MAT4x2' : undeclared
> identifier
> include\osg\uniform(459): error C2065: 'GL_DOUBLE_MAT4x3' : undeclared
> identifier
>
>
> is resolved.
>
>
>
> On Thu, May 2, 2013 at 11:52 AM, Markus Hein <[email protected]> wrote:
>>
>> Hello All,
>>
>>
>> Den 27.04.2013 10:18, skrev Sebastian Messerschmidt:
>>
>> Hello Anders,
>>
>>
>> Hi all.
>>
>> I wanted to start using the latest dev build (3.1.5) with VisualStudio
>> 2012. 64Bit.
>>
>> However, I immediately got a few problems:
>>
>> #1.WARNING: The warning: fstream(41): warning C4250: 'osgDB::fstream' :
>> inherits
>> 'std::basic_ostream<_Elem,_Traits>::std::basic_ostream<_Elem,_Traits>::_Add_vtordisp2'
>> via dominance
>>
>> From the class class OSGDB_EXPORT fstream : public std::fstream
>>
>> Is still very much present and give a lot of warnings all over the place.
>>
>> The first warning has been discussed more than once.
>> If you get linker errors somewhere later on, the only workaround I know of
>> is to set the linker to /FORCE: MULTIPLE
>>
>>
>>
>> I tried /FORCE: MULTIPLE  , but it couln't solve the  linker errors I got,
>> using VS2012 Update2 (v11_xp platform toolset). I was unable to build my app
>> and I was searching for the reason:
>>
>> std::ofstream is used directly somewhere in my app-code, the kode was
>> including <osgDB/FileUtils>. It compiled, but it didn't link the libs.
>>
>> I have changed the code using #include <fstream> instead , and
>> outcommented  "#include <osgDB/FileUtils>" , now everything was linking
>> again and I got my app built this way.
>>
>>
>> Before using Visual Studio 2012, there was  a lot of compiler warnings
>> regarding some ofstream issues, but I could build my stuff . In Visual
>> Studio 2012 (Update II, v110_xp) something has changed.
>>
>>
>> regards, Markus
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
>
> --
> __________________________________________
> Anders Backman, HPC2N
> 90187 UmeƄ University, Sweden
> [email protected] http://www.hpc2n.umu.se
> Cell: +46-70-392 64 67
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to