andybarry / makerscanner

Makerscanner Software
GNU General Public License v2.0
168 stars 70 forks source link

Compile error on Fedora Core 30 #13

Open cwheat19 opened 3 years ago

cwheat19 commented 3 years ago

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 -DWXGTK -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 commented 3 years ago

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