KhronosGroup/Vulkan-ExtensionLayer

Cannot compile with space in directory name

liamwhite opened this issue · 2 comments

With a clone in, for example ~/source/Vulkan ExtensionLayer I get


[1/2] Re-running CMake...
CMake Warning at CMakeLists.txt:44 (message):
  CMAKE_BUILD_TYPE not set.  Using Debug for dependency build type


********************************************************************************
* NOTE: Adding target vvl_update_deps to run as needed for updating            *
*       dependencies.                                                          *
********************************************************************************
-- Using glslang install located at /home/liam/source/Vulkan ExtensionLayer/external/glslang/build/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/liam/source/Vulkan ExtensionLayer/build
[10/22] Linking CXX shared library layers/libVkLayer_khronos_synchronization2.so
FAILED: layers/libVkLayer_khronos_synchronization2.so 
: && /usr/lib64/ccache/c++ -fPIC -Wpointer-arith -Wno-unused-function -Wno-sign-compare  -Wl,--version-script=/home/liam/source/Vulkan ExtensionLayer/layers/libVkLayer_khronos_synchronization2.map,-Bsymbolic,--exclude-libs,ALL -shared -Wl,-soname,libVkLayer_khronos_synchronization2.so -o layers/libVkLayer_khronos_synchronization2.so layers/CMakeFiles/VkLayer_khronos_synchronization2.dir/synchronization2.cpp.o  utils/libVkExtLayer_utils.a && :
/usr/bin/ld: cannot open linker script file /home/liam/source/Vulkan: No such file or directory
collect2: error: ld returned 1 exit status
[11/22] Linking CXX shared library layers/libVkLayer_khronos_timeline_semaphore.so
FAILED: layers/libVkLayer_khronos_timeline_semaphore.so 
: && /usr/lib64/ccache/c++ -fPIC -Wpointer-arith -Wno-unused-function -Wno-sign-compare  -Wl,--version-script=/home/liam/source/Vulkan ExtensionLayer/layers/libVkLayer_khronos_timeline_semaphore.map,-Bsymbolic,--exclude-libs,ALL -shared -Wl,-soname,libVkLayer_khronos_timeline_semaphore.so -o layers/libVkLayer_khronos_timeline_semaphore.so layers/CMakeFiles/VkLayer_khronos_timeline_semaphore.dir/hash_table.cpp.o layers/CMakeFiles/VkLayer_khronos_timeline_semaphore.dir/timeline_semaphore.c.o  utils/libVkExtLayer_utils.a && :
/usr/bin/ld: cannot open linker script file /home/liam/source/Vulkan: No such file or directory
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

This should be fixed now @liamwhite

I confirmed the fix on my own system but a double check would be appreciated

Confirmed that this is fixed on my end, thanks!