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

Stefan Waldegger stefan.waldegger at yahoo.de
Sat May 18 08:47:34 PDT 2019


Hi, it is me again :)

I did not work with OSG for a while, but today I decided to continue on my project and downloaded the lates OSG 3.6.3. The configuration of the make files worked very well, but then when I write mingw32-make following error occurs at 15%.

Sadly my experience with such things is very limited. I hope somebody can help me here.

[ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/FileUtils.cpp.obj
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp: In function 'bool osgDB::makeDirectory(const string&)':
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:161:19: error: aggregate 'osgDB::makeDirectory(const string&)::stat64 stbuf' has incomplete type and cannot be defined
     struct stat64 stbuf;
                   ^~~~~
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:165:38: error: invalid use of incomplete type 'struct osgDB::makeDirectory(const string&)::stat64'
     if( stat64( path.c_str(), &stbuf ) == 0 )
                                      ^
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:161:12: note: forward declaration of 'struct osgDB::makeDirectory(const string&)::stat64'
     struct stat64 stbuf;
            ^~~~~~
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:186:41: error: invalid use of incomplete type 'struct osgDB::makeDirectory(const string&)::stat64'
         if( stat64( dir.c_str(), &stbuf ) < 0 )
                                         ^
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:161:12: note: forward declaration of 'struct osgDB::makeDirectory(const string&)::stat64'
     struct stat64 stbuf;
            ^~~~~~
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp: In function 'osgDB::FileType osgDB::fileType(const string&)':
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:311:19: error: aggregate 'osgDB::fileType(const string&)::stat64 fileStat' has incomplete type and cannot be defined
     struct stat64 fileStat;
                   ^~~~~~~~
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:315:44: error: invalid use of incomplete type 'struct osgDB::fileType(const string&)::stat64'
     if ( stat64(filename.c_str(), &fileStat) != 0 )
                                            ^
D:\Projects\C++\Libraries\OpenScenegraph\OpenSceneGraph-OpenSceneGraph-3.6.3\src\osgDB\FileUtils.cpp:311:12: note: forward declaration of 'struct osgDB::fileType(const string&)::stat64'
     struct stat64 fileStat;
            ^~~~~~
mingw32-make[3]: *** [src\osgDB\CMakeFiles\osgDB.dir\build.make:343: src/osgDB/CMakeFiles/osgDB.dir/FileUtils.cpp.obj] Error 1
mingw32-make[2]: *** [CMakeFiles\Makefile2:330: src/osgDB/CMakeFiles/osgDB.dir/all] Error 2
mingw32-make[1]: *** [Makefile:129: all] Error 2 

... 


Thank you!

Cheers,
Stefan

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76117#76117







More information about the osg-users mailing list