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

fix #333 model load error #374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

simpzan
Copy link

@simpzan simpzan commented Nov 18, 2023

use assimp headers in the system instead of the ones in the repo, because the ones in the repo may not compatible with the assimp shared library in the system.

@JoeyDeVries
Copy link
Owner

I'm a bit hesitant on accepting this one, as I'm not sure what it'll do on Linux/Windows builds. Can you be certain this'll work multi-platform, or do we need a bit of extra testing?

@simpzan
Copy link
Author

simpzan commented Nov 19, 2023

I just tested this patch on ubuntu 20.04, it can't fix the error. I need to remove includes/assimp/ to fix the issue.
I don't have windows machine to test how to fix the issue on windows.

@simpzan
Copy link
Author

simpzan commented Nov 19, 2023

@JoeyDeVries any reason to include assimp header in the repo? can I remove them?

@JoeyDeVries
Copy link
Owner

If I remember why it's set up that way is that, compared to linux/macos, Windows doesn't have an 'install to system library' version of Assimp so it involves downloading either pre-built lib/dlls (with include files), or built yourself fully from code alone. This isn't always great for new readers starting out. In addition to that there's also chance of code breaking because the latest Assimp version updated to different header definitions or code; the code is quite old (5+ years).

I did try to build on a Windows machine just now with your changes and it indeed errored at CMake cause it couldn't find any Assimp lib/include on Windows without the folder:

CMake Error at cmake/modules/FindASSIMP.cmake:30 (MESSAGE):
  Could not find libASSIMP
Call Stack (most recent call first):
  CMakeLists.txt:27 (find_package)

Unless you find a way to fix this problem I can't merge it unfortunately.

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 this pull request may close these issues.

2 participants