To do so, I tried to compile the VREP source using v_rep.pro (qmake with Qt5.5.0, use -qt-xcb). The compilation was successful, but when I ran the command ./vrep.sh -h -s -q myScene.ttt, I met the error:
.QXcbConnection: Could not connect to display
Then I tried to compile with the line CONFIG += WITH_GUI commented, but met the following errors: (qmake with Qt5.5.0, use -qt-xcb)
g++ -c -pipe -O3 -Wall -Wno-unused-parameter -Wno-strict-aliasing -Wno-empty-body -Wno-write-strings -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-narrowing -O2 -Wall -W -D_REENTRANT -fPIC -DSIM_WITH_OPENGL -DSIM_WITH_SERIAL -DQT_VREP_64BIT -DQT55 -DLIN_VREP -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I. -I/pkg/suse12/software/boost/1.61.0-foss-2016a -I../../lua-5.1.5/include -IsourceCode -IsourceCode/inverseKinematics/geomConstraintSolver -IsourceCode/inverseKinematics/ik -IsourceCode/shared/sharedBufferFunctions -IsourceCode/communication -IsourceCode/communication/tubes -IsourceCode/communication/wireless -IsourceCode/drawingObjects -IsourceCode/platform -IsourceCode/collections -IsourceCode/collisions -IsourceCode/distances -IsourceCode/pathPlanning_old -IsourceCode/motionPlanning_old -IsourceCode/3dObjects -IsourceCode/3dObjects/related -IsourceCode/3dObjects/graphObjectRelated -IsourceCode/3dObjects/millObjectRelated -IsourceCode/3dObjects/pathObjectRelated -IsourceCode/3dObjects/proximitySensorObjectRelated -IsourceCode/3dObjects/shapeObjectRelated -IsourceCode/3dObjects/visionSensorObjectRelated -IsourceCode/mainContainers -IsourceCode/mainContainers/sceneContainers -IsourceCode/mainContainers/applicationContainers -IsourceCode/luaScripting -IsourceCode/luaScripting/customLuaFuncAndVar -IsourceCode/pagesAndViews -IsourceCode/importExport -IsourceCode/textures -IsourceCode/serialization -IsourceCode/strings -IsourceCode/interfaces -IsourceCode/interfaces/interfaceStack -IsourceCode/menusAndSimilar -IsourceCode/variousFunctions -IsourceCode/geometricAlgorithms -IsourceCode/various -IsourceCode/libsAndPlugins -IsourceCode/visual -IsourceCode/utils -IsourceCode/sharedBufferFunctions -IsourceCode/backwardCompatibility -IsourceCode/backwardCompatibility/pathPlanning -IsourceCode/backwardCompatibility/motionPlanning -IsourceCode/customUserInterfaces -IsourceCode/undoRedo -IsourceCode/rendering -IsourceCode/communication/serialPort -I../programming/include -I../programming/v_repMath -I../../Qt5.5/include -I../../Qt5.5/include/QtPrintSupport -I../../Qt5.5/include/QtOpenGL -I../../Qt5.5/include/QtWidgets -I../../Qt5.5/include/QtGui -I../../Qt5.5/include/QtSerialPort -I../../Qt5.5/include/QtCore -I. -I../../Qt5.5/mkspecs/linux-g++ -o pageContainer.o sourceCode/pagesAndViews/pageContainer.cpp
sourceCode/pagesAndViews/pageContainer.cpp: In member function 'void CPageContainer::renderCurrentPage(bool)':
sourceCode/pagesAndViews/pageContainer.cpp:353:27: error: 'class CSPage' has no member named 'clearAllMouseJustWentDownAndUpFlags'
_allPages->clearAllMouseJustWentDownAndUpFlags();
^
sourceCode/pagesAndViews/pageContainer.cpp:360:28: error: 'mainWindow' is not a member of 'App'
if ((!hideWatermark)&&(App::mainWindow!=NULL)&&(!App::mainWindow->simulationRecorder->getIsRecording()))
^
sourceCode/pagesAndViews/pageContainer.cpp:360:54: error: 'mainWindow' is not a member of 'App'
if ((!hideWatermark)&&(App::mainWindow!=NULL)&&(!App::mainWindow->simulationRecorder->getIsRecording()))
^
Makefile:30271: recipe for target 'pageContainer.o' failed
make: *** [pageContainer.o] Error 1
I roughly went through the VREP source code, I think this failed compilation might be caused by the incomplete support for the compilation without Gui. Any suggestions? Could you please provide a makefile for no Gui but with open GL?
Thanks in advance!