[osg-users] [build] Building with MinGW on Windows 10

Voerman, L. l.voerman at rug.nl
Wed May 22 04:19:22 PDT 2019


You probably need to remove the exlusion of mingw32 on line 39 of
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp
to get stat64 defined as _stati64 on windows.
Try to remove the #if and the #endif line (38 & 40) and see if that
compiles.
Laurens.

#if !defined(__MINGW32__)
    #define stat64 _stati64
#endif

On Wed, May 22, 2019 at 12:36 PM Stefan Waldegger <stefan.waldegger at yahoo.de>
wrote:

> Hi Alberto,
>
> Thank you for your reply, I tried it to get the latest verion from github,
> OpenSceneGraph-master it is called when I download it.
>
> But sadly, there is the same error, in the same file.
>
> osgDB::makeDirectory(const string&)::stat64. Can it be that the MinGW in
> Windows is outdated and doesnt know some conversions like this?
>
> MinGW I downloaded this installer from gitbhub and this took a while but
> installed the MinGW in C:\MinGW
>
> ...
>
>
> Thank you!
>
> Cheers,
> Stefan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=76132#76132
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190522/b52062a1/attachment.html>


More information about the osg-users mailing list