Lachei / VulkanPBRT

Vulkan physically based raytracer including denoising
MIT License
28 stars 11 forks source link

Linux x64 build lack libOGLCompiler.a (need update&adpat to latest vsg) #41

Open yhyu13 opened 6 months ago

yhyu13 commented 6 months ago

Hi

I am build this project on ubuntu 20.04 x64

It seems there is a missing lib used by external/vsgXchange/bin/vsgconv called libOGLCompiler.a

cmake  --build . -j 32
[  7%] Built target CopyShaders
[ 11%] Built target CompileShaders
[ 77%] Built target vsg
[ 80%] Built target vsgImGui
[ 92%] Built target vsgXchange
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libOGLCompiler.a', needed by 'external/vsgXchange/bin/vsgconv'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:462: external/vsgXchange/applications/vsgconv/CMakeFiles/vsgconv.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libOGLCompiler.a', needed by 'VulkanPBRT'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:227: CMakeFiles/VulkanPBRT.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

But when I clone and compile the standalone https://github.com/vsg-dev/vsgXchange from source, it's all fine.

Unfortunately, I could not find where to install libOGLCompiler.a

Do you have the same problem before?

Thanks!

yhyu13 commented 6 months ago

ok, it seems glslang (which installed alongside latest vulkan-sdk) has removed deps on libOGLCOmpiler.a which causes this issue. https://gitlab.kitware.com/cmake/cmake/-/issues/25583

And while I followed the git subtree cmd, it fails due to remote is down

sudo git subtree pull --prefix external/vsg git@github.com:vsg-dev/VulkanSceneGraph.git master --squash 

The authenticity of host 'github.com (20.205.243.166)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have

Update external maually to latest solve the dep problem but VulkanPBRT source code is totally broken by vsg api changes