thunder-engine / thunder

Thunder Engine – Cross-platform 2D and 3D game engine with modular architecture
https://thunderengine.org/
Apache License 2.0
524 stars 34 forks source link

Fixes: CMake + QBS improvements #769

Closed bedwardly-down closed 3 months ago

bedwardly-down commented 3 months ago

Most of these were minor fixes. Since most of the code in the uikit module used #include "resources/stylesheet.h" syntax, I converted uiloader.h to the same but can revert if requested. My port fully builds now and I'm testing it out. Found one issue so far, but I'll need to test further before pushing a fix.

bedwardly-down commented 3 months ago

Heading to work. Later tonight, I plan to add to this. Clang, FreeBSD’s main compiler ignored certain linking errors altogether that I found building with GCC. I found some tweaks that needed to be made based on the GLFW upgrade but didn’t have time to fully test.

bedwardly-down commented 3 months ago

Right now, the main issue I'm running into at the moment: it's ignoring the Assimp::StackAllocator with CMake and I'm not 100% sure why. Assimp is linking, it's just that one reference that's not.

I'm guessing it's because of -fPIC (which has to do with the memory address allocation) but that's required due to at least one of the dependencies needing it to build (which means all of them need it for the platform). If none of them needed it, I wouldn't have used it.

bedwardly-down commented 3 months ago

Temporarily building against the system version of assimp gets around that build issue for right now but that port doesn't say what all formats it supports so it may not be viable for your engine without the dev rebuilding it anyway. I'm tackling the other build issues first and then will go back to that.

bedwardly-down commented 3 months ago

I need sleep, but that should fix the build issue for right now.