V-REP headless mode issue

Typically: "How do I... ", "How can I... " questions
Post Reply
anush
Posts: 9
Joined: 12 Dec 2016, 15:53

V-REP headless mode issue

Post by anush »

Hello,

I am trying to run V-REP in headless mode using 3.5 latest version:

Code: Select all

./vrep.sh -h -s5000 -q myscene.ttt
and I get the following:

Code: Select all

Plugin 'SurfaceReconstruction': loading...
Plugin 'SurfaceReconstruction': warning: replaced variable 'simSurfRec'
Plugin 'SurfaceReconstruction': load succeeded.
Plugin 'Urdf': loading...
V-REP runs in headless mode. Cannot start 'Urdf' plugin.
Error with plugin 'Urdf': load failed (failed initialization).
Plugin 'Vision': loading...
Plugin 'Vision': load succeeded.
Using the 'MeshCalc' plugin.
Error: signal 11:
/home/anush/v-rep_3.5/libv_rep.so(_Z11_segHandleri+0x28)[0x7fe0676b5c58]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7fe06b7214b0]
/home/anush/v-rep_3.5/libv_rep.so(_Z15luaHookFunctionPvS_+0x182)[0x7fe06770f142]
/home/anush/v-rep_3.5/liblua5.1.so(+0xbb7b)[0x7fe06c88bb7b]
/home/anush/v-rep_3.5/liblua5.1.so(+0x165b3)[0x7fe06c8965b3]
/home/anush/v-rep_3.5/liblua5.1.so(+0xc61e)[0x7fe06c88c61e]
/home/anush/v-rep_3.5/liblua5.1.so(+0xbd77)[0x7fe06c88bd77]
/home/anush/v-rep_3.5/liblua5.1.so(+0xbdf5)[0x7fe06c88bdf5]
/home/anush/v-rep_3.5/liblua5.1.so(lua_pcall+0x55)[0x7fe06c887d35]
/home/anush/v-rep_3.5/libv_rep.so(_ZN16CLuaScriptObject9_luaPCallEPviii+0x1a)[0x7fe06764f93a]
QMutex: destroying locked mutex
I followed to the following steps:
http://www.coppeliarobotics.com/helpFil ... ngVrep.htm

however when i try to run make command in v_rep folder I get the following:

Code: Select all

sourceCode/luaScripting/luaWrapper.cpp:7:21: fatal error: lua.h: No such file or directory
compilation terminated.
makefile:72: recipe for target 'all' failed
make: *** [all] Error 1
But I modified the config.pri file and put all paths:

Code: Select all

LUA_INCLUDEPATH = "lua5_1_4_Linux26g4_64_lib/include"
LUA_LIBS = -L "lua5_1_4_Linux26g4_64_lib/" -l lua5.1
QSCINTILLA_DIR = "QScintilla_gpl-2.10.2"
QSCINTILLA_INCLUDEPATH = "QScintilla_gpl-2.10.2/include" "$${QSCINTILLA_DIR}/Qt4Qt5"
QSCINTILLA_LIBS = "~/v-rep_3.5/libqscintilla2.so"
Could anyone help to find out what is going on, what I am doing wrong, and how could i make v-rep to run headless?
I checked all posts that I could find regarding to this topic.

Thank you very very much in advance!

anush
Posts: 9
Joined: 12 Dec 2016, 15:53

Re: V-REP headless mode issue

Post by anush »

Just for those who will face the same issue. In the makefile line 14th put the correct path for the lua headers:

Code: Select all

CFLAGS += -I lua5_1_4_Linux26g4_64_lib/include
This solved my issue and I can run v-rep headless now.

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

Re: V-REP headless mode issue

Post by coppelia »

Edit: make sure to first read this topic about headless mode, this thread is old.

Hello,

additionally, there was indeed a problem with the headless mode. This will be resolved in the next V-REP revision (rev. 2+). In the mean time, you can compile V-REP yourself, or you can use the newly compiled libraries for revision 2 here.

Cheers

Post Reply