CoppeliaRobotics / simBubble

CoppeliaSim plugin for Bubble Rob
Other
4 stars 2 forks source link

Plugin compiles, but doesn't load in CoppeliaSim #2

Closed hgbuzhidao closed 4 years ago

hgbuzhidao commented 4 years ago

I tried to compile the plugin of simExtBubbleRob, and put it in the home directory of CoppeliaSim. But CoppeliaSim even doesn't find the plugin BubbleRob. I checked the compile output, maybe there is one problem may result it:

../simExtBubbleRob/simExtBubbleRob.cpp: In function ‘unsigned char simStart(void, int)’: ../simExtBubbleRob/simExtBubbleRob.cpp:215:11: warning: ignoring return value of ‘char getcwd(char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] getcwd(curDirAndFile, sizeof(curDirAndFile));

I don't modify the code, and can't figure out the problem.

hgbuzhidao commented 4 years ago

This is my makefile Makefile.zip

hgbuzhidao commented 4 years ago

I have figured out the problem. The one of the '.pro' file is set as 'CONFIG += shared', and the peoject produced '.so .so.1 .so.1.0 .so.1.0.0'. I just copy the '.so' to the directory and it doesn't work. Then I find that the '.so.1.0.0' is the true plugin, then I change the name as '.so' and it works. I change the set 'CONFIG += shared' as 'CONFIG += plugin', it produce one '.so' file.