vircadia / vircadia-native-core

Vircadia open source agent-based metaverse ecosystem.
https://vircadia.com/
Other
533 stars 176 forks source link

Oven broken in latest master #969

Open JulianGro opened 3 years ago

JulianGro commented 3 years ago

When building server or server and client, running oven fails with:

./oven: error while loading shared libraries: libbaking.so: cannot open shared object file: No such file or directory

The file is in the libraries folder, so I guess the linking went wrong. It also doesn't take the file when it is right next to oven which seems weird.

digisomni commented 3 years ago

I assume this has only been tested/seen on Linux?

JulianGro commented 3 years ago

Yes, but I just noticed that it's doing the thing again where it ignores the specified QT directory. So I assume the build process is borked in this VM. Since Dale refactored that part of the code in #936 I will try around with that more.

JulianGro commented 3 years ago

Yep. Absolutely no idea what is happening with that.

motofckr9k@motofckr9k-VirtualBox:~/Vircadia/install_improve_cmake/tools/oven$ ls
libbaking.so  oven
motofckr9k@motofckr9k-VirtualBox:~/Vircadia/install_improve_cmake/tools/oven$ ldd oven
    linux-vdso.so.1 (0x00007ffc7c75f000)
    libbaking.so => not found
    libprocedural.so => not found
    libmaterial-networking.so => not found
    libfbx.so => not found
    libhfm.so => not found
    libnetworking.so => not found
    libQt5Widgets.so.5 => not found
    libshared.so => not found
    libQt5Gui.so.5 => not found
    libQt5Core.so.5 => not found
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc35baf6000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc35b758000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc35b540000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc35b14f000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc35c12f000)
motofckr9k@motofckr9k-VirtualBox:~/Vircadia/install_improve_cmake/tools/oven$ 
daleglass commented 3 years ago

What if you set LD_LIBRARY_PATH?

digisomni commented 3 years ago

This is a high priority item, what's the latest on it? Did it turn out to be nothing in the end?

JulianGro commented 3 years ago

Adding LD_LIBRARY_PATH does indeed work around the issue.

motofckr9k@motofckr9k-mint-desktop:~/Vircadia/install_master/tools/oven$ LD_LIBRARY_PATH=/home/motofckr9k/Vircadia/qt5-install/lib/:LD_LIBRARY_PATH ldd oven
    linux-vdso.so.1 (0x00007ffc10b36000)
    libbaking.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/libbaking.so (0x00007f07300c8000)
    libprocedural.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/procedural/libprocedural.so (0x00007f072fdf2000)
    libmaterial-networking.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/material-networking/libmaterial-networking.so (0x00007f072fb48000)
    libfbx.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/fbx/libfbx.so (0x00007f072f6c1000)
    libhfm.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/hfm/libhfm.so (0x00007f072f473000)
    libnetworking.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/networking/libnetworking.so (0x00007f072edc9000)
    libQt5Widgets.so.5 => /home/motofckr9k/Vircadia/qt5-install/lib/libQt5Widgets.so.5 (0x00007f072e755000)
    libshared.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/shared/libshared.so (0x00007f072e29d000)
    libQt5Gui.so.5 => /home/motofckr9k/Vircadia/qt5-install/lib/libQt5Gui.so.5 (0x00007f072dcc3000)
    libQt5Core.so.5 => /home/motofckr9k/Vircadia/qt5-install/lib/libQt5Core.so.5 (0x00007f072d69b000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f072d46f000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f072d320000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f072d108000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f072cf17000)
    libgraphics-scripting.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/../graphics-scripting/libgraphics-scripting.so (0x00007f072cc30000)
    libmodel-baker.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/../model-baker/libmodel-baker.so (0x00007f072c61c000)
    libtask.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/../task/libtask.so (0x00007f072c40a000)
    libgraphics.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/../graphics/libgraphics.so (0x00007f072c10a000)
    libimage.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/../image/libimage.so (0x00007f072ba43000)
    libgpu.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/../gpu/libgpu.so (0x00007f072b467000)
    libktx.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/baking/../ktx/libktx.so (0x00007f072b202000)
    libQt5Script.so.5 => /home/motofckr9k/Vircadia/qt5-install/lib/libQt5Script.so.5 (0x00007f072af72000)
    libQt5Network.so.5 => /home/motofckr9k/Vircadia/qt5-install/lib/libQt5Network.so.5 (0x00007f072adc8000)
    libshaders.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/procedural/../shaders/libshaders.so (0x00007f0729e22000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f073067d000)
    libgl.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/material-networking/../gl/libgl.so (0x00007f0729b47000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0729b22000)
    libplatform.so => /home/motofckr9k/Vircadia/install_master/tools/oven/./../../libraries/networking/../platform/libplatform.so (0x00007f07298ad000)
    libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f0729469000)
    libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f07291db000)
    libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f0728fa9000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0728d8c000)
    libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f0728aee000)
    libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f07288dd000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f07288d7000)
    libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f07285be000)
    libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f072838d000)
    libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f07280d7000)
    libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f0727e23000)
    libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f0727bf4000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f0727982000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f072764a000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0727422000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f072721e000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f0727016000)
    libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f0726e01000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f0726df6000)
motofckr9k@motofckr9k-mint-desktop:~/Vircadia/install_master/tools/oven$ 
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

daleglass commented 3 years ago

Works for me, is it still a problem?

stale[bot] commented 2 years ago

Hello! Is this still an issue?

daleglass commented 2 years ago

Still works for me (on Linux), can't reproduce

digisomni commented 2 years ago

I don't believe this happens on Windows using the Asset Browser, however an issue does occur with FBX models baked from the Asset Browser window (using the Asset Mixer) on Linux (as reported by another user).

rafa32gr commented 2 years ago

Hello, Mac oven App, dyld[8282]: Library not loaded: @rpath/libbaking.dylib 2022.1.1 Selene

stale[bot] commented 1 year ago

Hello! Is this still an issue?