KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.19k stars 626 forks source link

Undefined symbols for architecture x86_64: std::logic_error::what() const", referenced from: vk::LogicError::what() const in libapps.a[35](hpp_api_vulkan_sample.cpp.o) #1099

Closed dbl001 closed 1 week ago

dbl001 commented 2 months ago

Error building Vulkan Samples on MacOS Sonoma 14.5. I tried adding to CMakeLists.txt, etc.

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")

but it didn't help. Here's the output.

% env | grep clang
CLANG=/usr/bin/clang
CC=/usr/bin/clang
OBJC=/usr/bin/clang
CC_FOR_BUILD=/usr/bin/clang
OBJC_FOR_BUILD=/usr/bin/clang
CXX=/usr/bin/clang
(base) davidlaxer@bluediamond Vulkan-Samples % clang --version
clang version 14.0.6
Target: x86_64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Users/davidlaxer/anaconda3/bin

% cmake -Bbuild/mac -DCMAKE_BUILD_TYPE=Release
-- vulkan_libraryVulkan_LIBRARY-NOTFOUNDsearchpaths/lib
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
VULKAN_SDK path not found, HLSL shaders won't be compiled
-- The C compiler identification is AppleClang 15.0.0.15000309
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- vulkan_libraryVulkan_LIBRARY-NOTFOUNDsearchpaths/lib
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- spirv-tools not linked - illegal SPIRV may be generated for HLSL
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
CMake Deprecation Warning at third_party/spirv-cross/CMakeLists.txt:22 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- Found Git: /opt/local/bin/git (found version "2.45.2") 
-- SPIRV-Cross: Git hash: 7512345f
CMake Warning (dev) at third_party/spirv-cross/CMakeLists.txt:462 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /Users/davidlaxer/anaconda3/bin/python (found version "3.8.18") 
SPIRV-Cross:  Testing will be disabled for SPIRV-Cross. Could not find glslang or SPIRV-Tools build under external/. To enable testing, run ./checkout_glslang_spirv_tools.sh and ./build_glslang_spirv_tools.sh first.
--   AVX2 backend     - OFF
--   SSE4.1 backend   - OFF
--   SSE2 backend     - OFF
--   NEON backend     - OFF
--   NONE backend     - OFF
--   NATIVE backend   - ON
--   Universal bin    - OFF
--   Invariance       - ON
--   Shared libs      - OFF
--   Decompressor     - ON
--   Diagnostics      - OFF
--   ASAN             - OFF
--   Unit tests       - OFF
-- Including Cocoa support
-- Version: 10.1.1
-- Build type: Release
-- Performing Test HAS_NULLPTR_WARNING
-- Performing Test HAS_NULLPTR_WARNING - Success
-- Build spdlog: 1.12.0
-- Build type: Release
CMake Deprecation Warning at third_party/cli11/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Performing Test HAVE_FLAG__ffile_prefix_map__Users_davidlaxer_Vulkan_Samples_third_party_catch2__
-- Performing Test HAVE_FLAG__ffile_prefix_map__Users_davidlaxer_Vulkan_Samples_third_party_catch2__ - Success
-- STATIC: vkb__core
-- STATIC: vkb__unix_platform
-- STATIC: vkb__filesystem
-- Unix platform detected
-- Warnings as Errors Enabled
-- Sample `compute_nbody` - BUILD
-- Sample `dynamic_uniform_buffers` - BUILD
-- Sample `hdr` - BUILD
-- Sample `hello_triangle` - BUILD
-- Sample `hlsl_shaders` - BUILD
-- Sample `hpp_compute_nbody` - BUILD
-- Sample `hpp_dynamic_uniform_buffers` - BUILD
-- Sample `hpp_hdr` - BUILD
-- Sample `hpp_hello_triangle` - BUILD
-- Sample `hpp_hlsl_shaders` - BUILD
-- Sample `hpp_instancing` - BUILD
-- Sample `hpp_oit_depth_peeling` - BUILD
-- Sample `hpp_oit_linked_lists` - BUILD
-- Sample `hpp_separate_image_sampler` - BUILD
-- Sample `hpp_terrain_tessellation` - BUILD
-- Sample `hpp_texture_loading` - BUILD
-- Sample `hpp_texture_mipmap_generation` - BUILD
-- Sample `hpp_timestamp_queries` - BUILD
-- Sample `instancing` - BUILD
-- Sample `oit_depth_peeling` - BUILD
-- Sample `oit_linked_lists` - BUILD
-- Sample `separate_image_sampler` - BUILD
-- Sample `swapchain_recreation` - BUILD
-- Sample `terrain_tessellation` - BUILD
-- Sample `texture_loading` - BUILD
-- Sample `texture_mipmap_generation` - BUILD
-- Sample `timestamp_queries` - BUILD
-- Sample `buffer_device_address` - BUILD
-- Sample `calibrated_timestamps` - BUILD
-- Sample `color_write_enable` - BUILD
-- Sample `conditional_rendering` - BUILD
-- Sample `conservative_rasterization` - BUILD
-- Sample `debug_utils` - BUILD
-- Sample `descriptor_buffer_basic` - BUILD
-- Sample `descriptor_indexing` - BUILD
-- Sample `dynamic_blending` - BUILD
-- Sample `dynamic_line_rasterization` - BUILD
-- Sample `dynamic_primitive_clipping` - BUILD
-- Sample `dynamic_rendering` - BUILD
-- Sample `extended_dynamic_state2` - BUILD
-- Sample `fragment_shader_barycentric` - BUILD
-- Sample `fragment_shading_rate` - BUILD
-- Sample `fragment_shading_rate_dynamic` - BUILD
-- Sample `graphics_pipeline_library` - BUILD
-- Sample `gshader_to_mshader` - BUILD
-- Sample `hpp_mesh_shading` - BUILD
-- Sample `logic_op_dynamic_state` - BUILD
-- Sample `memory_budget` - BUILD
-- Sample `mesh_shader_culling` - BUILD
-- Sample `mesh_shading` - BUILD
-- Sample `open_gl_interop` - BUILD
-- Sample `patch_control_points` - BUILD
-- Sample `portability` - BUILD
-- Sample `push_descriptors` - BUILD
-- Sample `ray_queries` - BUILD
-- Sample `ray_tracing_basic` - BUILD
-- Sample `ray_tracing_extended` - BUILD
-- Sample `ray_tracing_reflection` - BUILD
-- Sample `shader_debugprintf` - BUILD
-- Sample `shader_object` - BUILD
-- Sample `sparse_image` - BUILD
-- Sample `synchronization_2` - BUILD
-- Sample `timeline_semaphore` - BUILD
-- Sample `vertex_dynamic_state` - BUILD
-- Sample `mobile_nerf` - BUILD
-- Sample `16bit_arithmetic` - BUILD
-- Sample `16bit_storage_input_output` - BUILD
-- Sample `afbc` - BUILD
-- Sample `async_compute` - BUILD
-- Sample `command_buffer_usage` - BUILD
-- Sample `constant_data` - BUILD
-- Sample `descriptor_management` - BUILD
-- Sample `hpp_pipeline_cache` - BUILD
-- Sample `hpp_swapchain_images` - BUILD
-- Sample `image_compression_control` - BUILD
-- Sample `layout_transitions` - BUILD
-- Sample `msaa` - BUILD
-- Sample `multi_draw_indirect` - BUILD
-- Sample `multithreading_render_passes` - BUILD
-- Sample `pipeline_barriers` - BUILD
-- Sample `pipeline_cache` - BUILD
-- Sample `render_passes` - BUILD
-- Sample `specialization_constants` - BUILD
-- Sample `subpasses` - BUILD
-- Sample `surface_rotation` - BUILD
-- Sample `swapchain_images` - BUILD
-- Sample `texture_compression_basisu` - BUILD
-- Sample `texture_compression_comparison` - BUILD
-- Sample `wait_idle` - BUILD
-- Sample `profiles` - BUILD
-- Plugin `batch_mode` - BUILD
-- Plugin `benchmark_mode` - BUILD
-- Plugin `data_path` - BUILD
-- Plugin `file_logger` - BUILD
-- Plugin `force_close` - BUILD
-- Plugin `fps_logger` - BUILD
-- Plugin `gpu_selection` - BUILD
-- Plugin `real_time_shader_selection` - BUILD
-- Plugin `screenshot` - BUILD
-- Plugin `shading_language_selection` - BUILD
-- Plugin `start_sample` - BUILD
-- Plugin `stop_after` - BUILD
-- Plugin `user_interface_options` - BUILD
-- Plugin `window_options` - BUILD
-- Configuring done (3.6s)
-- Generating done (1.5s)
-- Build files have been written to: /Users/davidlaxer/Vulkan-Samples/build/mac
(base) davidlaxer@bluediamond Vulkan-Samples % cmake -Bbuild/mac -DCMAKE_BUILD_TYPE=Release
-- vulkan_libraryVulkan_LIBRARY-NOTFOUNDsearchpaths/lib
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
VULKAN_SDK path not found, HLSL shaders won't be compiled
-- vulkan_libraryVulkan_LIBRARY-NOTFOUNDsearchpaths/lib
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- spirv-tools not linked - illegal SPIRV may be generated for HLSL
CMake Deprecation Warning at third_party/spirv-cross/CMakeLists.txt:22 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- SPIRV-Cross: Git hash: 7512345f
CMake Warning (dev) at third_party/spirv-cross/CMakeLists.txt:462 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

SPIRV-Cross:  Testing will be disabled for SPIRV-Cross. Could not find glslang or SPIRV-Tools build under external/. To enable testing, run ./checkout_glslang_spirv_tools.sh and ./build_glslang_spirv_tools.sh first.
--   AVX2 backend     - OFF
--   SSE4.1 backend   - OFF
--   SSE2 backend     - OFF
--   NEON backend     - OFF
--   NONE backend     - OFF
--   NATIVE backend   - ON
--   Universal bin    - OFF
--   Invariance       - ON
--   Shared libs      - OFF
--   Decompressor     - ON
--   Diagnostics      - OFF
--   ASAN             - OFF
--   Unit tests       - OFF
-- Including Cocoa support
-- Version: 10.1.1
-- Build type: Release
-- Build spdlog: 1.12.0
-- Build type: Release
CMake Deprecation Warning at third_party/cli11/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- STATIC: vkb__core
-- STATIC: vkb__unix_platform
-- STATIC: vkb__filesystem
-- Unix platform detected
-- Warnings as Errors Enabled
-- Sample `compute_nbody` - BUILD
-- Sample `dynamic_uniform_buffers` - BUILD
-- Sample `hdr` - BUILD
-- Sample `hello_triangle` - BUILD
-- Sample `hlsl_shaders` - BUILD
-- Sample `hpp_compute_nbody` - BUILD
-- Sample `hpp_dynamic_uniform_buffers` - BUILD
-- Sample `hpp_hdr` - BUILD
-- Sample `hpp_hello_triangle` - BUILD
-- Sample `hpp_hlsl_shaders` - BUILD
-- Sample `hpp_instancing` - BUILD
-- Sample `hpp_oit_depth_peeling` - BUILD
-- Sample `hpp_oit_linked_lists` - BUILD
-- Sample `hpp_separate_image_sampler` - BUILD
-- Sample `hpp_terrain_tessellation` - BUILD
-- Sample `hpp_texture_loading` - BUILD
-- Sample `hpp_texture_mipmap_generation` - BUILD
-- Sample `hpp_timestamp_queries` - BUILD
-- Sample `instancing` - BUILD
-- Sample `oit_depth_peeling` - BUILD
-- Sample `oit_linked_lists` - BUILD
-- Sample `separate_image_sampler` - BUILD
-- Sample `swapchain_recreation` - BUILD
-- Sample `terrain_tessellation` - BUILD
-- Sample `texture_loading` - BUILD
-- Sample `texture_mipmap_generation` - BUILD
-- Sample `timestamp_queries` - BUILD
-- Sample `buffer_device_address` - BUILD
-- Sample `calibrated_timestamps` - BUILD
-- Sample `color_write_enable` - BUILD
-- Sample `conditional_rendering` - BUILD
-- Sample `conservative_rasterization` - BUILD
-- Sample `debug_utils` - BUILD
-- Sample `descriptor_buffer_basic` - BUILD
-- Sample `descriptor_indexing` - BUILD
-- Sample `dynamic_blending` - BUILD
-- Sample `dynamic_line_rasterization` - BUILD
-- Sample `dynamic_primitive_clipping` - BUILD
-- Sample `dynamic_rendering` - BUILD
-- Sample `extended_dynamic_state2` - BUILD
-- Sample `fragment_shader_barycentric` - BUILD
-- Sample `fragment_shading_rate` - BUILD
-- Sample `fragment_shading_rate_dynamic` - BUILD
-- Sample `graphics_pipeline_library` - BUILD
-- Sample `gshader_to_mshader` - BUILD
-- Sample `hpp_mesh_shading` - BUILD
-- Sample `logic_op_dynamic_state` - BUILD
-- Sample `memory_budget` - BUILD
-- Sample `mesh_shader_culling` - BUILD
-- Sample `mesh_shading` - BUILD
-- Sample `open_gl_interop` - BUILD
-- Sample `patch_control_points` - BUILD
-- Sample `portability` - BUILD
-- Sample `push_descriptors` - BUILD
-- Sample `ray_queries` - BUILD
-- Sample `ray_tracing_basic` - BUILD
-- Sample `ray_tracing_extended` - BUILD
-- Sample `ray_tracing_reflection` - BUILD
-- Sample `shader_debugprintf` - BUILD
-- Sample `shader_object` - BUILD
-- Sample `sparse_image` - BUILD
-- Sample `synchronization_2` - BUILD
-- Sample `timeline_semaphore` - BUILD
-- Sample `vertex_dynamic_state` - BUILD
-- Sample `mobile_nerf` - BUILD
-- Sample `16bit_arithmetic` - BUILD
-- Sample `16bit_storage_input_output` - BUILD
-- Sample `afbc` - BUILD
-- Sample `async_compute` - BUILD
-- Sample `command_buffer_usage` - BUILD
-- Sample `constant_data` - BUILD
-- Sample `descriptor_management` - BUILD
-- Sample `hpp_pipeline_cache` - BUILD
-- Sample `hpp_swapchain_images` - BUILD
-- Sample `image_compression_control` - BUILD
-- Sample `layout_transitions` - BUILD
-- Sample `msaa` - BUILD
-- Sample `multi_draw_indirect` - BUILD
-- Sample `multithreading_render_passes` - BUILD
-- Sample `pipeline_barriers` - BUILD
-- Sample `pipeline_cache` - BUILD
-- Sample `render_passes` - BUILD
-- Sample `specialization_constants` - BUILD
-- Sample `subpasses` - BUILD
-- Sample `surface_rotation` - BUILD
-- Sample `swapchain_images` - BUILD
-- Sample `texture_compression_basisu` - BUILD
-- Sample `texture_compression_comparison` - BUILD
-- Sample `wait_idle` - BUILD
-- Sample `profiles` - BUILD
-- Plugin `batch_mode` - BUILD
-- Plugin `benchmark_mode` - BUILD
-- Plugin `data_path` - BUILD
-- Plugin `file_logger` - BUILD
-- Plugin `force_close` - BUILD
-- Plugin `fps_logger` - BUILD
-- Plugin `gpu_selection` - BUILD
-- Plugin `real_time_shader_selection` - BUILD
-- Plugin `screenshot` - BUILD
-- Plugin `shading_language_selection` - BUILD
-- Plugin `start_sample` - BUILD
-- Plugin `stop_after` - BUILD
-- Plugin `user_interface_options` - BUILD
-- Plugin `window_options` - BUILD
-- Configuring done (0.6s)
-- Generating done (1.2s)
-- Build files have been written to: /Users/davidlaxer/Vulkan-Samples/build/mac
(base) davidlaxer@bluediamond Vulkan-Samples % cmake -Bbuild/mac -DCMAKE_BUILD_TYPE=Release
-- vulkan_libraryVulkan_LIBRARY-NOTFOUNDsearchpaths/lib
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
VULKAN_SDK path not found, HLSL shaders won't be compiled
-- vulkan_libraryVulkan_LIBRARY-NOTFOUNDsearchpaths/lib
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version "")
-- spirv-tools not linked - illegal SPIRV may be generated for HLSL
CMake Deprecation Warning at third_party/spirv-cross/CMakeLists.txt:22 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- SPIRV-Cross: Git hash: 7512345f
CMake Warning (dev) at third_party/spirv-cross/CMakeLists.txt:462 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

SPIRV-Cross:  Testing will be disabled for SPIRV-Cross. Could not find glslang or SPIRV-Tools build under external/. To enable testing, run ./checkout_glslang_spirv_tools.sh and ./build_glslang_spirv_tools.sh first.
--   AVX2 backend     - OFF
--   SSE4.1 backend   - OFF
--   SSE2 backend     - OFF
--   NEON backend     - OFF
--   NONE backend     - OFF
--   NATIVE backend   - ON
--   Universal bin    - OFF
--   Invariance       - ON
--   Shared libs      - OFF
--   Decompressor     - ON
--   Diagnostics      - OFF
--   ASAN             - OFF
--   Unit tests       - OFF
-- Including Cocoa support
-- Version: 10.1.1
-- Build type: Release
-- Build spdlog: 1.12.0
-- Build type: Release
CMake Deprecation Warning at third_party/cli11/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- STATIC: vkb__core
-- STATIC: vkb__unix_platform
-- STATIC: vkb__filesystem
-- Unix platform detected
-- Warnings as Errors Enabled
-- Sample `compute_nbody` - BUILD
-- Sample `dynamic_uniform_buffers` - BUILD
-- Sample `hdr` - BUILD
-- Sample `hello_triangle` - BUILD
-- Sample `hlsl_shaders` - BUILD
-- Sample `hpp_compute_nbody` - BUILD
-- Sample `hpp_dynamic_uniform_buffers` - BUILD
-- Sample `hpp_hdr` - BUILD
-- Sample `hpp_hello_triangle` - BUILD
-- Sample `hpp_hlsl_shaders` - BUILD
-- Sample `hpp_instancing` - BUILD
-- Sample `hpp_oit_depth_peeling` - BUILD
-- Sample `hpp_oit_linked_lists` - BUILD
-- Sample `hpp_separate_image_sampler` - BUILD
-- Sample `hpp_terrain_tessellation` - BUILD
-- Sample `hpp_texture_loading` - BUILD
-- Sample `hpp_texture_mipmap_generation` - BUILD
-- Sample `hpp_timestamp_queries` - BUILD
-- Sample `instancing` - BUILD
-- Sample `oit_depth_peeling` - BUILD
-- Sample `oit_linked_lists` - BUILD
-- Sample `separate_image_sampler` - BUILD
-- Sample `swapchain_recreation` - BUILD
-- Sample `terrain_tessellation` - BUILD
-- Sample `texture_loading` - BUILD
-- Sample `texture_mipmap_generation` - BUILD
-- Sample `timestamp_queries` - BUILD
-- Sample `buffer_device_address` - BUILD
-- Sample `calibrated_timestamps` - BUILD
-- Sample `color_write_enable` - BUILD
-- Sample `conditional_rendering` - BUILD
-- Sample `conservative_rasterization` - BUILD
-- Sample `debug_utils` - BUILD
-- Sample `descriptor_buffer_basic` - BUILD
-- Sample `descriptor_indexing` - BUILD
-- Sample `dynamic_blending` - BUILD
-- Sample `dynamic_line_rasterization` - BUILD
-- Sample `dynamic_primitive_clipping` - BUILD
-- Sample `dynamic_rendering` - BUILD
-- Sample `extended_dynamic_state2` - BUILD
-- Sample `fragment_shader_barycentric` - BUILD
-- Sample `fragment_shading_rate` - BUILD
-- Sample `fragment_shading_rate_dynamic` - BUILD
-- Sample `graphics_pipeline_library` - BUILD
-- Sample `gshader_to_mshader` - BUILD
-- Sample `hpp_mesh_shading` - BUILD
-- Sample `logic_op_dynamic_state` - BUILD
-- Sample `memory_budget` - BUILD
-- Sample `mesh_shader_culling` - BUILD
-- Sample `mesh_shading` - BUILD
-- Sample `open_gl_interop` - BUILD
-- Sample `patch_control_points` - BUILD
-- Sample `portability` - BUILD
-- Sample `push_descriptors` - BUILD
-- Sample `ray_queries` - BUILD
-- Sample `ray_tracing_basic` - BUILD
-- Sample `ray_tracing_extended` - BUILD
-- Sample `ray_tracing_reflection` - BUILD
-- Sample `shader_debugprintf` - BUILD
-- Sample `shader_object` - BUILD
-- Sample `sparse_image` - BUILD
-- Sample `synchronization_2` - BUILD
-- Sample `timeline_semaphore` - BUILD
-- Sample `vertex_dynamic_state` - BUILD
-- Sample `mobile_nerf` - BUILD
-- Sample `16bit_arithmetic` - BUILD
-- Sample `16bit_storage_input_output` - BUILD
-- Sample `afbc` - BUILD
-- Sample `async_compute` - BUILD
-- Sample `command_buffer_usage` - BUILD
-- Sample `constant_data` - BUILD
-- Sample `descriptor_management` - BUILD
-- Sample `hpp_pipeline_cache` - BUILD
-- Sample `hpp_swapchain_images` - BUILD
-- Sample `image_compression_control` - BUILD
-- Sample `layout_transitions` - BUILD
-- Sample `msaa` - BUILD
-- Sample `multi_draw_indirect` - BUILD
-- Sample `multithreading_render_passes` - BUILD
-- Sample `pipeline_barriers` - BUILD
-- Sample `pipeline_cache` - BUILD
-- Sample `render_passes` - BUILD
-- Sample `specialization_constants` - BUILD
-- Sample `subpasses` - BUILD
-- Sample `surface_rotation` - BUILD
-- Sample `swapchain_images` - BUILD
-- Sample `texture_compression_basisu` - BUILD
-- Sample `texture_compression_comparison` - BUILD
-- Sample `wait_idle` - BUILD
-- Sample `profiles` - BUILD
-- Plugin `batch_mode` - BUILD
-- Plugin `benchmark_mode` - BUILD
-- Plugin `data_path` - BUILD
-- Plugin `file_logger` - BUILD
-- Plugin `force_close` - BUILD
-- Plugin `fps_logger` - BUILD
-- Plugin `gpu_selection` - BUILD
-- Plugin `real_time_shader_selection` - BUILD
-- Plugin `screenshot` - BUILD
-- Plugin `shading_language_selection` - BUILD
-- Plugin `start_sample` - BUILD
-- Plugin `stop_after` - BUILD
-- Plugin `user_interface_options` - BUILD
-- Plugin `window_options` - BUILD
-- Configuring done (0.5s)
-- Generating done (1.2s)
-- Build files have been written to: /Users/davidlaxer/Vulkan-Samples/build/mac
% cmake --build build/mac --config Release --target vulkan_samples -j4
...
[ 98%] Built target profiles
[100%] Building CXX object app/apps/CMakeFiles/apps.dir/apps.cpp.o
[100%] Linking CXX static library lib/Release/x86_64/libapps.a
[100%] Built target apps
[100%] Building CXX object app/CMakeFiles/vulkan_samples.dir/main.cpp.o
[100%] Linking CXX executable bin/Release/x86_64/vulkan_samples.app/Contents/MacOS/vulkan_samples

ld: warning: ignoring duplicate libraries: '../components/core/lib/Release/x86_64/libvkb__core.a', '../components/filesystem/lib/Release/x86_64/libvkb__filesystem.a', '../components/unix/lib/Release/x86_64/libvkb__unix_platform.a'
Undefined symbols for architecture x86_64:
  "std::logic_error::what() const", referenced from:
      vk::LogicError::what() const in libapps.a[35](hpp_api_vulkan_sample.cpp.o)
      non-virtual thunk to vk::LogicError::what() const in libapps.a[35](hpp_api_vulkan_sample.cpp.o)
  "std::runtime_error::what() const", referenced from:
      vkb::CLI11CommandParser::cli11_parse(CLI::App*) in libapps.a[11](CLI11.cpp.o)
      vtable for CLI::ValidationError in libapps.a[11](CLI11.cpp.o)
      vtable for CLI::ParseError in libapps.a[11](CLI11.cpp.o)
      vtable for CLI::Error in libapps.a[11](CLI11.cpp.o)
      vtable for CLI::ArgumentMismatch in libapps.a[11](CLI11.cpp.o)
      vtable for CLI::OptionNotFound in libapps.a[11](CLI11.cpp.o)
      vtable for CLI::IncorrectConstruction in libapps.a[11](CLI11.cpp.o)
      ...
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::find(char, unsigned long) const", referenced from:
      CLI::detail::fix_newlines(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>) in libapps.a[11](CLI11.cpp.o)
      CLI::detail::convert_arg_for_ini(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, char, char) in libapps.a[11](CLI11.cpp.o)
      CLI::ConfigBase::from_config(std::__1::basic_istream<char, std::__1::char_traits<char>>&) const in libapps.a[11](CLI11.cpp.o)
      CLI::ConfigBase::from_config(std::__1::basic_istream<char, std::__1::char_traits<char>>&) const in libapps.a[11](CLI11.cpp.o)
      CLI::ConfigBase::from_config(std::__1::basic_istream<char, std::__1::char_traits<char>>&) const in libapps.a[11](CLI11.cpp.o)
      CLI::ConfigBase::from_config(std::__1::basic_istream<char, std::__1::char_traits<char>>&) const in libapps.a[11](CLI11.cpp.o)
      CLI::ConfigBase::from_config(std::__1::basic_istream<char, std::__1::char_traits<char>>&) const in libapps.a[11](CLI11.cpp.o)
      CLI::ConfigBase::from_config(std::__1::basic_istream<char, std::__1::char_traits<char>>&) const in libapps.a[11](CLI11.cpp.o)
      ...
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::rfind(char, unsigned long) const", referenced from:
gpx1000 commented 1 month ago

It looks like you might need to run VULKAN_SDK/setup_env.sh

You need to ensure that VULKAN_SDK environment variable is set so CMake can find it.

jeroenbakker-atmind commented 1 week ago

@dbl001 can you give an update if this is still an issue for you?

dbl001 commented 1 week ago

The issue is resolved. Thanks!