vsgExamples build errors on windows

144 views
Skip to first unread message

Bruce Clay

unread,
Aug 3, 2021, 5:51:22 PM8/3/21
to vsg-users : VulkanSceneGraph Developer Discussion Group
I am using the VSG code from a pull yesterday.  my cmake version is 3.21.1 and I am using Visual Studio 2017.

I can build the vsg project from cmake to VC solution and I can build Vulkan also from a pull yesterday.

when I try to build vsgExamples the paths to the include files is not set.  If I set that and the path to the vsg libraries manually in the VS solution I can go farther in the build but the linker is trying to find vsg::vsg.lib.

Several of the cmakelists.txt files have a line below
  target_link_libraries(vsgarrays vsg::vsg)

which I believe is the cause of the problem.

In a related problem cmake does not produce a solution for vsgImGui .
When I set the vsg_DIR to E:\SupportLibraries3\VulkanSceneGraph\VulkanSceneGraph\build_x64\src\vsg

the field is cleared when I tell cmake to configure resulting in the error shown below

Could not find a package configuration file provided by "vsg" with any of

the following names:

vsgConfig.cmake
vsg-config.cmake



Bruce

Robert Osfield

unread,
Aug 5, 2021, 1:32:14 AM8/5/21
to vsg-users : VulkanSceneGraph Developer Discussion Group
HI Bruce,

I don't have windows so can't comment on platform specifics, hopefully others who are using Windows will chip in.

On Tuesday, 3 August 2021 at 22:51:22 UTC+1 bcla...@gmail.com wrote:
I am using the VSG code from a pull yesterday.  my cmake version is 3.21.1 and I am using Visual Studio 2017.
 
....
 
Could not find a package configuration file provided by "vsg" with any of

the following names:

vsgConfig.cmake
vsg-config.cmake

When you build the VSG, then other associated projects like vsgImGui, vsgXchange you should build and then install then.  When installing them you should choose a standard install directory setting for CMAKE_INSTALL_PREFIX, 

When installing the VSG projects all use CMake config scheme where it installs various config related files into a lib/cmake/vsg directory, this is where you'll find the vsgConfig.cmake.  All the additional optional project like vsgImGui, vsgXchange install in lib/vsgImGui, lib/vsgXchange etc.

If you are already doing this, what is the value CMAKE_INSTALL_PREFIX and where are the lib/cmake/vsg* directories being installed?

Cheers,
Robert.
Reply all
Reply to author
Forward
0 new messages