Page 1 of 1

Install OpenCV issue...

Posted: Tue Jan 03, 2017 12:37 am
by mano1979
I tried to install OpenCV but i got this error. I tried to install libstdcpp but that could not be found. Anyone had this issue or knows how to install opencv? :cry:

Code: Select all
root@OpenWrt:~# opkg install -A http://downloads.openwrt.org/chaos_calmer/15.05.
1/ramips/mt7628/packages/packages/opencv_2.4.11-3_ramips_24kec.ipk
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/packages/opencv_2.4.11-3_ramips_24kec.ipk.
Installing opencv (2.4.11-3) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for opencv:
 *    libstdcpp *
 * opkg_install_cmd: Cannot install package opencv.
root@OpenWrt:~#

Re: Install OpenCV issue...

Posted: Tue Jan 03, 2017 1:34 am
by GinDiamond
Code: Select all
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for opencv:
 *    libstdcpp *
 * opkg_install_cmd: Cannot install package opencv.


It seems you don't have libstdcpp installed. If that is built and installable in ipk form for the vocore2 I do not know. A simple "opkg install libstdcpp" might solve this.

Re: Install OpenCV issue...

Posted: Tue Jan 03, 2017 2:28 am
by mano1979
That is exactly what i did. The package could not be found though. :cry:

Re: Install OpenCV issue...

Posted: Tue Jan 03, 2017 2:41 am
by mano1979
I found the package in another folder from the repo. OpenCV is installed!

Now where is that OpenCV folder?...... :lol:

Re: Install OpenCV issue...

Posted: Tue Jan 03, 2017 3:07 am
by noblepepper
I think y'all are over complicating opkg. I just used opkg update and opkg install and everything works like it should:

Code: Select all
root@OpenWrt:/# opkg update
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
<snip>
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/packages/Packages.sig.
Signature check passed.
Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/linkit/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/linkit/Packages.sig, wget returned 1.
root@OpenWrt:/# opkg install opencv
Installing opencv (2.4.11-3) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/packages/opencv_2.4.11-3_ramips_24kec.ipk.
Installing libstdcpp (4.8-linaro-1) to root...
Downloading http://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7628/packages/base/libstdcpp_4.8-linaro-1_ramips_24kec.ipk.
Configuring libstdcpp.
Configuring opencv.
root@OpenWrt:/#


I'm not sure what you are looking for but opkg files tells me what got installed:
Code: Select all
root@OpenWrt:/# opkg files opencv
Package opencv (2.4.11-3) is installed on root and has the following files:
/usr/lib/libopencv_calib3d.so
/usr/lib/libopencv_contrib.so.2.4.11
/usr/lib/libopencv_features2d.so.2.4
/usr/lib/libopencv_objdetect.so.2.4.11
/usr/lib/libopencv_calib3d.so.2.4.11
/usr/lib/libopencv_contrib.so
/usr/lib/libopencv_ml.so
/usr/lib/libopencv_core.so.2.4
/usr/lib/libopencv_photo.so.2.4
/usr/lib/libopencv_ocl.so.2.4.11
/usr/lib/libopencv_video.so
/usr/lib/libopencv_flann.so.2.4
/usr/lib/libopencv_flann.so.2.4.11
/usr/lib/libopencv_nonfree.so
/usr/lib/libopencv_nonfree.so.2.4.11
/usr/lib/libopencv_legacy.so.2.4.11
/usr/lib/libopencv_photo.so
/usr/lib/libopencv_video.so.2.4.11
/usr/lib/libopencv_objdetect.so
/usr/lib/libopencv_ocl.so
/usr/lib/libopencv_core.so
/usr/lib/libopencv_nonfree.so.2.4
/usr/lib/libopencv_imgproc.so.2.4
/usr/lib/libopencv_objdetect.so.2.4
/usr/lib/libopencv_features2d.so.2.4.11
/usr/lib/libopencv_legacy.so
/usr/lib/libopencv_core.so.2.4.11
/usr/lib/libopencv_video.so.2.4
/usr/lib/libopencv_photo.so.2.4.11
/usr/lib/libopencv_imgproc.so.2.4.11
/usr/lib/libopencv_calib3d.so.2.4
/usr/lib/libopencv_contrib.so.2.4
/usr/lib/libopencv_legacy.so.2.4
/usr/lib/libopencv_ocl.so.2.4
/usr/lib/libopencv_ml.so.2.4.11
/usr/lib/libopencv_features2d.so
/usr/lib/libopencv_imgproc.so
/usr/lib/libopencv_ml.so.2.4
/usr/lib/libopencv_flann.so
root@OpenWrt:/#

Re: Install OpenCV issue...

Posted: Tue Jan 03, 2017 1:00 pm
by GinDiamond
This is all very interesting. Do you have enough space (as in setting the root directory to mount on an ext3 formatted usb stick via Luci gui?)

I tried installing opencv by doing this:

opkg install opencv

and it worked with nothing going wrong (other than my annoying errors "Duplicate src found...ignored")

I've found that installing packages this way usually include dependencies. I only explicitly say WHICH package via url/filename if I'm upgrading certain things or installing my own that I built.

If there's one thing I've learned with computers over the years, its this:

There is ALWAYS an easier way.

Good luck sir!

Re: Install OpenCV issue...

Posted: Tue Jan 03, 2017 6:03 pm
by noblepepper
Do you have enough space (as in setting the root directory to mount on an ext3 formatted usb stick via Luci gui?)


You can set up USB or sdcard storage to mount in different places and use it for data storage without problems but if you want more space for packages etc, the recommended way is extroot