Replies: 7 comments 1 reply
-
That looks like you're not linking with |
Beta Was this translation helpful? Give feedback.
-
You're definitely right !! Many thanks for your help ! |
Beta Was this translation helpful? Give feedback.
-
If you're adding it manually, it's almost certainly going to break again the next time a build requires CMake to re-run. You need to work out why it wasn't added automatically like it was supposed to be. |
Beta Was this translation helpful? Give feedback.
-
I meant the vulkan-1.lib linking dependency was missing in my app Property/Linker/Input. |
Beta Was this translation helpful? Give feedback.
-
Works fine now. |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for your answer. As you guessed, I'm not familiar with CMake. Here is exactly what I made. Then, I've modified my existing C++ app the "good old way" :
From your message, I understand that CMake is able to perform those 3 steps in an easier and more reliable way, correct? Regards, |
Beta Was this translation helpful? Give feedback.
-
It might not be the most straightforward approach for an existing app, but it's usual to put the information that would go in a That would mean that you'd write CMake to replace your existing build system. Another, slightly hacky option is to create a dummy CMake project that includes VSG and see which flags it uses. E.g. from a directory with a cmake_minimum_required(VERSION 3.20)
project(Dummy LANGUAGES CXX)
find_package(vsg CONFIG REQUIRED)
add_executable(Dummy dummy.cpp)
target_link_libraries(Dummy PRIVATE vsg::vsg) and int main()
{
return 0;
} you can run
and it'll tell you the right flags. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello ,
I'm starting to learn VSG , so please forgive me if I missed something obvious...
I'm facing an issue when trying to link against VSG in my app.
I'm developing under Windows 10 with VS2022.
I've complied latest VSG release with VS2022 and "vsg.lib" has successfully been generated (both Release and Debug).
I've also added "vsg.lib" in VS2022 linker params "Additional Dependencies" of my app.
Compilation is smooth, so headers are found.
But I got many linker errors :
Severity Code Description Project File Line Suppression State Details
Error LNK2001 unresolved external symbol vkCmdPushConstants eView C:\eView\vsg.lib(RecordTraversal.obj) 1
Error LNK2001 unresolved external symbol vkCmdPushConstants eView C:\eView\vsg.lib(PushConstants.obj) 1
Error LNK2001 unresolved external symbol vkBeginCommandBuffer eView C:\eView\vsg.lib(CommandGraph.obj) 1
I can't figure out where the issue comes from .
Any suggestion would be greatly appreciated ... :)
Many thanks !
John F
Beta Was this translation helpful? Give feedback.
All reactions