orocos-kdl on win32 (MSVC)

Hi,

we have been using orocos-rtt, -ocl and -kdl for some time with gnulinux and rtai so far, but now also want to have a Windows version of our project. rtt and ocl (both version 1.12) have been no major problem, but I'm not getting kdl to work.

Compiling kdl actually is no problem, and there is also a orocos-kdl.dll binary generated. However, the classes in KDL are not marked with RTT_EXPORT (or RTT_API) and therefore, the dll file does not export anything (and no .lib is generated either).

Am I missing out something, or is kdl simply not yet completely ported to win32-native?

Yours sincerely,

Michael

Ruben Smits's picture

orocos-kdl on win32 (MSVC)

On Thursday 11 November 2010 16:38:06 Michael Vistein wrote:
> Hi,
>
> we have been using orocos-rtt, -ocl and -kdl for some time with gnulinux
> and rtai so far, but now also want to have a Windows version of our
> project. rtt and ocl (both version 1.12) have been no major problem, but
> I'm not getting kdl to work.
>
> Compiling kdl actually is no problem, and there is also a orocos-kdl.dll
> binary generated. However, the classes in KDL are not marked with
> RTT_EXPORT (or RTT_API) and therefore, the dll file does not export
> anything (and no .lib is generated either).

I'll add the necessary decoration to the kdl classes.

---
Dr. Ir. Ruben Smits
Mechatronics & Robotics Research Group
Department of Mechanical Engineering
Katholieke Universiteit Leuven
Ruben

> Am I missing out something, or is kdl simply not yet completely ported to
> win32-native?
>
> Yours sincerely,
>
> Michael

orocos-kdl on win32 (MSVC)

Hi,

> Compiling kdl actually is no problem, and there is also a orocos-kdl.dll
> binary generated. However, the classes in KDL are not marked with
> RTT_EXPORT (or RTT_API) and therefore, the dll file does not export
> anything (and no .lib is generated either).

orocos-kdl works fine when compiled as static library (changed in CMakeLists.txt). So I guess the problem in standard configuration is only the missing DLL export declaration.

Michael