makerscanner icon indicating copy to clipboard operation
makerscanner copied to clipboard

Compile error on Fedora Core 30

Open cwheat19 opened this issue 4 years ago • 1 comments

g++ -DHAVE_CONFIG_H -I. -I/usr/include/opencv -DPIXMAPS_DIR=""/usr/local/share/pixmaps"" -I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -g -O2 -MT camview.o -MD -MP -MF .deps/camview.Tpo -c -o camview.o camview.cpp camview.cpp: In member function ‘void CCamView::DrawCam(IplImage*)’: camview.cpp:157:84: error: ‘CV_RGB’ was not declared in this scope 157 | , cvPoint(nCamWidth/2, 0), cvPoint(nCamWidth/2, nCamHeight), CV_RGB( 0,255,0 )); | ^~~~~~

make[1]: *** [Makefile:477: camview.o] Error 1 make[1]: Leaving directory '/usr/local/src/makerscanner' make: *** [Makefile:354: all] Error 2 ms-error.txt

cwheat19 avatar Mar 30 '21 18:03 cwheat19

Upon further troubleshooting:

Compile error appears to be related to a missing header file; cv.h. This is probably related to the OpenCV dependency. OpenCV and the development files where installed with the command line; sudo dnf install opencv-devel. It completed successfully. A search of the file system could not locate this header file. To correct that, I downloaded the latest OpenCV and built and installed the package. The cv.h file still cannot be located. Perhaps a previous version of OpenCV is needed. Can anyone confirm that?

Thanks.

--Cliff

cwheat19 avatar Mar 30 '21 23:03 cwheat19