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

vsgmultigpu fails compilation #322

Open
dov opened this issue Oct 10, 2024 · 3 comments
Open

vsgmultigpu fails compilation #322

dov opened this issue Oct 10, 2024 · 3 comments

Comments

@dov
Copy link
Contributor

dov commented Oct 10, 2024

Trying to compile with the current HEAD vsgExmples with current head VulkanSceneGraph fails with the following error:

FAILED: bin/vsgmultigpu 
: && /usr/bin/c++ -g  examples/app/vsgmultigpu/CMakeFiles/vsgmultigpu.dir/vsgmultigpu.cpp.o -o bin/vsgmultigpu  -Wl,-rpath,/usr/local/lib64:  /usr/local/lib64/libvsgd.a  /usr/local/lib64/libvsgXchange.a  /usr/local/lib64/libvsgd.a  /usr/lib64/libvulkan.so  /usr/lib64/libglslang-default-resource-limits.a  /usr/lib64/libSPIRV.a  /usr/lib64/libglslang.a  /usr/lib64/libMachineIndependent.a  /usr/lib64/libOSDependent.a  /usr/lib64/libGenericCodeGen.a  -lSPIRV-Tools-opt  -lSPIRV-Tools  -lSPIRV-Tools-link  /usr/lib64/libxcb.so  /usr/lib64/libfreetype.so  /usr/local/lib64/libassimp.so.5.3.0  /usr/lib64/libz.so  -lrt  /usr/lib64/libgdal.so  /usr/lib64/libcurl.so  /usr/lib64/libOpenEXR-3_1.so.30.10.1  /usr/lib64/libImath-3_1.so.29.9.0  -lm  /usr/lib64/libIlmThread-3_1.so.30.10.1  /usr/lib64/libIex-3_1.so.30.10.1  /usr/lib64/libz.so && :
/usr/bin/ld: examples/app/vsgmultigpu/CMakeFiles/vsgmultigpu.dir/vsgmultigpu.cpp.o: in function `vsg::ref_ptr<vsg::BindGraphicsPipeline> vsg::Inherit<vsg::StateCommand, vsg::BindGraphicsPipeline>::create<vsg::ref_ptr<vsg::GraphicsPipeline>&>(vsg::ref_ptr<vsg::GraphicsPipeline>&)':
/usr/local/include/vsg/core/Inherit.h:37:(.text._ZN3vsg7InheritINS_12StateCommandENS_20BindGraphicsPipelineEE6createIJRNS_7ref_ptrINS_16GraphicsPipelineEEEEEENS5_IS2_EEDpOT_[_ZN3vsg7InheritINS_12StateCommandENS_20BindGraphicsPipelineEE6createIJRNS_7ref_ptrINS_16GraphicsPipelineEEEEEENS5_IS2_EEDpOT_]+0x51): undefined reference to `vsg::BindGraphicsPipeline::BindGraphicsPipeline(vsg::ref_ptr<vsg::GraphicsPipeline>)'
collect2: error: ld returned 1 exit status

@dov
Copy link
Contributor Author

dov commented Oct 10, 2024

Sorry. The error report doesn't make sense. I'm investigating it on my own.

@dov
Copy link
Contributor Author

dov commented Oct 10, 2024

Got it! I was compiling vsgExamples in debug mode, but VulkanSceneGraph in release mode.

@robertosfield
Copy link
Collaborator

robertosfield commented Oct 10, 2024 via email

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

2 participants