Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking Optick built with CMake fails on Vulkan application #150

Open
GasimGasimzada opened this issue Feb 5, 2022 · 0 comments
Open

Linking Optick built with CMake fails on Vulkan application #150

GasimGasimzada opened this issue Feb 5, 2022 · 0 comments

Comments

@GasimGasimzada
Copy link

GasimGasimzada commented Feb 5, 2022

I have built Optick using CMake using the following flags:

cmake . -B build -DCMAKE_INSTALL_PREFIX={{VENDOR_DIR}}
cmake --build build --config {{BUILD_MODE}}
cmake --install build --config {{BUILD_MODE}}

When I link optick in my application, I get the following warnings during compilation:

1>OptickCored.lib(OptickCored.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in vulkan-1.lib(vulkan-1.dll); second definition ignored
1>MainLoop.obj : warning LNK4006: "public: __cdecl Optick::Event::Event(struct Optick::EventDescription const &)" (??0Event@Optick@@QEAA@AEBUEventDescription@1@@Z) already defined in OptickCored.lib(OptickCored.dll); second definition ignored
1>MainLoop.obj : warning LNK4006: "public: __cdecl Optick::Event::~Event(void)" (??1Event@Optick@@QEAA@XZ) already defined in OptickCored.lib(OptickCored.dll); second definition ignored

When I run the app, it fails because of the DLL location mismatch; however, I don't want to use dynamic library for Optix.

I thought it is possible to run Optick as a static library, not a separate DLL. However, looking into CMakeLists, I couldn't find a way to disable DLL builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant