error building orocos toolchain on Win32

I've got a WinXP machine and I'm trying to install the Orocos toolchain on it. I'm building with MinGW. I've installed Boost 1.47 (from scratch using MinGW) and Xerces 3.1.1 (from scratch using MinGW). I'm now working on compiling RTT.

I've downloaded the orocos-toolchain-2.4.0-src.zip. I've got CMake finding Boost and Xerces. I've told CMake I'm building with MinGW and the OROCOS_TARGET is set to win32. I had to add "-march=i686" to my CFLAGS in order to get past an "undefined reference to __sync_val_compare_and_swap_4" error. But now I'm stuck again. I got an undefined reference error when linking liborocos-rtt-win32.dll. Build results here: http://pastebin.com/QymH8iQe

This has been a pretty painful process so far. Any help would be appreciated.

--
Dustin Gooding
NASA/JSC Robotics

error building orocos toolchain on Win32

Hi,

I had some trouble compiling RTT from the available .zip file as well (although using MSVC). There seems to exist some Windows-related bugs which I found already being fixed in the git repository, maybe you should try downloading the most recent version directly from git? One of the bugs I encountered was a swap of function parameters between the .hpp and .cxx files, leading to linker errors just like the one you posted.

Michael

From: orocos-users-bounces [..] ... [mailto:orocos-users-bounces [..] ...] On Behalf Of Gooding, Dustin R. (JSC-ER411)
Sent: Tuesday, August 16, 2011 9:50 PM
To: orocos-users [..] ...
Subject: [Orocos-users] error building orocos toolchain on Win32

I've got a WinXP machine and I'm trying to install the Orocos toolchain on it. I'm building with MinGW. I've installed Boost 1.47 (from scratch using MinGW) and Xerces 3.1.1 (from scratch using MinGW). I'm now working on compiling RTT.

I've downloaded the orocos-toolchain-2.4.0-src.zip. I've got CMake finding Boost and Xerces. I've told CMake I'm building with MinGW and the OROCOS_TARGET is set to win32. I had to add "-march=i686" to my CFLAGS in order to get past an "undefined reference to __sync_val_compare_and_swap_4" error. But now I'm stuck again. I got an undefined reference error when linking liborocos-rtt-win32.dll. Build results here: http://pastebin.com/QymH8iQe

This has been a pretty painful process so far. Any help would be appreciated.

--
Dustin Gooding
NASA/JSC Robotics

error building orocos toolchain on Win32

On Aug 17, 2011, at 3:12 AM, Michael Vistein wrote:

Hi,

I had some trouble compiling RTT from the available .zip file as well (although using MSVC). There seems to exist some Windows-related bugs which I found already being fixed in the git repository, maybe you should try downloading the most recent version directly from git? One of the bugs I encountered was a swap of function parameters between the .hpp and .cxx files, leading to linker errors just like the one you posted.

Michael

From: orocos-users-bounces [..] ...<mailto:orocos-users-bounces [..] ...> [mailto:orocos-users-bounces [..] ...]On Behalf Of Gooding, Dustin R. (JSC-ER411)
Sent: Tuesday, August 16, 2011 9:50 PM
To: orocos-users [..] ...<mailto:orocos-users [..] ...>
Subject: [Orocos-users] error building orocos toolchain on Win32

I've got a WinXP machine and I'm trying to install the Orocos toolchain on it. I'm building with MinGW. I've installed Boost 1.47 (from scratch using MinGW) and Xerces 3.1.1 (from scratch using MinGW). I'm now working on compiling RTT.

I've downloaded the orocos-toolchain-2.4.0-src.zip. I've got CMake finding Boost and Xerces. I've told CMake I'm building with MinGW and the OROCOS_TARGET is set to win32. I had to add "-march=i686" to my CFLAGS in order to get past an "undefined reference to __sync_val_compare_and_swap_4" error. But now I'm stuck again. I got an undefined reference error when linking liborocos-rtt-win32.dll. Build results here: http://pastebin.com/QymH8iQe

This has been a pretty painful process so far. Any help would be appreciated.

--
Dustin Gooding
NASA/JSC Robotics

Thanks Michael,

So after many a long hour of building the Git dependencies with MinGW, I finally checked out the latest orocos_toolchain. Building it as is still gave me an error, though:

/**
Linking CXX shared library liborocos-rtt-win32.dll
Creating library file: liborocos-rtt-win32.dll.a
[ 60%] Built target orocos-rtt-win32_dynamic
Scanning dependencies of target rtt-typekit-win32_plugin
[ 61%] Building CXX object rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/RealTimeTypekit.cpp.obj
[ 61%] Building CXX object rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/RealTimeTypekitConstructors.cpp.obj
[ 62%] Building CXX object rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/RealTimeTypekitGlobals.cpp.obj
[ 63%] Building CXX object rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/RealTimeTypekitOperators.cpp.obj
[ 63%] Building CXX object rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/RealTimeTypekitStdTypes.cpp.obj
[ 64%] Building CXX object rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/RealTimeTypekitTypes.cpp.obj
mingw32-make[2]: *** [rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/RealTimeTypekitTypes.cpp.obj] Error 1
mingw32-make[1]: *** [rtt/typekit/CMakeFiles/rtt-typekit-win32_plugin.dir/all] Error 2
mingw32-make: *** [all] Error 2
**/

Not sure what that means, but I disabled PLUGINS_ENABLE_TYPEKIT and tried again and the build finished. Onto OCL.

-dustin