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

assimp: fail to compile in personal project #305

Closed
RaanGi opened this issue Jan 29, 2024 · 0 comments · Fixed by #318
Closed

assimp: fail to compile in personal project #305

RaanGi opened this issue Jan 29, 2024 · 0 comments · Fixed by #318

Comments

@RaanGi
Copy link

RaanGi commented Jan 29, 2024

I have a project to test VitaGL and I use assimp to load the 3D meshes. With the update to assimp v5.3.1 the compilation breaks. It sais the there undefined reference to fseeko64, ftello64 and fseeko64. This is because in the new code there is no #else clause for the rest of cases in file ioapi.h.

I have been able to fix it with the next patch:

diff --git a/contrib/unzip/ioapi.h b/contrib/unzip/ioapi.h
index ae9ca7e83..50978316d 100644
--- a/contrib/unzip/ioapi.h
+++ b/contrib/unzip/ioapi.h
@@ -50,7 +50,7 @@
 #define ftello64 ftell
 #define fseeko64 fseek
 #else
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__vita__)
 #define fopen64 fopen
 #define ftello64 ftello
 #define fseeko64 fseeko

I have used the above solution because is simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant