Build vulkan-sdk Current version on Slack 15?
by SlackIT from LinuxQuestions.org on (#6GN0M)
Hi,
With the latest release of mpv, it needs a newer version of vulkan-sdk.
So I've been trying to use vulkan-sdk out of -current, trying to compile on 15 with no success.
To begin with I edited over the .SlackBuild, because whoever wrote it, left out 'vulkan' which is now in a lot of the archive names like 'glslang-vulkan-sdk', and the slackbuild seems to only list the name as glslang-sdk.
I also '-DBUILD_LAYER_SUPPORT_FILES=Off' thought it's suppose to be off?
Does anyone know how to compile this version on 15?
When I try to build, this is the failed output I'm getting;
Code: CMake Error at layers/CMakeLists.txt:105 (add_library):
Target "vvl" links to target "Vulkan::LayerSettings" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at layers/CMakeLists.txt:105 (add_library):
Target "vvl" links to target "Vulkan::UtilityHeaders" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at layers/CMakeLists.txt:23 (add_library):
Target "VkLayer_utils" links to target "Vulkan::LayerSettings" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
CMake Error at layers/CMakeLists.txt:23 (add_library):
Target "VkLayer_utils" links to target "Vulkan::UtilityHeaders" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_C_FLAGS
CMake Generate step failed. Build files cannot be regenerated correctly.
[ 0%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o
[ 1%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_function_pointers.cpp.o
[ 2%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/error_message/error_location.cpp.o
[ 3%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/error_location_helper.cpp.o
[ 4%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/external/xxhash.cpp.o
[ 4%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/pnext_chain_extraction.cpp.o
[ 5%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_core.cpp.o
[ 6%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_ext.cpp.o
[ 6%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/utils/convert_utils.cpp.o
[ 7%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_utils.cpp.o
[ 8%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_khr.cpp.o
[ 9%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_vendor.cpp.o
[ 10%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/utils/vk_layer_extension_utils.cpp.o
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/pnext_chain_extraction.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:132: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/pnext_chain_extraction.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.cpp:17:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.h:29:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
29 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:76: layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o] Error 1
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_ext.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/utils/convert_utils.cpp:23:10: fatal error: vulkan/utility/vk_format_utils.h: No such file or directory
23 | #include <vulkan/utility/vk_format_utils.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_core.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:202: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_ext.cpp.o] Error 1
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_khr.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:230: layers/CMakeFiles/VkLayer_utils.dir/utils/convert_utils.cpp.o] Error 1
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:174: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_core.cpp.o] Error 1
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/error_location.h:26,
from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/error_location.cpp:18:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.h:29:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
29 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:188: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_khr.cpp.o] Error 1
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:90: layers/CMakeFiles/VkLayer_utils.dir/error_message/error_location.cpp.o] Error 1
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_utils.cpp:27:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/./utils/vk_layer_utils.h:30:10: fatal error: vulkan/utility/vk_format_utils.h: No such file or directory
30 | #include <vulkan/utility/vk_format_utils.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_vendor.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:160: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_utils.cpp.o] Error 1
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:216: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_vendor.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: layers/CMakeFiles/VkLayer_utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Consolidate compiler generated dependencies of target VkLayer_utils
[ 0%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.cpp:17:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.h:29:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
29 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:76: layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: layers/CMakeFiles/VkLayer_utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Here's the edited SlackBuild I'm using...
https://dpaste.com/ELFKVNL8L
I also edited the fetch-sources.sh not sure if this is needed or correct. Starting at line 142 adding in 'vulkan' to the name.
https://dpaste.com/4PQ5232A4
THANKS
With the latest release of mpv, it needs a newer version of vulkan-sdk.
So I've been trying to use vulkan-sdk out of -current, trying to compile on 15 with no success.
To begin with I edited over the .SlackBuild, because whoever wrote it, left out 'vulkan' which is now in a lot of the archive names like 'glslang-vulkan-sdk', and the slackbuild seems to only list the name as glslang-sdk.
I also '-DBUILD_LAYER_SUPPORT_FILES=Off' thought it's suppose to be off?
Does anyone know how to compile this version on 15?
When I try to build, this is the failed output I'm getting;
Code: CMake Error at layers/CMakeLists.txt:105 (add_library):
Target "vvl" links to target "Vulkan::LayerSettings" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at layers/CMakeLists.txt:105 (add_library):
Target "vvl" links to target "Vulkan::UtilityHeaders" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at layers/CMakeLists.txt:23 (add_library):
Target "VkLayer_utils" links to target "Vulkan::LayerSettings" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
CMake Error at layers/CMakeLists.txt:23 (add_library):
Target "VkLayer_utils" links to target "Vulkan::UtilityHeaders" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_C_FLAGS
CMake Generate step failed. Build files cannot be regenerated correctly.
[ 0%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o
[ 1%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_function_pointers.cpp.o
[ 2%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/error_message/error_location.cpp.o
[ 3%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/error_location_helper.cpp.o
[ 4%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/external/xxhash.cpp.o
[ 4%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/pnext_chain_extraction.cpp.o
[ 5%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_core.cpp.o
[ 6%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_ext.cpp.o
[ 6%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/utils/convert_utils.cpp.o
[ 7%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_utils.cpp.o
[ 8%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_khr.cpp.o
[ 9%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_vendor.cpp.o
[ 10%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/utils/vk_layer_extension_utils.cpp.o
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/pnext_chain_extraction.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:132: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/pnext_chain_extraction.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.cpp:17:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.h:29:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
29 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:76: layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o] Error 1
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_ext.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/utils/convert_utils.cpp:23:10: fatal error: vulkan/utility/vk_format_utils.h: No such file or directory
23 | #include <vulkan/utility/vk_format_utils.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_core.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:202: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_ext.cpp.o] Error 1
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_khr.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:230: layers/CMakeFiles/VkLayer_utils.dir/utils/convert_utils.cpp.o] Error 1
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:174: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_core.cpp.o] Error 1
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/error_location.h:26,
from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/error_location.cpp:18:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.h:29:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
29 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:188: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_khr.cpp.o] Error 1
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:90: layers/CMakeFiles/VkLayer_utils.dir/error_message/error_location.cpp.o] Error 1
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_utils.cpp:27:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/./utils/vk_layer_utils.h:30:10: fatal error: vulkan/utility/vk_format_utils.h: No such file or directory
30 | #include <vulkan/utility/vk_format_utils.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/vulkan/generated/vk_safe_struct_vendor.cpp:27:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
27 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:160: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_utils.cpp.o] Error 1
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:216: layers/CMakeFiles/VkLayer_utils.dir/vulkan/generated/vk_safe_struct_vendor.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: layers/CMakeFiles/VkLayer_utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Consolidate compiler generated dependencies of target VkLayer_utils
[ 0%] Building CXX object layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o
In file included from /tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.cpp:17:
/tmp/sar/Vulkan-ValidationLayers-vulkan-sdk-1.3.268/layers/error_message/logging.h:29:10: fatal error: vulkan/utility/vk_struct_helper.hpp: No such file or directory
29 | #include <vulkan/utility/vk_struct_helper.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [layers/CMakeFiles/VkLayer_utils.dir/build.make:76: layers/CMakeFiles/VkLayer_utils.dir/error_message/logging.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: layers/CMakeFiles/VkLayer_utils.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Here's the edited SlackBuild I'm using...
https://dpaste.com/ELFKVNL8L
I also edited the fetch-sources.sh not sure if this is needed or correct. Starting at line 142 adding in 'vulkan' to the name.
https://dpaste.com/4PQ5232A4
THANKS