Plugins - 64 bit linux

18 views
Skip to first unread message

Grzegorz Zieba

unread,
Jan 10, 2010, 5:35:28 PM1/10/10
to RobWork
When building Rob01Ex1 by make from RobWorkStudio/build/release, and
this plugin added to cmakelists, on 64bit Ubuntu Karmic, following
error occurs:

[ 93%] Built target RobWorkStudio
Linking CXX shared module ../../../../../libs/Release/libRob01Ex1.so
/usr/bin/ld: ../../../../../libs/Release/librwstudio.a
(RobWorkStudio.cpp.o): relocation R_X86_64_32 against `.bss' can not
be used when making a shared object; recompile with -fPIC
../../../../../libs/Release/librwstudio.a: could not read symbols: Bad
value
collect2: ld returned 1 exit status
make[2]: *** [../../libs/Release/libRob01Ex1.so] Error 1
make[1]: *** [src/plugins/Rob01ex1_2009/CMakeFiles/Rob01Ex1.dir/all]
Error 2
make: *** [all] Error 2

Is there a way to 'recompile with -fPIC, and where to set this flag?
When trying to compile the plugin within its folder, problems with:
QT4_WRAP_CPP(MocSrcFiles ${MocHeaderFiles})
make it impossible.

Anders Bøgild

unread,
Jan 11, 2010, 10:49:11 AM1/11/10
to rob...@googlegroups.com
Hi Grzegorz

I have zero experience with running RW on 64bit-{linux,windows}, sorry.
To add  the PIC compiler flag you can probably insert the folowing into your project CMakeLists.txt file:

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

Best regards
  Anders B

2010/1/10 Grzegorz Zieba <grz...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "RobWork" group.
To post to this group, send email to rob...@googlegroups.com.
To unsubscribe from this group, send email to robwork+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robwork?hl=en.




Grzegorz Zieba

unread,
Jan 16, 2010, 6:34:53 AM1/16/10
to RobWork
It finally worked, but another question is:

Why the "planning" plugin is not visible in RW on Linux, and it is in
Windows build? It is build correctly, libraries are in place, all the
build files as well. How should it be added?

Jimmy Jorgensen

unread,
Jan 16, 2010, 9:15:10 AM1/16/10
to rob...@googlegroups.com

First make sure that rw_planning.a exists in libs/release

Next check main.cpp in the function "getPlugins" if the planner plugin gets
added

Check if the planning plugin actually is loaded but the icon is
missing/empty. (if this is the case then you should still be able to push
the button in the toolbar)

/jimmy

Grzegorz Zieba

unread,
Jan 16, 2010, 9:54:03 AM1/16/10
to RobWork
Library exists, and all the built files as well.
Adding in main.cpp was commented by default (in two places).
Works now, obviously.
Thanks

Jimmy Jorgensen

unread,
Jan 16, 2010, 10:46:02 AM1/16/10
to rob...@googlegroups.com
Yes, the planning plugin uses beta functionality which is probably why it
was commented out.

> -----Original Message-----
> From: rob...@googlegroups.com [mailto:rob...@googlegroups.com] On
> Behalf Of Grzegorz Zieba

Reply all
Reply to author
Forward
0 new messages