-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling error #116
Comments
I am running into the same error, but somewhat different circumstances. I simply cloned git and executed make as per instruction:
I am yet to do the alternative listed on the help file here, who knows. |
first 'make', then, after the error, 'make clean'. Finally 'make' again. It will compile. At least it did on my Rasberry Pi 3 model B |
I have changed some part in the code on CameraManager.cpp, the void CameraManager::update() function. I put
cv::Mat img;
img = toCv(videoMatrix).clone();
cv::Mat lookUpTable(1, 256, CV_8U);
unsigned char p = lookUpTable.ptr();
for (int i = 0; i < 256; i++) {
p[i] = saturate_cast(pow(i / 255.0, 0.5) * 255.0);
}
cv::LUT(img, lookUpTable, img);
copy(img, videoMatrix);*
And now it sends me an error
In file included from /home/pi/openFrameworks/of_v0.10.0_linuxarmv6l_release/addons/ofxCv/src/ofxCv.h:23:0,
from src/CameraManager.h:17,
from src/CameraManager.cpp:7:
/home/pi/openFrameworks/of_v0.10.0_linuxarmv6l_release/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h: In member function ‘virtual const std::vector& ofxCv::RectTracker::track(const std::vector<cv::Rect_ >&)’:
/home/pi/openFrameworks/of_v0.10.0_linuxarmv6l_release/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h:326:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < labels.size(); i++) {
~~^~~~~~~~~~~~~~~
src/CameraManager.cpp: In member function ‘void CameraManager::setup(Camera_Configuration)’:
src/CameraManager.cpp:18:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < _cameraConfig.maskCoord.size(); i++)
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/CameraManager.h:20:0,
from src/CameraManager.cpp:7:
/home/pi/openFrameworks/of_v0.10.0_linuxarmv6l_release/addons/ofxCvPiCam/src/ofxCvPiCam.h: At global scope:
/home/pi/openFrameworks/of_v0.10.0_linuxarmv6l_release/addons/ofxCvPiCam/src/ofxCvPiCam.h:200:13: warning: ‘void color_callback(MMAL_PORT_T*, MMAL_BUFFER_HEADER_T*)’ declared ‘static’ but never defined [-Wunused-function]
static void color_callback(MMAL_PORT_T , MMAL_BUFFER_HEADER_T );
^~~~~~~~~~~~~~
/home/pi/openFrameworks/of_v0.10.0_linuxarmv6l_release/addons/ofxCvPiCam/src/ofxCvPiCam.h:201:13: warning: ‘void gray_callback(MMAL_PORT_T, MMAL_BUFFER_HEADER_T)’ declared ‘static’ but never defined [-Wunused-function]
static void gray_callback(MMAL_PORT_T *, MMAL_BUFFER_HEADER_T *);
^~~~~~~~~~~~~
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:221: recipe for target 'obj/linuxarmv6l/Release/src/CameraManager.o' failed
make[1]: *** [obj/linuxarmv6l/Release/src/CameraManager.o] Error 2
make[1]: Leaving directory '/home/pi/openFrameworks/of_v0.10.0_linuxarmv6l_release/apps/Footfall/Footfall'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
The text was updated successfully, but these errors were encountered: