Skip to content
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

Bug: compilation error. #5827

Closed
Ornito opened this issue Oct 16, 2024 · 3 comments · Fixed by #5916
Closed

Bug: compilation error. #5827

Ornito opened this issue Oct 16, 2024 · 3 comments · Fixed by #5916
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics

Comments

@Ornito
Copy link

Ornito commented Oct 16, 2024

Hi!
I'm trying to compile assimp on windows 10 with mingw10 32 bits but I get this compilation error.

C:\Users\Laurent et Christian\assimp-assimp-8b9ed34\code\Common\DefaultIOStream.cpp:160:24: error: aggregate 'Assimp::DefaultIOStream::FileSize() const::_stat32 fileStat' has incomplete type and cannot be defined
160 | struct _stat32 fileStat;
| ^~~~~~~~
C:\Users\Laurent et Christian\assimp-assimp-8b9ed34\code\Common\DefaultIOStream.cpp:162:19: error: '_fstat32' was not declared in this scope; did you mean '_stat32'?
162 | int err = _fstat32(_fileno(mFile), &fileStat);
| ^~~~~~~~
| _stat32

@Ornito Ornito added the Bug Global flag to mark a deviation from expected behaviour label Oct 16, 2024
@Ornito
Copy link
Author

Ornito commented Oct 18, 2024

I had to replace _stat32 by _stat and _fstat32 now it compile.

@kimkulling kimkulling added the Build Global flag to mark build relates topics label Nov 8, 2024
@tellypresence
Copy link
Contributor

Good to hear it's working for you, is it OK to close this issue?

@kimkulling
Copy link
Member

kimkulling commented Dec 10, 2024

This will fix the build issue, but opens a new one. FStat needs the file handle,

kimkulling added a commit that referenced this issue Dec 10, 2024
SirLynix added a commit to SirLynix/xmake-repo that referenced this issue Jan 1, 2025
waruqi pushed a commit to xmake-io/xmake-repo that referenced this issue Jan 2, 2025
* Assimp: Fix compilation with MinGW10

assimp/assimp#5827

* Fix patch version

* Fix checksum

* Another patch fix

* Update xmake.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants