Hot to compile plugin

Typically: "How do I... ", "How can I... " questions
Post Reply
neostek
Posts: 21
Joined: 15 Feb 2013, 10:26

Hot to compile plugin

Post by neostek »

Hello,

I got the new version of 'import URDF' module (as plugin example) but I faced some problem in how to generate the .so to put in the main folder. I found a solution but I'm not sure it is the direct one. Then I would like to know the 'official' procedure. In that way, other users can also use this as tutorial.
The things that I know are needed are (for v-rep v3.0.1):

1) Qt libraries 4.8.1
2) gcc

Then I open qtcreator (file .pro) and then I build the code (that was copied in the programming folder). It creates some files and I copied the .so (not the linking file but the core one) to the main folder of V-rep. Is that correct?

Thanks in advance,

Neostek

coppelia
Site Admin
Posts: 7928
Joined: 14 Dec 2012, 00:25

Re: Hot to compile plugin

Post by coppelia »

Hi,

That sounds correct.
The URDF plugin contains a Qt dialog, for that reason you will have to compile it with Qt (best and easiest is if you install Qt creator with all the libraries of the Qt SDK. The version of the library is important, it should be the same as the one V-REP is using (otherwise you might experience compatibility problems with Qt).
The plugin compiles to libv_repExtUrdf.so on Linux. Just take that file and copy it into the main V-REP folder. Restart V-REP. The console should mention that the URDF plugin was correctly loaded.

Cheers

Post Reply