Package Details: ros-indigo-rviz 1.11.19-1

Git Clone URL: https://aur.archlinux.org/ros-indigo-rviz.git (read-only)
Package Base: ros-indigo-rviz
Description: ROS - 3D visualization tool for ROS.
Upstream URL: http://ros.org/wiki/rviz
Licenses: BSD, Creative Commons
Submitter: bchretien
Maintainer: fl.duriez
Last Packager: fl.duriez
Votes: 1
Popularity: 0.000000
First Submitted: 2014-06-07 16:49
Last Updated: 2019-02-14 18:12

Dependencies (63)

Sources (2)

Latest Comments

1 2 3 Next › Last »

jerry73204 commented on 2018-11-04 18:14

For those who want to build with ogre 1.9, this is the PKGBUILD and patch.

[PKGBUILD]

# Script generated with import_catkin_packages.py
# For more information: https://github.com/bchretien/arch-ros-stacks
pkgdesc="ROS - 3D visualization tool for ROS."
url='http://ros.org/wiki/rviz'

pkgname='ros-indigo-rviz'
pkgver='1.11.19'
_pkgver_patch=0
arch=('any')
pkgrel=1
license=('BSD, Creative Commons')

ros_makedepends=(ros-indigo-geometry-msgs
  ros-indigo-python-qt-binding
  ros-indigo-rospy
  ros-indigo-nav-msgs
  ros-indigo-visualization-msgs
  ros-indigo-interactive-markers
  ros-indigo-roscpp
  ros-indigo-std-msgs
  ros-indigo-map-msgs
  ros-indigo-rosconsole
  ros-indigo-laser-geometry
  ros-indigo-cmake-modules
  ros-indigo-tf
  ros-indigo-urdf
  ros-indigo-image-geometry
  ros-indigo-rosbag
  ros-indigo-sensor-msgs
  ros-indigo-std-srvs
  ros-indigo-pluginlib
  ros-indigo-resource-retriever
  ros-indigo-catkin
  ros-indigo-image-transport
  ros-indigo-roslib
  ros-indigo-message-filters)
makedepends=('cmake' 'ros-build-tools'
  ${ros_makedepends[@]}
  qt4
  ogre-1.9
  assimp
  eigen3
  tinyxml
  mesa
  yaml-cpp)

ros_depends=(ros-indigo-geometry-msgs
  ros-indigo-python-qt-binding
  ros-indigo-rospy
  ros-indigo-nav-msgs
  ros-indigo-visualization-msgs
  ros-indigo-interactive-markers
  ros-indigo-roscpp
  ros-indigo-std-msgs
  ros-indigo-map-msgs
  ros-indigo-rosconsole
  ros-indigo-laser-geometry
  ros-indigo-media-export
  ros-indigo-tf
  ros-indigo-urdf
  ros-indigo-image-geometry
  ros-indigo-rosbag
  ros-indigo-sensor-msgs
  ros-indigo-std-srvs
  ros-indigo-pluginlib
  ros-indigo-resource-retriever
  ros-indigo-image-transport
  ros-indigo-roslib
  ros-indigo-message-filters)
depends=(${ros_depends[@]}
  qt4
  ogre-1.9
  assimp
  eigen3
  tinyxml
  mesa
  yaml-cpp)

# Git version (e.g. for debugging)
# _tag=release/indigo/rviz/${pkgver}-${_pkgver_patch}
# _dir=${pkgname}
# source=("${_dir}"::"git+https://github.com/ros-gbp/rviz-release.git"#tag=${_tag})
# sha256sums=('SKIP')

# Tarball version (faster download)
_dir="rviz-release-release-indigo-rviz-${pkgver}-${_pkgver_patch}"
source=(
  "${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/rviz-release/archive/release/indigo/rviz/${pkgver}-${_pkgver_patch}.tar.gz"
  'use-ogre-1.9.patch'
)
sha256sums=('74fdb4f4806aa68afa533c83014315e5790f2279d0b256c7d68164e4ff0de50f'
            'fa3dbb6e00c70afb65e5a5bda131975039727034d3d2e04b80b0e620b6286907')

prepare() {
  # Apply patch
  cd "${srcdir}/${_dir}"
  patch -p1 -i "${srcdir}/use-ogre-1.9.patch"
}

build() {
  # Use ROS environment variables
  source /usr/share/ros-build-tools/clear-ros-env.sh
  [ -f /opt/ros/indigo/setup.bash ] && source /opt/ros/indigo/setup.bash

  # Create build directory
  [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
  cd ${srcdir}/build

  # Fix Python2/Python3 conflicts
  /usr/share/ros-build-tools/fix-python-scripts.sh -v 2 ${srcdir}/${_dir}

  # Build project
  cmake ${srcdir}/${_dir} \
        -DCMAKE_BUILD_TYPE=Release \
        -DUseQt5=ON \
        -DCATKIN_BUILD_BINARY_PACKAGE=ON \
        -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo \
        -DPYTHON_EXECUTABLE=/usr/bin/python2 \
        -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
        -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
        -DPYTHON_BASENAME=-python2.7 \
        -DSETUPTOOLS_DEB_LAYOUT=OFF
  make
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="${pkgdir}/" install
}

[use-ogre-1.9.patch]

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d2da7d..fce4e61 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,15 +68,24 @@ message(STATUS OGRE_PLUGIN_PATH=${OGRE_PLUGIN_PATH})
 # or when 2 versions of Ogre are installed.  Using absolute paths ensures that
 # components that link against Ogre (rviz and any packages depending on rviz)
 # all find the same Ogre shared library.
+
+unset(OGRE_OV_LIBRARIES_ABS CACHE)
+
 if(NOT DEFINED OGRE_OV_LIBRARIES_ABS)
   unset(OGRE_OV_LIBRARIES_ABS_TMP)
   foreach(_lib ${OGRE_OV_LIBRARIES})
+    if(NOT _lib STREQUAL "OgreMain" AND NOT _lib STREQUAL "OgreOverlay")
+      continue()
+    endif(NOT _lib STREQUAL "OgreMain" AND NOT _lib STREQUAL "OgreOverlay")
+
     set(OGRE_OV_LIB_TAG "OGRE_OV_RVIZ_LIB_${_lib}")

+    unset(${OGRE_OV_LIB_TAG} CACHE)
     find_library(${OGRE_OV_LIB_TAG}
             NAMES ${_lib}
-            HINTS ${OGRE_OV_LIBRARY_DIRS}
-            PATHS ${OGRE_OV_LIBRARY_DIRS}
+            PATHS "/opt/OGRE-1.9/lib"
+            NO_DEFAULT_PATH
+            REQUIRED
     )

     set(OGRE_OV_LIBRARIES_ABS_TMP ${OGRE_OV_LIBRARIES_ABS_TMP} ${${OGRE_OV_LIB_TAG}})
@@ -86,6 +95,8 @@ if(NOT DEFINED OGRE_OV_LIBRARIES_ABS)
         CACHE FILEPATH "Pathname of library ${_lib}")
 endif(NOT DEFINED OGRE_OV_LIBRARIES_ABS)

+set(OGRE_OV_INCLUDE_DIRS "/opt/OGRE-1.9/include/OGRE" "/opt/OGRE-1.9/include/OGRE/Overlay")
+
 if(APPLE)
   FIND_LIBRARY(Cocoa_LIBRARIES Cocoa)
   set(rviz_ADDITIONAL_LIBRARIES ${Cocoa_LIBRARIES})

yiuin commented on 2016-10-29 21:54

I couldn't get this to compile with Qt4, but adding "-DUseQt5=ON" worked

hauptmech commented on 2016-06-25 20:52

eigen fixed. Build works.

hauptmech commented on 2016-06-25 06:40

Build fails because of a bad Eigen3Config.cmake recently introduced in the eigen package. Filed a bug report with that package. Fixing the file /usr/lib/cmake/Eigen3Config.cmake by hand is probably the easiest way to build in the interim.

bchretien commented on 2016-06-12 18:35

@sebastien: on a side note, Qt5 support is on the way (available since the 1.12.0 release, which has not landed for Indigo yet).

sebastien commented on 2016-06-12 11:41

@Alad
I managed to get it to build with the following symlink
ln -s /usr/bin/qmake-qt4 /usr/local/bin/qmake

alvearian commented on 2016-05-21 19:15

Doesn't build with gcc 6.1.1, with error:
src/rviz/default_plugin/effort_display.h:45:36: error: unable to find string literal operator ‘operator""fmt’

This patch fixes the issue: http://pastebin.com/XkHjNSkX

Alad commented on 2016-05-19 13:07

Now it doesn't even get past configure:

https://ptpb.pw/8m8p

Alad commented on 2016-04-21 13:04

Doesn't build: https://ptpb.pw/foPx

Anonymous comment on 2015-04-01 01:28

Turns I had pyqt4-10-common installed, which did not provide the .sip file.