-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make under Windows fails #997
Comments
Could you try the OSG-3.6 branch to see if fixes applied to it since 3.6.5
fix the issue.
…On Sat, 14 Nov 2020 at 13:58, McLP ***@***.***> wrote:
Hey there!
I just tried to compile the 3.6.5 release commit without success.
After I ran cmake -G "MinGW Makefiles" ., mingw32-make fails at
FileUtils.cpp with the following error:
...\OpenSceneGraph\src\osgDB\FileUtils.cpp: In function 'bool osgDB::makeDirectory(const string&)':
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:161:19: error: aggregate 'osgDB::makeDirectory(const string&)::stat64 stbuf' has incomplete type and cannot be defined
161 | struct stat64 stbuf;
| ^~~~~
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:165:38: error: invalid use of incomplete type 'struct osgDB::makeDirectory(const string&)::stat64'
165 | if( stat64( path.c_str(), &stbuf ) == 0 )
| ^
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:161:12: note: forward declaration of 'struct osgDB::makeDirectory(const string&)::stat64'
161 | struct stat64 stbuf;
| ^~~~~~
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:186:41: error: invalid use of incomplete type 'struct osgDB::makeDirectory(const string&)::stat64'
186 | if( stat64( dir.c_str(), &stbuf ) < 0 )
| ^
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:161:12: note: forward declaration of 'struct osgDB::makeDirectory(const string&)::stat64'
161 | struct stat64 stbuf;
| ^~~~~~
...\OpenSceneGraph\src\osgDB\FileUtils.cpp: In function 'osgDB::FileType osgDB::fileType(const string&)':
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:311:19: error: aggregate 'osgDB::fileType(const string&)::stat64 fileStat' has incomplete type and cannot be defined
311 | struct stat64 fileStat;
| ^~~~~~~~
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:315:44: error: invalid use of incomplete type 'struct osgDB::fileType(const string&)::stat64'
315 | if ( stat64(filename.c_str(), &fileStat) != 0 )
| ^
...\OpenSceneGraph\src\osgDB\FileUtils.cpp:311:12: note: forward declaration of 'struct osgDB::fileType(const string&)::stat64'
311 | struct stat64 fileStat;
| ^~~~~~
This seems to be a relatively old issue, as I found the same error in a Mail
thread from 2004 <https://marc.info/?l=mingw-users&m=109680871711163> but
as I am relatively new to C++, I am not sure how to apply their solution
(as it does not seem appropreate having to change the source code, just to
use make instead of visual studio) or if even a fix inside some
configuration might be possible.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#997>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKEGUD7F6PDYLXLGJT5NULSP2EJNANCNFSM4TVR3WIA>
.
|
Tried |
Mingw-w64 has _stat64 structure and function is called |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there!
I just tried to compile the 3.6.5 release commit without success.
After I ran
cmake -G "MinGW Makefiles" .
,mingw32-make
fails at FileUtils.cpp with the following error:This seems to be a relatively old issue, as I found the same error in a Mail thread from 2004 but as I am relatively new to C++, I am not sure how to apply their solution (as it does not seem appropreate having to change the source code, just to use make instead of visual studio) or if even a fix inside some configuration might be possible.
The text was updated successfully, but these errors were encountered: