Odp: Problem with stdint

Hi Johannes,

Your update regarding the source file was ok, the problem was the cmake file. I had different cmake, that follows ros standards thus when building with your cmake, deployer has load wrong build. So even I updated code, deployer load my previous build that crashes it.

Just in case I have attached my cmake.

Best,
Mariusz

Dnia Poniedzia?ek, 27 Lipca 2015 12:10 Johannes Meyer napisa?(a)
> Hi Mariusz,
> I could reproduce this issue with a similar setup. It looks like the last commit (https://github.com/orocos-toolchain/stdint_typekit/commit/b6d48396c7e327...) is responsible for the segfault, as the type name int32 is not registered as an alias of int anymore and ti->type("int32") in StdintTypekit.cpp:146 returns a zero pointer.
> I created a pull request here: https://github.com/orocos-toolchain/stdint_typekit/pull/1
> Even if not related to the reported problem it should be noted that the stdint_typekit package is neither a rosbuild (missing Makefile) nor a catkin package (no package.xml). The pull request adds support for both by adding the two files. It should not influence pure cmake builds.
> Best,Johannes
>
>
> On Mon, Jul 27, 2015 at 10:39 AM, Mariusz Janiak <mariuszjaniak [..] ...> wrote:
> > Hi,
> >
> > I have a problem with stdint types in deployer. Natively OROCOS doesn&#39;t support these types, there are only registered aliases for uint32 and int32. I have found stdint typekit on OROCOS github (https://github.com/orocos-toolchain/stdint_typekit) but I have following problem, after typing import("stdint") in deployer, process crash witch message
> >
> > 12.187 [ Warning][TypekitRepository::Import] RTT type repository already knows type &#39;int32&#39; as type &#39;int&#39;. Aliasing type &#39;int&#39;
> > 12.187 [ Warning][TypekitRepository::Import] RTT type repository already knows type &#39;uint32&#39; as type &#39;uint&#39;. Aliasing type &#39;uint&#39;
> > Segmentation fault (core dumped)
> >
> > Has anyone met this problem before? My setup is following: Ubuntu 12.04, ROS Hydro, OROCOS 2.8 (from git) build with catkin.
> >
> > Best,
> > Mariusz
> >
> >
> > --
> > Orocos-Users mailing list
> > Orocos-Users [..] ...
> > http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
> >
>

AttachmentSize
CMakeLists.txt1.65 KB

Problem with stdint