Community
cancel
Showing results for 
Search instead for 
Did you mean: 
杰廖杰
New Contributor I
1,027 Views

Is file libopencv_core.so.2.4 in Edison board?

Jump to solution

Hi,

After setting library/include in OpenCV project, I passed the building.

But when I run the project, it exit:

Is this libraries in Edison board? or I need to download/install?

There is someone says checking /usr/local/opencv2 -- http://stackoverflow.com/questions/12335848/opencv-program-compile-error-libopencv-core-so-2-4-canno... c++ - openCV program compile error "libopencv_core.so.2.4: cannot open shared object file: No such file or directory" in…

I checked my host PC, there is file libopencv_core.so.2.4 at /usr/lib (not /usr/local), and Edison's usr/lib lists as this (there is no /usr/local)

there is no libopencv_core.so.2.4

Copy the file from PC to Edison ? (how to copy?)

Or update ...? How to?

Thanks

James

1 Solution
idata
Community Manager
94 Views

Hi James,

 

 

We'll do our best to help you with this case. In the Edison, the place you should be looking for this file is under /usr/lib. First, make sure you're using the latest image. Then, configure your Edison to fetch packages from AlexT's repo. You can see instructions here http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html . After successfully running opkg update at the end of the guide, run the commands: opkg install opencv and opkg install opencv-dev. After the download and installation process is finished, run the command ls /usr/lib/ |grep libopencv_core.so.2.4.

 

This should allow you to see the libopencv_core.so.2.4 file under /usr/lib.

 

 

Let us know if this worked for you.

 

 

-Sergio

 

View solution in original post

3 Replies
idata
Community Manager
95 Views

Hi James,

 

 

We'll do our best to help you with this case. In the Edison, the place you should be looking for this file is under /usr/lib. First, make sure you're using the latest image. Then, configure your Edison to fetch packages from AlexT's repo. You can see instructions here http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html . After successfully running opkg update at the end of the guide, run the commands: opkg install opencv and opkg install opencv-dev. After the download and installation process is finished, run the command ls /usr/lib/ |grep libopencv_core.so.2.4.

 

This should allow you to see the libopencv_core.so.2.4 file under /usr/lib.

 

 

Let us know if this worked for you.

 

 

-Sergio

 

View solution in original post

杰廖杰
New Contributor I
94 Views

Hi, Sergio

Thanks great!

I've update opkg, it cost one hour.

list here for reference:

Is there offline update method? developer can download first(then copy to another), and then flash to Edison by PC.

----------------------------------------------------------

:/etc/opkg# opkg update

Downloading http://repo.opkg.net/edison/repo/all/Packages.gz.

Inflating http://repo.opkg.net/edison/repo/all/Packages.gz.

Updated list of available packages in /var/lib/opkg/all.

Downloading http://repo.opkg.net/edison/repo/edison/Packages.gz.

Inflating http://repo.opkg.net/edison/repo/edison/Packages.gz.

Updated list of available packages in /var/lib/opkg/edson.

Downloading http://repo.opkg.net/edison/repo/core2-32/Packages.gz.

Inflating http://repo.opkg.net/edison/repo/core2-32/Packages.gz.

Updated list of available packages in /var/lib/opkg/core2-32.

Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586//Packages.

Updated list of available packages in /var/lib/opkg/iotkit.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/all/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-all.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-core2-32.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-edison.

root@James_IOT:/etc/opkg# ^C

root@James_IOT:/etc/opkg# opkg install opencv

Installing opencv (2.4.11+git0+2c9547e314-r0) on root.

Downloading http://repo.opkg.net/edison/repo/core2-32/opencv_2.4.11+git0+2c9547e314-r0_core2-32.ipk.

Configuring opencv.

root@James_IOT:/etc/opkg# ^C

root@James_IOT:/etc/opkg# opkg install opencv-dev

Installing opencv-dev (2.4.11+git0+2c9547e314-r0) on root.

Downloading http://repo.opkg.net/edison/repo/core2-32/opencv-dev_2.4.11+git0+2c9547e314-r0_core2-32.ipk.

python-numpy-dev: unsatisfied recommendation for python-datetime-dev

python-numpy-dev: unsatisfied recommendation for python-pickle-dev

python-numpy-dev: unsatisfied recommendation for python-numbers-dev

python-numpy-dev: unsatisfied recommendation for python-pydoc-dev

python-numpy-dev: unsatisfied recommendation for python-email-dev

python-numpy-dev: unsatisfied recommendation for python-netclient-dev

python-numpy-dev: unsatisfied recommendation for python-shell-dev

python-nose-dev: unsatisfied recommendation for python-core-dev

python-numpy-dev: unsatisfied recommendation for python-pprint-dev

python-numpy-dev: unsatisfied recommendation for python-pkgutil-dev

python-numpy-dev: unsatisfied recommendation for python-subprocess-dev

python-numpy-dev: unsatisfied recommendation for python-difflib-dev

python-numpy-dev: unsatisfied recommendation for python-compression-dev

python-numpy-dev: unsatisfied recommendation for python-distutils-dev

python-numpy-dev: unsatisfied recommendation for python-doctest-dev

python-numpy-dev: unsatisfied recommendation for python-unittest-dev

python-numpy-dev: unsatisfied recommendation for python-misc-dev

python-numpy-dev: unsatisfied recommendation for python-mmap-dev

libpcre-dev: unsatisfied recommendation for libpcreposix-dev

libpcre-dev: unsatisfied recommendation for libpcrecpp-dev

libcairo-dev: unsatisfied recommendation for libxcb-render-dev

libxrender-dev: unsatisfied recommendation for xdmcp-dev

libcairo-dev: unsatisfied recommendation for libxcb-shm-dev

libcairo-dev: unsatisfied recommendation for cairo-perf-utils-dev

libcairo-dev: unsatisfied recommendation for cairo-script-interpreter-dev

libcairo-dev: unsatisfied recommendation for cairo-gobject-dev

gtk+-dev: unsatisfied recommendation for libxcb-render-dev

gtk+-dev: unsatisfied recommendation for update-alternatives-opkg-dev

gtk+-dev: unsatisfied recommendation for libxcb-shm-dev

pango-dev: unsatisfied recommendation for libxcb-render-dev

pango-dev: unsatisfied recommendation for libxcb-shm-dev

opencv-dev: unsatisfied recommendation for libopencv-ts-dev

opencv-dev: unsatisfied recommendation for python-core-dev

Installing libopencv-ocl-dev (2.4.11+git0+2c9547e314-r0) on root.

Downloading <a class="jive-link-external-small" href="https://communities.intel.comhttp://repo.opkg.n...

idata
Community Manager
94 Views

It's good to know the method we suggested worked for you. Keep in mind that offline, the opkg update nor opkg install commands would work. I haven't tried the offline method but, if you had all the files in your computer you could transfer them to an SD card and then copy them to your Edison.

 

 

Anyhow, we recommend you to use the online method because the packages can be easily fetched and installed.

 

 

Let us know if you need further assistance with this case.

 

 

-Sergio

 

Reply