Hi Deepak,

Back in July I did manage to compile the core ROS libraries to 32-bit on Snow Leopard, in c-turtle.

Not sure if this will work, but the following link points to the message from Josh Faust inside a previous thread where I was working through trying to compile everything 32bit.
https://code.ros.org/lurker/message/20100802.063847.70352d22.en.html

In general, it was just a matter of adding
    cmake_minimum_required(VERSION 2.4.6)
    set(ROS_COMPILE_FLAGS "${ROS_COMPILE_FLAGS} -arch i386")
    set(ROS_LINK_FLAGS "${ROS_LINK_FLAGS} -arch i386")
to my CMakeLists in my package and then did
     rosmake --pre-clean <package>

As Josh notes, rospack/rosstack are special: they're compiled before rosbuild uses rospack.  So I had to set compiler flags manually in the rospack CMakeLists.txt as you would normally for cmake.  However, that didn't completely work -- I found that my -arch i386 flag was not always propagated through, so I had to go in and manually edit several link.txt and build.make files under CMakeFiles directory in the rospack/rosstack directory.  However, once I got rospack/rosstack to compile 32bit, then rosmake --pre-clean made everything, including rosconsole.  (This was also after installing macport universal versions of log4cxx and boost -- but it sounds like you've already got that.)

Not sure if this helps, or whether things have changed.

-Clay

On Tue, Oct 5, 2010 at 5:47 PM, <DRamachandran@hra.com> wrote:

Ok well this is the status so far then -

 

1. OGRE can only build in 32-bit mode because of Carbon dependencies.

2.  The ROS libraries (librosconsole.dylib etc)  build in 64-bit mode.  As such these are incompatible.

 

Does anyone know if it's possible to re-build all of ROS in 32-bit mode? Is there a system-wide way to set CMAKE_OSX_ARCHITECTURES to "i386" and rebuild?

 

I've asked the OGRE people if building 64-bit OGRE binaries is possible but I'm guessing if it was easy it would already be available.

 

Until then, looks like we're stuck.  

 

~Deepak

 

 



Nicholas Butko <nbutko@ucsd.edu>
Sent by: ros-users-bounces@code.ros.org
10/05/2010 04:28 PMPlease respond toUser discussions

 To   User discussions <ros-users@code.ros.org>
 cc  
 bcc   Deepak Ramachandran/HRA/ASC/HONDA
 Subject   Re: [ros-users] ogre_tools broken on CTurtle/Snow leopard
 

Deepak, 

I only installed wx*, not OGRE. Sorry, I can't say if any of this will actually help for OGRE -- just that it might be able to help with some problems with wx* which you guys seemed to be encountering with the OGRE build. 

--Nick 


On Oct 5, 2010, at 4:22 PM, DRamachandran@hra.com wrote:

tip:  download wxWidgets-2.9 and make sure you configure it with --with_macosx_cocoa or whatever the option is exactly.

It will install in your /usr/local/bin. You might have to change the order of directories in your $PATH so that this directory is ahead of /opt/local/bin where macports' version is.


Question for Nick: Did you build x86_64 binaries for OGRE ? Going by your explanation that would be needed to make  everything work together.  The documentation for OGRE say 386 is needed, but apparently only because OIS uses Carbon

which we dont really care about I think.


~Deepak





Patrick Doyle <wpdster@gmail.com>
Sent by: ros-users-bounces@code.ros.org
10/05/2010 04:09 PMPlease respond toUser discussions

To   User discussions <ros-users@code.ros.org>
cc  
bcc   Deepak Ramachandran/HRA/ASC/HONDA
Subject   Re: [ros-users] ogre_tools broken on CTurtle/Snow leopard
 

On Tue, Oct 5, 2010 at 6:20 PM, Nicholas Butko <nbutko@ucsd.edu> wrote:
> Easier is to just go with the flow, and make everything 64-bit. This is why you would want to circumvent
> macports, and install wx* 2.9. You can do this through macports for wxWidgets

Well, I just tried it through macports for wxWidgets, and it didn't work:

$ sudo port install wxwidget-devel +universal
...
Error: Target org.macports.build returned: shell command failed
Log for wxWidgets-devel is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_wxWidgets-devel/main.log
Error: Status 1 encountered during processing.

Looking in the logfile, I see:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_wxWidgets-devel/work/wxWidgets-2.9.1/build/bk-make-pch
./.pch/wxprec_monodll/wx/wxprec.h.gch wx/wxprec.h /usr/bin/g++-4.2
-mmacosx-version-min=10.6 -I./.pch/wxprec_monodll -D__WXOSX_COCOA__
-DWXBUILDING      -I../src/regex  -DwxUSE_BASE=1 -DWXMAKINGDLL
-I../src/stc/scintilla/include -I../src/stc/scintilla/src -D__WX__
-DSCI_LEXER -DLINK_LEXERS -dynamic -fPIC -DPIC -Wall -Wundef
-Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual
-Wno-deprecated-declarations -D_FILE_OFFSET_BITS=64
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_wxWidgets-devel/work/wxWidgets-2.9.1/build/lib/wx/include/osx_cocoa-unicode-2.9
-I../include -I/opt/local/include -I/opt/local/include -DWX_PRECOMP
-I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -O2 -arch
x86_64 -arch i386 -fno-common -fvisibility=hidden
-fvisibility-inlines-hidden
:info:build g++-4.2: -E, -S, -save-temps and -M options are not
allowed with multiple -arch flags

So I think I'm going to try downloading and installing wxWidgets by
hand, as 64-bit now.  Any tips would be welcome.  In lieu of tips,
I'll just muddle through.

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


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




--
Clayton T. Morrison
Assistant Research Professor
University of Arizona
web: http://cs.arizona.edu/~clayton/
email: clayton@cs.arizona.edu
office: 520-621-6609