-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fails to compile on Windows 32 bit #1
Comments
I figured out what is going on here, so basically it was my fault because I use Clion and used the CMake Ninja Generator. Now I'm not sure if this should be fixed, but if it could look like this
Or throw an CMake error that Win32 is not supported? |
I don’t understand why CLion does thst and it trips me up all the time I think the intent is indeed to not support 32 bit windows. There’s other ways I think to get to 32 bit so I use a size of void check using the cmake_sizeof_voidp variable but we should see which frank prefers |
It looks like it is more a problem of Ninja. I just switched to native Visual Studio Generator, which has x64 as default platform set. Clion supports also Visual Studio projects and doesn't requiere Ninja for this, so it works. I would say that you probalby just check if target platform is not Win x64 and exit CMake with error. |
Thanks for the report. I only tested x64 builds. I see no reason to exclude 32 bit builds, as long as it doesn't make things too complicated. But what is the best way? I would prefer a positive test like
or
I am not sure which will work best? |
I know that this doesn't really belong here, but as the repo free-audio/clap-saw-demo-imgui has no issue tracker setup, I just wanted also to mention here, that you have an issue there for the Linux build at the https://github.com/free-audio/clap-saw-demo-imgui/blob/96da3ab3ed9bc9cc26eecae691db8104bd2d2f79/CMakeLists.txt#L75. The line |
Error is
To compile this on Windows with Visual Studio you have to add the definition
ImTextureID=ImU64
.The text was updated successfully, but these errors were encountered: