vsg-dev / vsgExamples

Example programs that test and illustrate how to use the VSG and optional add-on libraries
MIT License
145 stars 67 forks source link

vsgmultigpu fails compilation #322

Open dov opened 2 hours ago

dov commented 2 hours ago

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 commented 2 hours ago

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

dov commented 2 hours ago

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

robertosfield commented 2 hours ago

2 days ago I changed the parts of the API to use refptr rather c pointer in the constructor parameters. The error you have looks like the headers have this new version but the lib you are linking to is older than this.

On Thu, 10 Oct 2024, 09:51 Dov Grobgeld, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/vsg-dev/vsgExamples/issues/322#issuecomment-2404493634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKEGUH4G73TNQJR4JDBMQTZ2Y52DAVCNFSM6AAAAABPWH7O3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBUGQ4TGNRTGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>