makerscanner icon indicating copy to clipboard operation
makerscanner copied to clipboard

Makerscanner on Linux Mint 21 (Ubuntu 22.04)

Open hotwolf opened this issue 3 years ago • 4 comments

Hello, I'm stuck with a dependency problem, installing makerscanner on Linux mint 21 (Ubuntu 22.04) and would be thankful for any hint to resolve it.

I've successfully installed makerscanner on Linux Mint 19.1 (Ubuntu 18.4), following the given instructions:

sudo apt-get install libwxgtk3.0-dev libgsl0-dev libopencv-dev ./bootstrap.sh ./configure make sudo make install

With Linux Mint 21 the "libwxgtk3.0-dev" package seems to have been renamed to "libwxgtk3.0-gtk3dev". So when I execute the following steps:

sudo apt-get install libwxgtk3.0-gtk3-dev libgsl0-dev libopencv-dev ./bootstrap.sh ./configure

It doesn't find the opencv library:

checking for opencv >= 2.0... no configure: error: Package requirements (opencv >= 2.0) were not met:

No package 'opencv' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENCV_CFLAGS and OPENCV_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

Has anyone seen or resolved this issue already?

hotwolf avatar Oct 17 '22 10:10 hotwolf

Are there any older versions of the libopencv package you could try?

On Mon, Oct 17, 2022, 6:37 AM hotwolf @.***> wrote:

Hello, I'm stuck with a dependency problem, installing makerscanner on Linux mint 21 (Ubuntu 22.04) and would be thankful for any hint to resolve it.

I've successfully installed makerscanner on Linux Mint 19.1 (Ubuntu 18.4), following the given instructions:

sudo apt-get install libwxgtk3.0-dev libgsl0-dev libopencv-dev ./bootstrap.sh ./configure make sudo make install

With Linux Mint 21 the "libwxgtk3.0-dev" package seems to have been renamed to "libwxgtk3.0-gtk3dev". So when I execute the following steps:

sudo apt-get install libwxgtk3.0-gtk3-dev libgsl0-dev libopencv-dev ./bootstrap.sh ./configure

It doesn't find the opencv library:

checking for opencv >= 2.0... no configure: error: Package requirements (opencv >= 2.0) were not met:

No package 'opencv' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENCV_CFLAGS and OPENCV_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

Has anyone seen or resolved this issue already?

— Reply to this email directly, view it on GitHub https://github.com/andybarry/makerscanner/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ5LKVKK4V4EAB3SXI3BSTWDUT5TANCNFSM6AAAAAARG5W3QU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

andybarry avatar Oct 17 '22 13:10 andybarry

Unfortunately Mint 21 does not provide any downgrade option for the libopencv-dev package. It only installs version 4.5.4 (Mint 19.1 was using version 3.2.0 of that library).

When I replace every "opencv" by "opencv4" in the configure script, I can make the "./configure" run pass, but the "make" step still fails, because the header files are missing (e.g. "cv.h"). While these header files were part of the old "libopencv-dev" package (3.2.0), they are no longer part of the new one (4.5.4). It seems that the packet structure, the directory structure, and even the names of the header files have changed,

It guess there is no easy way to install makerscanner on the current Mint/Ubuntu distributions.

hotwolf avatar Oct 17 '22 22:10 hotwolf

I've now compiled and installed opencv 3.4.18, which seems to be the last opencv release with C headers. Now if I try to compile maker scanner, I get the following error:

camview.cpp: In member function ‘void CCamView::DrawCam(IplImage*)’: camview.cpp:157:84: error: ‘CV_RGB’ was not declared in this scope 157 | cvLine(pDstImg, cvPoint(nCamWidth/2, 0), cvPoint(nCamWidth/2, nCamHeight), CV_RGB( 0,255,0 )); | ^~~~~~ make[1]: *** [Makefile:477: camview.o] Error 1

Is there any component missing in my opencv installation?

hotwolf avatar Oct 29 '22 01:10 hotwolf

Hi there, I tried several solutions but "make" fail every time, what I did is I swiched to windows there, the instalation is immediatly

jamaajair avatar Jul 03 '24 11:07 jamaajair