Problems running examples on cygwin.

Apologies for flooding the list with stupid questions :-) I'm a windows
developer, and my Unix/Cygwin knowledge is not that great.....

Anyway, got Orocos compiled under cygwin, and all but one of the tests
passed (which is better than what I should have expected according to the
docs).

I realise that some of the examples need OCL to be available, (which I
believe does not compile under cygwin presently). However I can't even get
Simple Task working.....

Here is the compiler output. Any pointers would be fantastic!!!

$ make
g++ -c -Wall -g `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config
orocos-ocl-gnulinux orocos-rtt-gnulinux --cflags` SimpleTask.cxx -o
simpletask.o
Package orocos-ocl-gnulinux was not found in the pkg-config search path.
Perhaps you should add the directory containing `orocos-ocl-gnulinux.pc' to
the PKG_CONFIG_PATH environment variable
No package 'orocos-ocl-gnulinux' found
In file included from /usr/local/include/rtt/DataSource.hpp:43,
from /usr/local/include/rtt/Attribute.hpp:42,
from /usr/local/include/rtt/AttributeRepository.hpp:44,
from /usr/local/include/rtt/TaskContext.hpp:42,
from SimpleTask.cxx:1:
/usr/local/include/rtt/rtt-config.h:12:2: #error "You _must_ define
OROCOS_TARGET to an installed target (for example: -DOROCOS_TARGET=gnulinux
)"
In file included from /usr/local/include/rtt/rtt-config.h:15,
from /usr/local/include/rtt/DataSource.hpp:43,
from /usr/local/include/rtt/Attribute.hpp:42,
from /usr/local/include/rtt/AttributeRepository.hpp:44,
from /usr/local/include/rtt/TaskContext.hpp:42,
from SimpleTask.cxx:1:
/usr/local/include/rtt/targets/rtt-target.h:11:30: OROCOS_TARGET: No such
file or directory
In file included from /usr/local/include/rtt/Attribute.hpp:42,
from /usr/local/include/rtt/AttributeRepository.hpp:44,
from /usr/local/include/rtt/TaskContext.hpp:42,
from SimpleTask.cxx:1:
/usr/local/include/rtt/DataSource.hpp:44:33: boost/call_traits.hpp: No such
file or directory
/usr/local/include/rtt/DataSource.hpp:45:33: boost/type_traits.hpp: No such
file or directory
In file included from /usr/local/include/rtt/DataSource.hpp:47,
from /usr/local/include/rtt/Attribute.hpp:42,
from /usr/local/include/rtt/AttributeRepository.hpp:44,
from /usr/local/include/rtt/TaskContext.hpp:42,
from SimpleTask.cxx:1:
/usr/local/include/rtt/DataSourceBase.hpp:43:35: boost/intrusive_ptr.hpp:
No such file or directory
In file included from /usr/local/include/rtt/DataSourceBase.hpp:46,
from /usr/local/include/rtt/DataSource.hpp:47,
from /usr/local/include/rtt/Attribute.hpp:42,
from /usr/local/include/rtt/AttributeRepository.hpp:44,
from /usr/local/include/rtt/TaskContext.hpp:42,
from SimpleTask.cxx:1:
/usr/local/include/rtt/os/oro_atomic.h:50:24: asm/atomic.h: No such file or
directory

The information in this e-mail and any attachments transmitted with it are provided in commercial confidence for the intended recipient(s). If you have received this e-mail in error, please notify the Postmaster by e-mail at postmaster [..] .... Any views or opinions expressed are solely those of the author and do not necessarily represent those of DEK.

For local company specific legal information for your country or region and any local contact information for DEK, please refer to:

http://www.dek.com/companyinfo/

This footnote confirms that this message has been checked for the presence of computer viruses and other 'malware' to the best of our knowledge when it left our systems. DEK is not responsible in any way for any malware that may be or become associated with this message. Recipients are strongly urged to use appropriate protection and requested to assure themselves that opening any attachments is safe.

Problems running examples on cygwin.

On Monday 02 February 2009 18:29:33 markgillespie [..] ... wrote:
> Apologies for flooding the list with stupid questions :-) I'm a windows
> developer, and my Unix/Cygwin knowledge is not that great.....
>
> Anyway, got Orocos compiled under cygwin, and all but one of the tests
> passed (which is better than what I should have expected according to the
> docs).
>
> I realise that some of the examples need OCL to be available, (which I
> believe does not compile under cygwin presently). However I can't even get
> Simple Task working.....
>
> Here is the compiler output. Any pointers would be fantastic!!!

We didn't anticipate broken installations :-) Just like the warning says:

> /usr/local/include/rtt/rtt-config.h:12:2: #error "You _must_ define
> OROCOS_TARGET to an installed target (for example: -DOROCOS_TARGET=gnulinux
> )"

Add -DOROCOS_TARGET=gnulinux (there is no cygwin target) to the OROFLAGS of
the Makefile. Normally, this flag is added by the pkg-config tool, but since it
gave you an error (not finding OCL), you got no flags at all.

Since even SimpleTask requires
#include <ocl/TaskBrowser.hpp>
You'd need to compile at least the OCL TaskBrowser for cygwin as well. It
depends on libreadline5-devel (or similar). The TaskBrowser should be fairly
portable to cygwin...

Note that this is all very experimental stuff, your contributions and comments
are very welcome, but please bear with us until we got it in a stable release.

Peter

Problems running examples on cygwin.

Some feedback on compiling with Cygwin.

I applied the patch, and after installing all the required libraries in
Cygwin, RTT and OCL compiled and worked.

The only things I had problems with, were the locations of the boost headers(cmake could not find them, I had to fix the path to be /usr/include/boost-1_33_1/, rather than just /usr/include/ ). I also had to turn off deployment and reporting, as they were using unix functionality not found in Cygwin ( MSG_WAITALL flag in the socket stuff, and a DT_DIR flag for reporting).