Compilation Issues and Solution under Windows
Posted: 10 Jun 2013, 23:50
Here is my experience on compiling the code.
I am using Qt 5.0.2 and Boost 1.53.0 and Lua 5.1.4
I used Qt Creator for compilation.
1. don't forget set win32 for the project.
project -->>build steps -->>additional arguments: -win32
2. fix some bugs by adding (also check out the earlier post)
#include "sensingThreadPool.h"
to:
sourceCode/collisions/RegColl.cpp
sourceCode/distances/RegDist.cpp
sourceCode/3dObjects/proximitySensor.cpp
3. adding (also check out the earlier post)
#define IDSN_INERTIA_FRAME "Inertia frame"
#define IDSN_INERTIA_FRAME_RELATIVE_TO_WORLD "The inertia frame is now expressed relative to the absolute reference frame. Clicking 'Apply to selection' will from now on apply the same absolute position/orientation of the inertia frames."
to
v_repStringTable.h
4. adding
#include <QmimeData>
to
MainWindow.cpp
5. change the file sourcecode\interfaces\v_rep.cpp
VREP_END(CIloIlo::mainWindow->winId());
to
VREP_END((simVoid*)CIloIlo::mainWindow->winId());
6. I have the following error
\sourceCode\various\GV.cpp:-1: error: C1083: Cannot open precompiled header file: 'debug\v_rep_pch.pch': Permission denied
complile the individual file. Here, compile GV.cpp then build the entire project.
7. You may have VVarious.obj problem.
You need add shelllib in VVarious.cpp as follows.
#ifdef WIN_VREP
#include <Shellapi.h>
#pragma comment(lib,"shell32.lib")
#endif
8. There is a strange issue in v_repExtUrdf.pro
It reports that ui_urdfdialog.h could not be found.
In fact, ui_urdfdialog.h file should be automatically generated by Qt Creator if there is urdfdialog.ui file. Obvious, there is something wrong with the project settings. I couldn't figure out the reason. But an easy solution is
Copy the urdfdialog.ui file to v_rep.pro and compile the v_rep project, then you can have ui_urdfdialog.h. Then, copy this file to v_repExtUrdf folder.
There seems no problem with compilation. But the client project vrep still does not run. It reports "Error: could not find or correctly load the V-REP library". I still try to figure out why.
I am using Qt 5.0.2 and Boost 1.53.0 and Lua 5.1.4
I used Qt Creator for compilation.
1. don't forget set win32 for the project.
project -->>build steps -->>additional arguments: -win32
2. fix some bugs by adding (also check out the earlier post)
#include "sensingThreadPool.h"
to:
sourceCode/collisions/RegColl.cpp
sourceCode/distances/RegDist.cpp
sourceCode/3dObjects/proximitySensor.cpp
3. adding (also check out the earlier post)
#define IDSN_INERTIA_FRAME "Inertia frame"
#define IDSN_INERTIA_FRAME_RELATIVE_TO_WORLD "The inertia frame is now expressed relative to the absolute reference frame. Clicking 'Apply to selection' will from now on apply the same absolute position/orientation of the inertia frames."
to
v_repStringTable.h
4. adding
#include <QmimeData>
to
MainWindow.cpp
5. change the file sourcecode\interfaces\v_rep.cpp
VREP_END(CIloIlo::mainWindow->winId());
to
VREP_END((simVoid*)CIloIlo::mainWindow->winId());
6. I have the following error
\sourceCode\various\GV.cpp:-1: error: C1083: Cannot open precompiled header file: 'debug\v_rep_pch.pch': Permission denied
complile the individual file. Here, compile GV.cpp then build the entire project.
7. You may have VVarious.obj problem.
You need add shelllib in VVarious.cpp as follows.
#ifdef WIN_VREP
#include <Shellapi.h>
#pragma comment(lib,"shell32.lib")
#endif
8. There is a strange issue in v_repExtUrdf.pro
It reports that ui_urdfdialog.h could not be found.
In fact, ui_urdfdialog.h file should be automatically generated by Qt Creator if there is urdfdialog.ui file. Obvious, there is something wrong with the project settings. I couldn't figure out the reason. But an easy solution is
Copy the urdfdialog.ui file to v_rep.pro and compile the v_rep project, then you can have ui_urdfdialog.h. Then, copy this file to v_repExtUrdf folder.
There seems no problem with compilation. But the client project vrep still does not run. It reports "Error: could not find or correctly load the V-REP library". I still try to figure out why.