CMake Arm build errors #501
-
Hi! I'm following the guide for building StereoKit with CMake: https://github.com/StereoKit/SKTemplate-CMake#command-line-instructions. I've been able to build for x64 and arm64, but arm is giving me two unresolved symbols. I modified the commands to be like so:
And my CMakeLists.txt:
The error output:
Is there anything I can do to bypass these errors? It's nice that the GIT_TAG can reference any commit if you know of one that would build successfully. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
You're right, seems pretty specific to ARM! That's bizarre! I added an explicit link to the missing .lib, and it seems to work now. I also bumped into some shader related stuff on /develop, and fixed that as well. Should be available in 8f49c7f. Also, not sure if you're targeting Win32 or UWP, but the binaries are different, and those build instructions are for Win32! A UWP build would look like this:
I think there's still a few things I haven't done related to UWP and the cmake, but I don't think there's any hard blockers? (the test project doesn't get a necessary define, for example) If you are actually going the UWP route and encounter more troubles here, let me know! |
Beta Was this translation helpful? Give feedback.
-
It builds great now, thanks for adding those changes! Also, I am going the UWP route! To expand a bit further on this CMake project, I've been experiencing one blocker today. Is there any way to reference the .vcxproj files from a .vsproj (e.g., a StereoKit UWP app) in the same solution? For example, take the solution generated from the CMake (with reactphysics3d, StereoKitC, openxr, ...). Would you be able to reference this, or just the I've tried:
Program.cs
Native header file
I'm trying to follow in your path with |
Beta Was this translation helpful? Give feedback.
-
Quick semi-related follow up: |
Beta Was this translation helpful? Give feedback.
You're right, seems pretty specific to ARM! That's bizarre!
I added an explicit link to the missing .lib, and it seems to work now. I also bumped into some shader related stuff on /develop, and fixed that as well. Should be available in 8f49c7f.
Also, not sure if you're targeting Win32 or UWP, but the binaries are different, and those build instructions are for Win32! A UWP build would look like this:
I think there's still a few things I haven't done related to UWP and the cmake, but I don't think there's any hard blockers? (the test project doesn't get a neces…