1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-13 21:50:38 +03:00

rviz-ogre-vendor: Fix library path

[ERROR] [1680979246.194354969] [rviz2]: InternalErrorException: Could not load dynamic library
    /nix/store/4r2h3xi49krwzwf64rpf2prsfg5mbjxv-ros-env/opt/rviz_ogre_vendor/lib/OGRE/RenderSystem_GL.
    System Error: /nix/store/4r2h3xi49krwzwf64rpf2prsfg5mbjxv-ros-env/opt/rviz_ogre_vendor/lib/OGRE/RenderSystem_GL.so.1.12.1:
    cannot open shared object file: No such file or directory in DynLib::load at
    /build/rviz-release-release-humble-rviz_ogre_vendor-11.2.5-1/build/ogre-v1.12.1-prefix/src/ogre-v1.12.1/OgreMain/src/OgreDynLib.cpp (line 113)
    terminate called after throwing an instance of 'Ogre::InternalErrorException'
      what():  InternalErrorException: Could not load dynamic library /nix/store/4r2h3xi49krwzwf64rpf2prsfg5mbjxv-ros-env/opt/rviz_ogre_vendor/lib/OGRE/RenderSystem_GL.  System Error: /nix/store/4r2h3xi49krwzwf64rpf2prsfg5mbjxv-ros-env/opt/rviz_ogre_vendor/lib/OGRE/RenderSystem_GL.so.1.12.1: cannot open shared object file: No such file or directory in DynLib::load at /build/rviz-release-release-humble-rviz_ogre_vendor-11.2.5-1/build/ogre-v1.12.1-prefix/src/ogre-v1.12.1/OgreMain/src/OgreDynLib.cpp (line 113)
    Aborted (core dumped)
This commit is contained in:
Michal Sojka 2023-04-08 20:13:21 +02:00 committed by Ben Wolsieffer
parent ccb0394301
commit 4d66231066

View file

@ -153,6 +153,11 @@ rosSelf: rosSuper: with rosSelf.lib; {
'';
});
rviz-ogre-vendor = rosSuper.rviz-ogre-vendor.overrideAttrs ({ ... }: {
# Prevent replacing $out/opt/.. with $out/var/empty/..
dontFixCmake = true;
});
rviz2 = rosSuper.rviz2.overrideAttrs ({
nativeBuildInputs ? [], postFixup ? "", ...
}: {