kylemcdonald / ofxCv

Alternative approach to interfacing with OpenCv from openFrameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example-smile compile error (call to ofMesh)

kaisark opened this issue · comments

Update:
Ran into a different error related to Poco xml which turned out to be a gcc compiler version issue (v5 vs v4). Downloaded the gcc 5 compiled library which solved the library undefined reference error.

https://forum.openframeworks.cc/t/undefined-reference-poco-when-compiling-of-from-git-on-qtcreator-4-1-0/24557

Update:
I pulled the stable version of openframeworks and the stable version of ofxCv which seemed to clear the error below.


Hi. I have built the example-file module on the Raspeberry Pi in the past so I know it does work. I am building on Ubuntu in a Virtualbox this time around and am running into a compile error with example-smile. Is this a version issue with openframeworks (pulled from master today), opencv (2.4.13) or ofxCv? BTW, I copied over the Raspberry Pi version I had over and still ran into the same error. Othe openframework examples are compiling successfully (e.g. polygonExample).

Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)

/home/kaisark/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h: In member function ‘virtual const std::vector& ofxCv::RectTracker::track(const std::vector<cv::Rect_ >&)’:
/home/kaisark/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h:324:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < labels.size(); i++) {
^
In file included from /home/kaisark/openFrameworks/apps/myApps/example-smile/src/ofApp.cpp:1:0:
/home/kaisark/openFrameworks/apps/myApps/example-smile/src/ofApp.h: In member function ‘void LineGraph::add(float)’:
/home/kaisark/openFrameworks/apps/myApps/example-smile/src/ofApp.h:79:27: error: no matching function for call to ‘ofMesh_<glm::tvec3<float, (glm::precision)0u>, glm::tvec3<float, (glm::precision)0u>, ofColor_, glm::tvec2<float, (glm::precision)0u> >::addVertex(ofVec2f&)’
mesh.addVertex(cur);
^
In file included from /home/kaisark/openFrameworks/libs/openFrameworks/3d/ofMesh.h:742:0,
from /home/kaisark/openFrameworks/libs/openFrameworks/gl/ofVboMesh.h:3,
from /home/kaisark/openFrameworks/libs/openFrameworks/gl/ofTexture.h:6,
from /home/kaisark/openFrameworks/libs/openFrameworks/gl/ofFbo.h:3,
from /home/kaisark/openFrameworks/libs/openFrameworks/ofMain.h:47,
from /home/kaisark/openFrameworks/apps/myApps/example-smile/src/ofApp.h:3,
from /home/kaisark/openFrameworks/apps/myApps/example-smile/src/ofApp.cpp:1:
/home/kaisark/openFrameworks/libs/openFrameworks/3d/ofMesh.inl:176:6: note: candidate: void ofMesh_<V, N, C, T>::addVertex(const V&) [with V = glm::tvec3<float, (glm::precision)0u>; N = glm::tvec3<float, (glm::precision)0u>; C = ofColor_; T = glm::tvec2<float, (glm::precision)0u>]
void ofMesh_<V,N,C,T>::addVertex(const V& v){
^
/home/kaisark/openFrameworks/libs/openFrameworks/3d/ofMesh.inl:176:6: note: no known conversion for argument 1 from ‘ofVec2f’ to ‘const glm::tvec3<float, (glm::precision)0u>&’
/home/kaisark/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:221: recipe for target 'obj/linux64/Release/src/ofApp.o' failed
make[1]: *** [obj/linux64/Release/src/ofApp.o] Error 1
make[1]: Leaving directory '/home/kaisark/openFrameworks/apps/myApps/example-smile'
/home/kaisark/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
make: *** [Release] Error 2