How to create Visual Studio project for robwork and robwork studio using cmake

27 views
Skip to first unread message

Martin Chrstiansen

unread,
Nov 16, 2009, 4:17:17 PM11/16/09
to RobWork
I have been trying to create my own Visual studio project for robwork
and robworkstudio using Cmake.
But Cmake gives me an error and tells me it can't find boost_thread.

My first assumption was that cmake was the problem, but after asking a
couple of times on their mailing list.
http://www.cmake.org/pipermail/cmake/2009-November/033239.html
I concluded that the problem was in the robwork cmake files, because
I could create other projects using cmake that had the same demands.

The error cmake returns is created by:

- C:\local\workspace\RobWork\build\depends.cmake
-in line FIND_PACKAGE(Boost COMPONENTS thread REQUIRED)

It can find boost but not the boost_thread library.

I have been trying with the RobWork-0.4.0-VS2005-Installer_0.1.0.exe
and downloading the source version and compiling boost and xerces by
myself. The problem is the same for both senarios.

My setup is:
Windows Xp
Visual Studio 2008 (and Visual Studio 2005)
cmake 2.6
Qt 2009.04(build for msvs-8 and msvs-9)

To create the robwork project i run the following commands using the
console:
- cd c:\lokal\workspace\RobWork\build\release
- cmake -G "Visual Studio 9 2008" -DCMAKE_BUILD_TYPE=Release ../..

Is my cmake command wrong or what is the problem???

lpell...@gmail.com

unread,
Nov 17, 2009, 2:27:43 AM11/17/09
to rob...@googlegroups.com
Hi
I think you problem might be the following:
In the RobWork-0.4.0-VS2005 installer we have included precompiled boost libraries for "Visual Studio 8 2005". When asking CMake to build for Visual Studio 9 2008 it searches for boost libraries with a vc90 extension rather than vc80, which is included. To get it up and running you will have to build boost for "Visual Studio 9 2008".

There should be plenty of tutorials on how to build boost on the internet.

Good luck
- Lars-Peter 

Martin Chrstiansen

unread,
Nov 17, 2009, 4:18:29 AM11/17/09
to RobWork
Hi

I compile boost for both Visual studio 2005 and 2008,
(see: http://www.cmake.org/pipermail/cmake/2009-November/033239.html
(I follow the last guide))
the same goes for xerces 2.8.
The problem with boost_thread is still the same, if I ask Cmake to
create a robwork project for visual studio 2005.

I stille think the problem is a definition in one of the cmake files
for RobWork. But I can't find the problem...

Regards

Martin

On 17 Nov., 08:27, lpelleki...@gmail.com wrote:
> Hi
> I think you problem might be the following:
> In the RobWork-0.4.0-VS2005 installer we have included precompiled boost
> libraries for "Visual Studio 8 2005". When asking CMake to build for Visual
> Studio 9 2008 it searches for boost libraries with a vc90 extension rather
> than vc80, which is included. To get it up and running you will have to
> build boost for "Visual Studio 9 2008".
>
> There should be plenty of tutorials on how to build boost on the internet.
>
> Good luck
> - Lars-Peter
>
> On Mon, Nov 16, 2009 at 10:17 PM, Martin Chrstiansen <
>

Jimmy Jorgensen

unread,
Nov 17, 2009, 5:10:35 AM11/17/09
to rob...@googlegroups.com
Hi Martin,

Cmake will try and search for boost libraries using the Bosst_ROOT
variable. Could you try print that from your setup:

Message(${Boost_ROOT})

And perhaps also

Message(${Boost_INCLUDE_DIRS})
Message(${Boost_LIBRARY_DIRS})
Message(${Boost_LIBRARIES})

And a screenshot of the boostdir that you expect your libraries to bee in
would also be nice.

/Jimmy

Martin Chrstiansen

unread,
Nov 17, 2009, 6:30:27 AM11/17/09
to RobWork
Jimmy... I will post a message tomorrow, since I am compiling on my
home computer and I plan to work late on SDU tonight.

/Martin
> > > > Is my cmake command wrong or what is the problem???- Skjul tekst i anførselstegn -
>
> - Vis tekst i anførselstegn -
Reply all
Reply to author
Forward
0 new messages