building orocos-ocl-1.10.x statically

Hello,

This is about orocos 1.10 (It's amazing how well it works ;)

For many reasons, we would like to have a single static binary that we
can drop onto an embedded board and execute.

It was pretty easy to build orocos-rtt-1.10.4 statically, since there
was an option to do so after doing ccmake -i . However, there seems to
be no straightforward way to do so for orocos-ocl-1.10.2. We need the
taskbrowser, so we are stuck at this point.

Any ideas?

/Sagar

building orocos-ocl-1.10.x statically

On Wednesday 20 April 2011 15:31:08 Sagar Behere wrote:
> Hello,
>
> This is about orocos 1.10 (It's amazing how well it works ;)
>
> For many reasons, we would like to have a single static binary that we
> can drop onto an embedded board and execute.
>
> It was pretty easy to build orocos-rtt-1.10.4 statically, since there
> was an option to do so after doing ccmake -i . However, there seems to
> be no straightforward way to do so for orocos-ocl-1.10.2. We need the
> taskbrowser, so we are stuck at this point.
>
> Any ideas?

The easiest hack is to grep for the word 'SHARED' in the ocl directory and remove it from all cmake related files. This will cause all libraries to be built statically. I never tested this though.

Peter