-
Notifications
You must be signed in to change notification settings - Fork 86
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
ros-gz Fails to build, ros-gz-bridge ros-gz-images, etc.. don't exist #319
Comments
New Gazebo (as opposed to classic) and all its Ignition dependencies need to be packaged manually. This is quite a bit of work, and I started it at one point but haven't had time to finish it. |
I've tried to get ignition gazebo running. You can find my sources here. In that repo I tried to mimic the structure we are using in the nix-ros-overlay. My repo is still WIP but I managed to compile Gazebo Sim Harmonic and all it's dependencies. The GUI is not working right now: gz sim
Library error: libgz-tools2-backward.so not found. Improved backtrace generation will be disabled
Library error for [/nix/store/g13mc8m3dx5insvl5kz5pxp0igm7kgfg-gazebo-sim-gz-sim8_8.0.0/nix/store/g13mc8m3dx5insvl5kz5pxp0igm7kgfg-gazebo-sim-gz-sim8_8.0.0/lib/libgz-sim8-gz.so.8.0.0]: /nix/store/g13mc8m3dx5insvl5kz5pxp0igm7kgfg-gazebo-sim-gz-sim8_8.0.0/nix/store/g13mc8m3dx5insvl5kz5pxp0igm7kgfg-gazebo-sim-gz-sim8_8.0.0/lib/libgz-sim8-gz.so.8.0.0: cannot open shared object file: No such file or directory @lopsided98 maybe you have an idea how to fix this. I think it is related to this, because in the custom shell for testing see here I had to set the |
Little Update to my previous post. In my repo I have managed to pull gazebo-classic out of the nix-ros-overlay repo and I was able to compile Gazebo Sim Harmonic, but I still have the error I mentioned in my previous post when I try to use the gui from the new Gazebo-Sim. |
Update: in my gazebo overlay repo you get an overlay for gazebo-classic and gazebo-sim-harmonic. gazebo-classic is running fine but gazebo-sim-harmonic is not working. When I try to run `gz gui I get QML runtime errors: |
Hi! I, on the other hand, am not familiar with gazebo :-). When using your flake as follows:
I get:
This is different than your However, I looked at you code and it seems to me that you need to apply the Qt wrapper to the diff --git a/pkgs/ignition/tools/default.nix b/pkgs/ignition/tools/default.nix
index 7caf997..1eef6b4 100644
--- a/pkgs/ignition/tools/default.nix
+++ b/pkgs/ignition/tools/default.nix
@@ -29,13 +29,17 @@ stdenv.mkDerivation rec {
hash = srcHash;
};
- nativeBuildInputs = [ cmake pkg-config ];
+ nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
# pkg-config is needed to use some CMake modules in this package
# propagatedBuildInputs = [ pkg-config ];
propagatedNativeBuildInputs = [ ignition-cmake ];
buildInputs = [ ignition-cmake ruby ronn ];
- # dontWrapQtApps = true;
+ dontWrapQtApps = true;
+
+ postFixup = ''
+ wrapQtApp $out/bin/gz
+ '';
# makeWrapperArgs = [
# "\${qtWrapperArgs[@]}" Note that With this change, it is still not running, but I get the same error that you report in your
I can get a bit further when I
Then, I'm getting different errors depending on whether I'm on NixOS stable or unstable. With stable, I get:
(and preloading also With unstable:
As can be seen, the error is reported at I think I'd need to look at Qt source code what the error |
@wentasah thanks for your work. I have managed to get it working 👍 , which means that the gui is running as intended. I had to add , |
@wentasah @lopsided98 I have managed to get gz-harmonic working. See my gazebo overlay repo. Some small adjustments are still needed. For example I had to set a special variable |
With #422 it is possible to build the gz-packages for jazzy and rolling, because the new gazebo and all its Ignition dependencies are packaged as ROS-packages. But then there is still a problem with the |
The text was updated successfully, but these errors were encountered: