From ros-users-bounces@code.ros.org  Thu Mar 10 17:09:09 2011
Return-Path: <ros-users-bounces@code.ros.org>
X-Original-To: www-data@code.ros.org
Delivered-To: www-data@code.ros.org
Received: from pub5.willowgarage.com (localhost [127.0.0.1])
	by pub5.willowgarage.com (Postfix) with ESMTP id 6314A2EC689;
	Thu, 10 Mar 2011 17:09:09 -0800 (PST)
X-Original-To: ros-users@code.ros.org
Delivered-To: ros-users@code.ros.org
Received: from sh5node1.mel.hosting-services.net.au
	(sh5node1.mel.hosting-services.net.au [112.140.176.160])
	by pub5.willowgarage.com (Postfix) with ESMTPS id 03DBA25C2A5
	for <ros-users@code.ros.org>; Thu, 10 Mar 2011 17:09:08 -0800 (PST)
Received: from c58-111-130-179.artrmn3.nsw.optusnet.com.au ([58.111.130.179]
	helo=[192.168.1.8])
	by sh5node1.mel.hosting-services.net.au with esmtpsa
	(SSLv3:AES256-SHA:256) (Exim 4.69)
	(envelope-from <daver_ml@gemarex.com.au>) id 1Pxqqm-0000Fc-Rg
	for ros-users@code.ros.org; Fri, 11 Mar 2011 12:09:05 +1100
From: David Rajaratnam <daver_ml@gemarex.com.au>
To: ros-users@code.ros.org
Date: Fri, 11 Mar 2011 12:07:59 +1100
Message-ID: <1299805679.6066.52.camel@elvis>
Mime-Version: 1.0
X-Mailer: Evolution 2.30.3 
X-AntiAbuse: This header was added to track abuse,
	please include it with any abuse report
X-AntiAbuse: Primary Hostname - sh5node1.mel.hosting-services.net.au
X-AntiAbuse: Original Domain - code.ros.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - gemarex.com.au
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Subject: Re: [ros-users] Progress in rviz on OSX
X-BeenThere: ros-users@code.ros.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: User discussions <ros-users@code.ros.org>
List-Id: User discussions <ros-users.code.ros.org>
List-Unsubscribe: <https://code.ros.org/mailman/listinfo/ros-users>,
	<mailto:ros-users-request@code.ros.org?subject=unsubscribe>
List-Archive: </lurker/list/ros-users.html>
List-Post: <mailto:ros-users@code.ros.org>
List-Help: <mailto:ros-users-request@code.ros.org?subject=help>
List-Subscribe: <https://code.ros.org/mailman/listinfo/ros-users>,
	<mailto:ros-users-request@code.ros.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: ros-users-bounces@code.ros.org
Errors-To: ros-users-bounces@code.ros.org

Hi,

I've just joined the mailing list today and was searching through the
archives and noticed this thread on getting rviz to work under OSX
(running X and not Carbon or Cocoa)

In case others are interested I've managed to get it working, although
more by luck than anything else. Adminttedly, I'm new to ROS so haven't
actually done anything useful under rviz, but I've definitely gotten
past the splash screen and onto the main rviz window.

Anyway, I thought I'd share my experience in case it might help someone
else.

I've installed/uninstalled/re-installed various macports so many times
that I'm not exactly sure what exactly got things working. However here
are some of the things I noted down:

I found the following discussions useful. Although some of it was out of
date, and I ended up installing and the removing the prepackaged
OgreSDK.

http://ros-users.122217.n3.nabble.com/rviz-on-snow-leopard-td817095.html

http://ros-users.122217.n3.nabble.com/ogre-tools-broken-on-CTurtle-Snow-leopard-td1443501.html

I installed the latest Nvidia CG toolkit from the nvidia webpage:

http://developer.nvidia.com/page/cg_main.html


As someone else noted in this thread I had to change #ifdef __WXMAC__ to
#ifdef __APPLE__ (actually I just deleted the necessary bits - since by
that stage the frustration was getting to me). 

What might be important is that during my initial attempts to compile
rviz, it compiled ok without these changes (although it did segfault at
the splash screen). It was only after removing the old OgreSDK and
removing/re-installing various macport packages that it actually failed
to compile and I needed to change the code. And then the only change I
needed to make to get things to compile was the bit that was looking for
'sigtimedwait' instead of 'sigwait' (around line 284 of
rviz/visualizer_app.cpp). The fact that it previous compiled must mean
that something somewhere was incorrectly defining __WXMAC__. I wonder if
whatever caused that is still lurking in your attempts to compile and
that is why you are still getting the segfaults?

One thing that may or may not be relevant. I'm running 32-bit Snow
Leopard (sadly I'm still using a first generation macbook). I don't know
what would be different when compiling on 64 bit Mac OSX.

One question. When I initially ran rviz I was getting a missing library
error for libassimp.1.dylib. So I had to set:

DYLD_LIBRARY_PATH=<my path to dimondback>/robot_model/assimp/lib/ 

Any thoughts on why its not finding this one library?

Anyway thanks and good luck,
Dave






_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users

