Typically: "How do I... ", "How can I... " questions
celegorm
Posts: 5 Joined: 17 Mar 2014, 13:45
Post
by celegorm » 17 Mar 2014, 16:01
Hi,
I used your installation guide for Ubuntu 12.04 Qt 4.8.1 V-Rep 3.1.0 (
http://coppeliarobotics.com/helpFiles/e ... ngVrep.htm ) only the V-Rep version is different, I could not get V-Rep 3.0.3 from your download page.
Everything till command "$ qmake v_rep.pro" was fine, the problem shows when I run "make", please advise what to do. Is it a bug or did I miss something in the previous steps.
What I am getting is the following:
Code: Select all
In file included from sourceCode/various/uiThread.h:37:0,
from sourceCode/various/App.h:31,
from sourceCode/qtPropertyBrowserRelated/propBrowser_engineProp_material.cpp:6:
sourceCode/3dObjects/visionSensorObjectRelated/offscreenGlContext.h:70:2: error: ‘QOpenGLContext’ does not name a type
sourceCode/3dObjects/visionSensorObjectRelated/offscreenGlContext.h:71:2: error: ‘QOffscreenSurface’ does not name a type
sourceCode/3dObjects/visionSensorObjectRelated/offscreenGlContext.h:76:21: error: ‘QOpenGLContext’ was not declared in this scope
sourceCode/3dObjects/visionSensorObjectRelated/offscreenGlContext.h:76:36: error: template argument 1 is invalid
sourceCode/3dObjects/visionSensorObjectRelated/offscreenGlContext.h:76:36: error: template argument 2 is invalid
In file included from sourceCode/various/uiThread.h:38:0,
from sourceCode/various/App.h:31,
from sourceCode/qtPropertyBrowserRelated/propBrowser_engineProp_material.cpp:6:
sourceCode/3dObjects/visionSensorObjectRelated/frameBufferObject.h:58:2: error: ‘QOpenGLFramebufferObject’ does not name a type
cc1plus: warning: unrecognized command line option "-Wno-narrowing" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs" [enabled by default]
make: *** [propBrowser_engineProp_material.o] Error 1
hjeldin
Posts: 9 Joined: 17 Jan 2014, 02:47
Post
by hjeldin » 17 Mar 2014, 16:43
Compilation instruction for V-REP 3.1 are outdated, you should install at least QT5 and use it's kit into QT Creator.
celegorm
Posts: 5 Joined: 17 Mar 2014, 13:45
Post
by celegorm » 19 Mar 2014, 11:43
Thanks for your reply.
I removed all of the old files and installed the following:
Qt 5.2.1
QScintilla 2.8
V-Rep 3.1.0
I am still getting a similar issue.
Any other idea?
Code: Select all
In file included from sourceCode/various/uiThread.h:37:0,
from sourceCode/various/App.h:31,
from sourceCode/qtPropertyBrowserRelated/propBrowser_engineProp_material.cpp:6:
sourceCode/3dObjects/visionSensorObjectRelated/offscreenGlContext.h:71:2: error: ‘QOffscreenSurface’ does not name a type
cc1plus: warning: unrecognized command line option "-Wno-narrowing" [enabled by default]
cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs" [enabled by default]
make: *** [propBrowser_engineProp_material.o] Error 1
coppelia
Site Admin
Posts: 10366 Joined: 14 Dec 2012, 00:25
Post
by coppelia » 19 Mar 2014, 22:41
Hello,
QOffscreenSurface was introduced in Qt 5.1, so you should be fine with Qt 5.2.1.
You can try to add following line at the top of the file
offscreenGlContext.h , not sure why that wasn't needed in previous Qt versions (probably included via other headers at that time):
Cheers
celegorm
Posts: 5 Joined: 17 Mar 2014, 13:45
Post
by celegorm » 21 Mar 2014, 14:37
Thank you for your reply.
Adding that line make it skip that step but it stop again later.
I saw on the website (Version Info) V-Rep 3.1.0 was compiled with Qt 5.2.0 but there is no hint of which boost and QScintilla versions, can you help me on this?
I used the following versions:
V-Rep 3.1.0
Qt 5.2.0
boost 1.55.0
QScintilla 2.7.1
I am still getting error after I run make
Any other suggestion please.
My installation steps:
Code: Select all
wget http://coppeliarobotics.com/V-REP_PRO_EDU_V3_1_0_64_Linux.tar.gz
tar -zxvf V-REP_PRO_EDU_V3_1_0_64_Linux.tar.gz
chown -R root:root V-REP_PRO_EDU_V3_1_0_64_Linux
cd V-REP_PRO_EDU_V3_1_0_64_Linux
wget -qO- -O tmp.zip http://coppeliarobotics.com/V-REP_PATH_PLUGIN_SOURCE_V3_1_0.zip && unzip tmp.zip && rm tmp.zip
wget -qO- -O tmp.zip http://coppeliarobotics.com/V-REP_MESH_PLUGIN_SOURCE_V3_1_0.zip && unzip tmp.zip && rm tmp.zip
wget -qO- -O tmp.zip http://coppeliarobotics.com/V-REP_DYN_PLUGIN_SOURCE_V3_1_0.zip && unzip tmp.zip && rm tmp.zip
wget -qO- -O tmp.zip http://coppeliarobotics.com/V-REP_SOURCE_V3_1_0.zip && unzip tmp.zip && rm tmp.zip
./vrep.sh
cd ..
apt-add-repository ppa:ubuntu-sdk-team/ppa
apt-get update
apt-get install qtdeclarative5-dev
apt-get install lua5.1 lua5.1-doc lua5.1-lgi lua5.1-lgi-dev lua5.1-policy lua5.1-policy-dev liblua5.1-0 liblua5.1-0-dbg liblua5.1-0-dev liblua5.1-dev libboost-all-dev
wget http://download.qt-project.org/archive/qt/5.2/5.2.0/qt-linux-opensource-5.2.0-x86_64-offline.run
chmod 777 qt-linux-opensource-5.2.0-x86_64-offline.run
./qt-linux-opensource-5.2.0-x86_64-offline.run
Qt 5.2.0 installed in /opt/Qt5.2.0
qmake location: /opt/Qt5.2.0/5.2.0/gcc_64/bin/qmake
wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
tar -zxvf boost_1_55_0.tar.gz
chown -R root:root boost_1_55_0
cd boost_1_55_0
./bootstrap.sh --prefix=/usr/local
./b2 install
wget http://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.7.1/QScintilla-gpl-2.7.1.tar.gz
tar -zxvf QScintilla-gpl-2.7.1.tar.gz
chown -R root:root QScintilla-gpl-2.7.1
cd QScintilla-gpl-2.7.1/Qt4Qt5
/opt/Qt5.2.0/5.2.0/gcc_64/bin/qmake qscintilla.pro
make
make install
cd /root/V-REP_PRO_EDU_V3_1_0_64_Linux/v_rep/
nano v_rep.pro
##########
unix:!macx {
INCLUDEPATH += /usr/local/include/boost
INCLUDEPATH += /opt/Qt5.2.0/5.2.0/gcc_64/include
INCLUDEPATH += /opt/Qt5.2.0/5.2.0/gcc_64/include/Qsci
LIBS += /opt/Qt5.2.0/5.2.0/gcc_64/lib/libqscintilla2.so
contains(QMAKE_HOST.arch, x86_64):{ # 64 Bit
INCLUDEPATH += /usr/include/lua5.1 # your lua5.1 64 "include" f$
LIBS += -Llua5_1_4_Linux26g4_64_lib/ -llua5.1 # your Lua lib lo$
DEFINES += QT_VREP_64BIT
}
!contains(QMAKE_HOST.arch, x86_64):{ # 32 Bit
INCLUDEPATH += /usr/include/lua5.1 # your lua5.1 32 "include" f$
LIBS += -Llua5_1_4_Linux26g4_lib/ -llua5.1 # your Lua lib locat$
}
DEFINES += LIN_VREP
}
##########
/opt/Qt5.2.0/5.2.0/gcc_64/bin/qmake v_rep.pro
make
make install
coppelia
Site Admin
Posts: 10366 Joined: 14 Dec 2012, 00:25
Post
by coppelia » 21 Mar 2014, 18:22
Can you show us what error messages it outputs?
celegorm
Posts: 5 Joined: 17 Mar 2014, 13:45
Post
by celegorm » 24 Mar 2014, 09:43
I am really sorry, I did not post the error message.
Here it is:
Code: Select all
g++ -c -include v_rep -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 -DCOMPILING_WITH_QT -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_VREP_64BIT -DLIN_VREP -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/Qt5.2.0/5.2.0/gcc_64/mkspecs/linux-g++ -I. -I/usr/local/include/boost -I/opt/Qt5.2.0/5.2.0/gcc_64/include -I/opt/Qt5.2.0/5.2.0/gcc_64/include/Qsci -I/usr/include/lua5.1 -IsourceCode -IsourceCode/inverseKinematics/geomConstraintSolver -IsourceCode/inverseKinematics/ik -IsourceCode/dialogs -IsourceCode/dialogs/other -IsourceCode/communication -IsourceCode/communication/tubes -IsourceCode/communication/wireless -IsourceCode/communication/serialPort -IsourceCode/drawingObjects -IsourceCode/platform -IsourceCode/collections -IsourceCode/collisions -IsourceCode/distances -IsourceCode/pathPlanning -IsourceCode/motionPlanning -IsourceCode/3dObjects -IsourceCode/3dObjects/related -IsourceCode/3dObjects/graphObjectRelated -IsourceCode/3dObjects/millObjectRelated -IsourceCode/3dObjects/pathObjectRelated -IsourceCode/3dObjects/proximitySensorObjectRelated -IsourceCode/3dObjects/shapeObjectRelated -IsourceCode/3dObjects/volumeObjectRelated -IsourceCode/3dObjects/visionSensorObjectRelated -IsourceCode/undoRedo -IsourceCode/mainStaticContainers -IsourceCode/mainContainers -IsourceCode/mainContainers/sceneContainers -IsourceCode/mainContainers/applicationContainers -IsourceCode/luaScripting -IsourceCode/luaScripting/customLuaFunctions -IsourceCode/luaScripting/luaStackObjects -IsourceCode/customUserInterfaces -IsourceCode/sceneHierarchy -IsourceCode/modelBrowser -IsourceCode/pagesAndViews -IsourceCode/importExport -IsourceCode/textures -IsourceCode/serialization -IsourceCode/scintillaRelated -IsourceCode/strings -IsourceCode/interfaces -IsourceCode/menusAndSimilar -IsourceCode/geometricAlgorithms -IsourceCode/geometricAlgorithms/convexDecomposition -IsourceCode/geometricAlgorithms/qHull -IsourceCode/various -IsourceCode/libsAndPlugins -IsourceCode/visual -IsourceCode/utils -IsourceCode/backwardCompatibility -IsourceCode/qtPropertyBrowserRelated -IsourceCode/qtPropertyBrowserRelated/qtPropertyBrowserFiles -IsourceCode/qtPropertyBrowserRelated/qtPropertyBrowserRelatedFiles -I../programming/include -I../programming/v_repMath -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtPrintSupport -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtOpenGL -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtWidgets -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtNetwork -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtGui -I/opt/Qt5.2.0/5.2.0/gcc_64/include/QtCore -I. -I. -o ScintillaDlg.o sourceCode/scintillaRelated/ScintillaDlg.cpp
sourceCode/scintillaRelated/ScintillaDlg.cpp:39:22: fatal error: SciLexer.h: No such file or directory
compilation terminated.
make: *** [ScintillaDlg.o] Error 1
coppelia
Site Admin
Posts: 10366 Joined: 14 Dec 2012, 00:25
Post
by coppelia » 24 Mar 2014, 10:53
it seems that you haven't specified the correct directories for Scintilla in the project file. It should be something similar to:
Code: Select all
INCLUDEPATH += "../../QScintilla-gpl-2.7.1/Qt4Qt5"
INCLUDEPATH += "../../QScintilla-gpl-2.7.1/include"
Cheers
celegorm
Posts: 5 Joined: 17 Mar 2014, 13:45
Post
by celegorm » 24 Mar 2014, 14:32
Thank you very much.
It is working fine now.
Ngdk
Posts: 18 Joined: 17 Apr 2014, 14:26
Post
by Ngdk » 19 Apr 2014, 14:22
Hi everyone,
I've followed each your step (celegorm), but when I do "make" the output is the following
Code: Select all
sourceCode/3dObjects/visionSensorObjectRelated/offscreenGlContext.h:33:29: fatal error: QOffscreenSurface: No such file or directory
compilation terminated.
make: *** [propBrowser_engineProp_material.o] Error 1
But If I open offscreenGlContext.h file there is already the include
. How to resolve it? Help