Project

General

Profile

Trouble with COMPUTREE 5 Compile

Added by Bariou Marcel 12 months ago

Thanks for any Help,

My setup is
UBUNTU 16.04 LTS
G++ (Version4.5)
QT (5.7) -
PCL 1.8.0
OpenCV 3.4.1-dev
GSL 2.1 ===========================
*In opencv_default_path.pri
I set :
OPENCV_BASE_PATH = "/usr/local/”

But compilation is done with ” /usr/”
How to force to /usr/local/ ?* =======================
Output of compilation ⇒ .....

/usr/include/opencv2/core/mat.hpp:1258:1: error: expected declaration before '}' token
};
^
make2: * [debug/.obj/ct_grid4d_sparse.o] Error 1
make2:
Waiting for unfinished jobs....
ct_itemdrawable/ct_shootingpatternd.cpp:53:141: warning: unused parameter 'copyModeList’ [-Wunused-parameter]
CT_ShootingPatternD
CT_ShootingPatternD::copy(const CT_OutAbstractItemModel model, const CT_AbstractResult *result, CT_ResultCopyModeList copyModeList)
^
make2: Leaving directory '/home/mbariou/WKSCOMPILE/COMPUTREE/computreev5/pluginshared’
Makefile.base:95: recipe for target 'sub-pluginshared-make_first-ordered’ failed
make1: Leaving directory '/home/mbariou/WKSCOMPILE/COMPUTREE/computreev5’
Makefile:48: recipe for target 'sub-computreev5-base-pro-make_first-ordered’ failed
make1:
[sub-pluginshared-make_first-ordered] Error 2
make: *
[sub-computreev5-base-pro-make_first-ordered] Error 2
21:23:43: Le processus "/usr/bin/make” s’est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet all (kit : Desktop Qt 5.7.0 GCC 64bit)
When executing step “Make”
21:23:43: Temps écoulé : 03:01. ===================
Marcel Bariou


Replies (1)

RE: Trouble with COMPUTREE 5 Compile - Added by Krebs Michaël 11 months ago

Hello,

you must create a file with name “opencv_use_path.pri” in the same directory as the file “opencv_default_path.pri” and paste this in the new file :

unix {
    OPENCV_BASE_PATH = "/usr/local/" 

    OPENCV_INC_PATH = "$${OPENCV_BASE_PATH}include" 
    OPENCV_LIBS_PATH = "$${OPENCV_BASE_PATH}lib" 
    OPENCV_VERSION = 300
}

windows {
    OPENCV_BASE_PATH = "c:/opencv/build/" 

    OPENCV_INC_PATH = "$${OPENCV_BASE_PATH}include" 
    OPENCV_LIBS_PATH = "$${OPENCV_BASE_PATH}x64/vc14/lib" 
    OPENCV_VERSION = 320
}

After that apply a qMake to your project and recompil it

    (1-1/1)