-
Notifications
You must be signed in to change notification settings - Fork 154
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
Error compiling on ubuntu 20.04 #67
Comments
Thank you for reporting this @wziard! Concidentally I'm currently working on integration with Android NDK I have actually ran into this issue as well. My understanding is that this may not be due to the lower version on CMAKE, but instead if may be due to using a lower version of the Vulkan API - the Android NDK is using Vulkan 1.1 instead of 1.2. This is not for certain, so I want to dive into this further. The reason why I want to find exactly what the issue is, mainly to make sure we can have a MACRO guard based on the respective config. The reason why I suspect it may be the Vulkan version is because, interestingly enough disjoint to this, I had opened a question on the VulkanHPP repo to get further understanding of why this particular function actually has different API KhronosGroup/Vulkan-Hpp#706 If you want to add a quick-fix for now, you can basically change this:
Into this:
This was taken from my diff, hence why the If you try this, it would be great to get further insights on the points above, such as your version of Vulkan SDK, whether tests run successfully, etc. Thank you, looking forward to hear your thoughts. |
Updated comment above as I forgot to add the assignment of the variable |
Ik think it's vulkan 1.2 on ubuntu 20.04. The deb package version is is 1.2.131.2-1 , but I'm not really sure how to see which version of the spec it is by looking at the headers themselves. Edit: btw, why didn't you just post the diff? Much easier to apply than copy pasting the code and removing all the + signs :-) |
@wziard that's great! Thank you for trying it and confirming it worked. The android branch now contains the fix as well, I'll be doing some testing and will be adding this with a macro guard to ensure it can be enabled/disabled with compiler flags. |
Fixed via eae63a3 - now you can compile with the flag -DKOMPUTE_CREATE_PIPELINE_RESULT_VALUE to force the return of ResultValue instead of Result. |
I tried compiling Kompute on ubuntu 20.04.
At first cmake failed with:
CMake 3.17.0 or higher is required. You are running version 3.16.3
I looked through CMakeLists.txt, but saw nothing which wouldn't work in cmake 3.16 (but I'm no cmake expert), so I just changed
'cmake_minimum_required(VERSION 3.17.0)'
to
'cmake_minimum_required(VERSION 3.16.0)'
Then cmake seemed to run ok.
However, when running make I get the following compiling error:
This is using gcc 9.3.0.
The text was updated successfully, but these errors were encountered: