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

mismatched header files and libs causes seg fault #376

Open
shi-yan opened this issue Dec 11, 2023 · 2 comments
Open

mismatched header files and libs causes seg fault #376

shi-yan opened this issue Dec 11, 2023 · 2 comments

Comments

@shi-yan
Copy link

shi-yan commented Dec 11, 2023

This project has a strange setup.

it ships with assimp headers, but expect to use the prebuilt assimp binaries installed by the system. This will result in mismatched version of headers and libs.

with the latest assimp 5 installed via brew on mac, I experienced a crash. My fix was removing the included assimp headers and only use the system install.

@shi-yan shi-yan changed the title mismatching header files and libs causes seg fault mismatched header files and libs causes seg fault Dec 11, 2023
@JoeyDeVries
Copy link
Owner

Yeah, it's a bit of a weird situation. Pre-built binaries are supplied for windows users, but not for OS X and Linux users as they're it's preinstalled. Then for windows users it should include the headers as well, but then causes a mismatch on OSX/Linux. A PR was set up that fixes this on OSX/Linux, but breaks on Windows: #374

Maybe it's possible to set up CMake s.t. it won't use the shipped headers in case of OSX/Linux, but does support them on Windows, then it could work?

@shi-yan
Copy link
Author

shi-yan commented Dec 13, 2023

I think that works, or using cmake's external project to build everything from source?

https://cmake.org/cmake/help/latest/module/ExternalProject.html

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

No branches or pull requests

2 participants