Package Details: gz-gui7 7.2.2-3

Git Clone URL: https://aur.archlinux.org/gz-gui7.git (read-only, click to copy)
Package Base: gz-gui7
Description: Graphical interfaces for robotics applications
Upstream URL: https://github.com/gazebosim/gz-gui
Licenses: Apache-2.0
Provides: gz-gui
Submitter: oysstu
Maintainer: oysstu
Last Packager: oysstu
Votes: 0
Popularity: 0.000000
First Submitted: 2023-10-04 08:51 (UTC)
Last Updated: 2025-07-09 09:06 (UTC)

Dependencies (14)

Required by (9)

Sources (2)

Pinned Comments

oysstu commented on 2025-07-10 11:20 (UTC)

Gazebo Garden is end of life as of November 2024. I will continue to accept patches to fix build errors, but will focus my efforts on the releases supported by upstream developers.

https://gazebosim.org/docs/latest/releases/

Latest Comments

oysstu commented on 2025-07-10 11:20 (UTC)

Gazebo Garden is end of life as of November 2024. I will continue to accept patches to fix build errors, but will focus my efforts on the releases supported by upstream developers.

https://gazebosim.org/docs/latest/releases/

saitewasreset commented on 2025-07-07 11:47 (UTC)

When building with newer versions of protobuf, you may encounter errors like:

error: cannot convert ‘absl::lts_2
0250512::string_view’ {aka ‘std::basic_string_view<char>’} to ‘const std::string&’ {aka ‘const std::__cxx11::basic_string<char>&’}               
  255 |       this->AddField(msgItem, msgField->name(), messageType->name());                                                                    
      |                               ~~~~~~~~~~~~~~^~                                                                                           
      |                                             |                                                                                            
      |                                             absl::lts_20250512::string_view {aka std::basic_string_view<char>}                           

This occurs due to: The return type change of certain protobuf methods from std::string to absl::string_view/std::string_view

I've created a patch to resolve the build issues.

Additionally, gz-gui7.tag.xml and libGrid3D.so contain reference to $srcdir.

To apply the patch(download manually first) and remove the reference to $srcdir:

--- PKGBUILD.orig       2025-07-07 19:43:33.266151702 +0800
+++ PKGBUILD.new    2025-07-07 19:39:48.024016547 +0800
@@ -28,8 +28,20 @@
   'gz-cmake=3'
   )
 provides=("${_pkgbase}=${_pkgmaj}")
-source=("https://github.com/gazebosim/${_pkgbase}/archive/${pkgname}_${pkgver}.tar.gz")
-sha256sums=('26b5c502977cf87f13e86bc504a72b1a8d810d4100c2878c76f7a0994ea26617')
+source=(
+  "https://github.com/gazebosim/${_pkgbase}/archive/${pkgname}_${pkgver}.tar.gz"
+  "fix_protobuf_build.patch"
+)
+sha256sums=(
+  '26b5c502977cf87f13e86bc504a72b1a8d810d4100c2878c76f7a0994ea26617'
+  '89fb889259e78136dfa83a894937361c5bb0b28722c8251594c61f59fd40aa2a'
+)
+
+prepare() {
+  cd "${srcdir}/${_pkgbase}-${pkgname}_${pkgver}"
+
+  patch -Np1 -i "../fix_protobuf_build.patch"
+}

 build() {
   cmake -B build -S "${_pkgbase}-${pkgname}_${pkgver}" \
@@ -42,4 +54,10 @@

 package() {
   DESTDIR="$pkgdir" cmake --install build
+
+  sed -i "s|$srcdir/${_pkgbase}-${pkgname}_${pkgver}/|/usr/|g" "${pkgdir}/usr/share/gz/gz-gui7/gz-gui7.tag.xml"
+
+  patchelf --remove-rpath "${pkgdir}/usr/lib/gz-gui-7/plugins/libGrid3D.so"
+
+  patchelf --set-rpath "/usr/lib" "${pkgdir}/usr/lib/gz-gui-7/plugins/libGrid3D.so"
 }