Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Lauching RoboDK from API

#1
Hi,
I have a small problem, I can't launch RoboDK on my Ubuntu 20.04. If I let the c++ API start it, it just crash with the error:



Code:
error while loading shared libraries: libQt5WebSockets.so.5: cannot open shared object file: No such file or directory


So I added to my .bashrc the lines from "~/RoboDK/RoboDK-Start.sh" and the software started, but crash after less than 1 second with a segmentation fault:

Code:
./RoboDK  
No running instances of RoboDK detected
Starting  RoboDK  v 5.0.2 . 18542  ...
OS:  LIN64
Date build:  Aug 16 2020
Main process ID:  167646
Thread ID:  0x7fcb5ae97bc0
Loading settings...
Failed to acces global parameters file
Setting up default settings...
Default settings set
Failed to acces global parameters file
Setting up default settings...
Default settings set
Settings loaded
Statusbar:  "Language set to English"
Updating recent files menu...
Created language menu
Setting slider style...
Done
Setting up graphics...
Setting up main window...
Starting main window...
LC start...
LC message:  LC device not found
Dongle not found or cannot read
LC start...
LC message:  LC device not found
Dongle not found or cannot read
Loading plugin:  "CollisionFreePlanner"
"libAppLoader.so"
"libCollisionFreePlanner.so"
Loading plugin file:  "libCollisionFreePlanner.so"
Loading plugin  "CollisionFreePlanner"
Using settings:  ""
Setting up the status bar
Inserting menu at the end of the utilities menu
Setting up the menu bar
"libOPC-UA.so"
"libPluginExample.so"
"libPluginGravity.so"
"libPluginPalletizing.so"
"libPluginRealTime.so"
"libRobotPilot.so"
List of LOADED plugins:
    "CollisionFreePlanner"
Done list of plugins
Statusbar:  "Loaded 1 plugins"
Reading preferred layout settings...
Done
[1]    167646 segmentation fault (core dumped)  ./RoboDK


And at this point I don't know what to do.. I want to use RoboDK in an embedded way but I can't even manage to turn it on on a fresh Ubuntu 20.04 install

After further test, it seems that launching from the computer directly works, launching over ssh or with an headless computer cannot works.
Is there a way to launch RoboDK without the UI ? or does this require another version of RoboDK ?

And about the add to bashrc I had to make, I'm not sure this is the "clean" way to do it, how am I suppose to do it then ?
#2
You can start RoboDK without the User interface or the OpenGL window by adding the -NOUI command line option.

More information here:
https://robodk.com/doc/en/RoboDK-API.html#CommandLine
  




Users browsing this thread:
1 Guest(s)