Project

General

Profile

Computree 5 Compile failed

Added by Bariou Marcel about 1 year ago

hello, not sure it is the right place to post my problem :

Ubuntu LTS 16.04 / computree5

I am trying to compile CompuTree5: ⇒ Conflict here ⇒ /usr/include/opencv2/core/mat.hpp

/usr/include/opencv2/core/mat.hpp:58:13: error: 'Mat’ has not been declared
dims, rows, calls, data, dateend, datastart, datalimits not declared in this scope etc ...

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.

Some hints, some help please for progress


Replies (1)

RE: Computree 5 Compile failed - Added by Hackenberg Jan about 1 year ago

Hi

I could successfully compile CT5 on 16.04. GCC is:

xyz-All-Series:~$ gcc --version:

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

QT does not matter, as the error links to your OpenCV installation.

My mat.hpp is not under /usr/include/, it is /usr/local/include/opencv2/core/mat.hpp

My openCV_default_path.pri:

unix {
OPENCV_BASE_PATH = "/usr/local/"
OPENCV_INC_PATH = "$${OPENCV_BASE_PATH}include"
OPENCV_LIBS_PATH = "$${OPENCV_BASE_PATH}lib"
OPENCV_VERSION = 330
}

You can see I am using 3.3.0, as recommended by Alexandre:
http://rdinnovation.onf.fr/projects/computreedevtools/wiki/En_quickstart
https://docs.opencv.org/3.3.0/d7/d9f/tutorial_linux_install.html

You need to compile OPENCV as stated in the link and uninstall first the apt version you have installed. Adapt the pri as stated. If this does not help, I do not have a clue.

Jan

    (1-1/1)