ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How do you determine the architecture for release builds?

asked 2017-12-06 12:41:43 -0500

XavierArtache gravatar image

From my understanding, by default, the buildfarm builds releases for 32 bit, 64 bit, arm , amd, etc. I am trying to release a package which depends on a shared object library of which we have separate .so files for each architecture.

My question is, how can I check the architecture for the buildfarm using our CMakeLists file so that I know which library to link to? I have heard and found in practice that CMAKE_HOST_SYSTEM_PROCESSOR is unreliable.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-12-08 16:07:14 -0500

tfoote gravatar image

I don't find a standard way, there are some good options listed here: https://stackoverflow.com/questions/1...

I might try starting to use the CMAKE_SYSTEM_PROCESSOR and see if it's good enough on the target platforms. Then escalate to more complicated solutions.

edit flag offensive delete link more

Comments

Thanks -- this seems to be the right variable; not sure how we overlooked this! I hoped there might be an additional variable explicitly set by catkin or the buildfarm process, but it looks like this isn't the case. We'll test right away and mark the answer if it works.

MatthewTesch gravatar image MatthewTesch  ( 2017-12-08 16:38:02 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-12-06 12:41:43 -0500

Seen: 229 times

Last updated: Dec 08 '17