Cannot build VsgExamPles with CMake

74 views
Skip to first unread message

future Charles

unread,
Aug 11, 2022, 11:06:03 PM8/11/22
to vsg-users : VulkanSceneGraph Developer Discussion Group
Hi guys.
I should have made a lot of newbie questions.
Thanks for your help.

I want to build vsgexamples form vsg-dev github via cmake, it's cmake output:

-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The CXX compiler identification is MSVC 19.29.30141.0
-- The C compiler identification is MSVC 19.29.30141.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: G:/profession software/vs/2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: G:/profession software/vs/2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Reading 'vsg_...' macros from C:/Program Files (x86)/vsg/lib/cmake/vsg/vsgMacros.cmake - look there for documentation
-- Found Vulkan: G:/VSG/Vulkan/Lib/vulkan-1.lib (found suitable version "1.3.211", minimum required is "1.1.70.0") found components: glslc glslangValidator
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Found Threads: TRUE
CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "Findvsg_glslang.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "vsg_glslang", but CMake did not find one.

  Could not find a package configuration file provided by "vsg_glslang" with
  any of the following names:

    vsg_glslangConfig.cmake
    vsg_glslang-config.cmake

  Add the installation prefix of "vsg_glslang" to CMAKE_PREFIX_PATH or set
  "vsg_glslang_DIR" to a directory containing one of the above files.  If
  "vsg_glslang" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  C:/Program Files (x86)/vsg/lib/cmake/vsg/vsgConfig.cmake:7 (find_dependency)
  CMakeLists.txt:24 (find_package)


-- Configuring incomplete, errors occurred!
See also "G:/VSG/1231/vsgExamPles/CMakeFiles/CMakeOutput.log".
See also "G:/VSG/1231/vsgExamPles/CMakeFiles/CMakeError.log".

I then downloaded and install VSG without any difficulty and was able to get C-Make to make me a VSG solution file 。

That's VSG CMake output:

-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The CXX compiler identification is MSVC 19.29.30141.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: G:/profession software/vs/2019/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Reading 'vsg_...' macros from G:/VSG/1231/VulkanSceneGraph/cmake/vsgMacros.cmake - look there for documentation
-- Found Vulkan: G:/VSG/Vulkan/Lib/vulkan-1.lib (found suitable version "1.3.211", minimum required is "1.1.70.0") found components: glslc glslangValidator
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Found Threads: TRUE
-- Found glslang: G:/VSG/Vulkan/Lib/glslang.lib
-- Performing Test GLSLANG_ResourceLimits_maxDualSourceDrawBuffersEXT
-- Performing Test GLSLANG_ResourceLimits_maxDualSourceDrawBuffersEXT - Success
-- Performing Test GLSLANG_EShLanguage_EShLangRayGen
-- Performing Test GLSLANG_EShLanguage_EShLangRayGen - Success
-- Performing Test GLSLANG_EShLanguage_EShLangRayGenNV
-- Performing Test GLSLANG_EShLanguage_EShLangRayGenNV - Success
-- The following OPTIONAL packages have been found:

 * vsg_glslang

-- The following REQUIRED packages have been found:

 * Vulkan (required version >= 1.1.70.0)
 * Threads

-- Configuring done
-- Generating done
-- Build files have been written to: G:/VSG/1231/VulkanSceneGraph


How should I improve to solve the problem。

Thanks!
Reply all
Reply to author
Forward
0 new messages