# How can i do that install openCV for python using libSM.so.6 library that webOS does not have it

**URL:** <https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056>\
**Category:** Platform Development\
**Created:** [April 13, 2020, 12:15pm UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056 "2020-04-13T12:15:08Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/sso/32/333_2.png) [@SSo](https://forum.webosose.org/u/SSo)\
**Post date:** [April 13, 2020, 12:15pm UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/1 "2020-04-13T12:15:08Z")

</div>

Hi!

I did build the webOS for qemux86, Raspberry Pi3, 4 and then install pip using curl to download that can install pip for python.

And I wrote 'pip install opencv-python' to terminal, so successfully install the 'opencv-python' but I can't 'import cv2' because webOS OSE don't have 'libSM.so.6' library.  
I want to import cv2 using libSM.so.6 library

If i want to use libSM.so.6 on webOS, I think need to build the libSM.so.6 library together via yocto. But I don't know how. What should I do?

plz help me.. T.T

u can see below the error messege  
"ImportError: libSM.so.6: cannot open shared object file: No such file or directory"

information :  
hardware : raspberryPi 4 (4GB)

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [April 17, 2020, 12:09am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/2 "2020-04-17T00:09:15Z")

</div>

Hi,

If you have source code to build libSM.so.6, you can build it using toolchain that comes from webOS NDK ([https://www.webosose.org/docs/guides/setup/native-development-kit-setup/](https://www.webosose.org/docs/guides/setup/native-development-kit-setup/)).

than you can move that shared library to the suitable location such as /usr/lib.  
But, I can't give a definite answer because I didn't try that.

Instead of building a libSM library, I try to build OpenCV using yocto. If I will find a proper solution to use OpenCV, I will share how to you.

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [April 22, 2020, 3:37am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/3 "2020-04-22T03:37:12Z")

</div>

As far as I know, webOS OSE already has an oepnCV recipe. So, I tried to build an openCV component, but I met an error and didn't solve it.

build-webos$bitbake opencv

If I will be successful in building an openCV, I will let you know.

@SSo Could you try to build an OpenCV in your build environment?

---

<div class="post-metadata">

**Author:** ![SSo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/sso/32/333_2.png) [@SSo](https://forum.webosose.org/u/SSo)\
**Post date:** [April 23, 2020, 7:02pm UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/4 "2020-04-23T19:02:26Z")

</div>

Hi,  
First of all, I use the ubuntu 18.04 version. First, the results of compiling openCV for raspberry pi 3 are as follows.

```auto
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:14
Parsing of 2607 .bb files complete (0 cached, 2607 parsed). 3627 targets, 460 skipped, 44 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-webos-linux-gnueabi"
MACHINE = "raspberrypi3"
DISTRO = "webos"
DISTRO_VERSION = "2.4.g"
TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU = "hard"
WEBOS_DISTRO_RELEASE_CODENAME = "webos-master"
WEBOS_DISTRO_BUILD_ID = "unofficial"
WEBOS_DISTRO_TOPDIR_REVISION = "199e974a41cea43516572320d32eac3d6df4df79"
WEBOS_DISTRO_TOPDIR_DESCRIBE = "v2.4.0"
DATETIME = "20200422155310"
meta-security = "thud:31dc4e7532fa7a82060e0b50e5eb8d0414aa7e93"
meta-webos-smack     
meta-webos-virtualization 
meta-webos-updater   
meta-webos-raspberrypi = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-raspberrypi = "thud:4e5be97d75668804694412f9b86e9291edb38b9d"
meta-webos           
meta-webos-backports-3.1 
meta-webos-backports-3.0 
meta-webos-backports-2.7 = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-qt5 = "warrior:20331bd6b696793a7aa23a3c035e5ebcf3075aa3"
meta-virtualization = "thud:7685c7d415e0002c448007960837ae8898cd57a5"
meta-updater = "thud:544eecf0f74c708f531328116bcff4386fb3906f"
meta-filesystems     
meta-python          
meta-networking      
meta-multimedia      
meta-oe = "thud:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta = "thud:e68991ceb5933f7d03b96697e8a0ba0829feb320"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 980 Found 0 Missed 980 Current 0 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: icu-native-62.1-r0 do_fetch: Checksum mismatch for local file /home/rora/build-webos/downloads/icu4c-62_1-src.tgz
Cleaning and trying again.
WARNING: icu-native-62.1-r0 do_fetch: Renaming /home/rora/build-webos/downloads/icu4c-62_1-src.tgz to /home/rora/build-webos/downloads/icu4c-62_1-src.tgz_bad-checksum_12e8318ac3a7290b707507d8ef1b48be
WARNING: icu-native-62.1-r0 do_fetch: Checksum failure encountered with download of http://download.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz - will attempt other sources if available
WARNING: glog-0.3.5-r0 do_fetch: Failed to fetch URL git://github.com/google/glog.git;branch=v035, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 2942 tasks of which 5 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Build completion summary:
NOTE: do_populate_sysroot: 0.0% sstate reuse(0 setscene, 223 scratch)
NOTE: do_package_qa: 0.0% sstate reuse(0 setscene, 102 scratch)
NOTE: do_package: 0.0% sstate reuse(0 setscene, 144 scratch)
NOTE: do_packagedata: 0.0% sstate reuse(0 setscene, 144 scratch)
NOTE: do_package_write_ipk: 0.0% sstate reuse(0 setscene, 144 scratch)
NOTE: do_populate_lic: 0.0% sstate reuse(0 setscene, 215 scratch)

Summary: There were 4 WARNING messages shown.

```

I'm compiling openCV for raspberry Pi4. I'll leave a comment when the result comes out.

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [April 24, 2020, 1:54am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/5 "2020-04-24T01:54:46Z")

</div>

It looks successfully to build an openCV for RPI3. Then you can move the IPK file to RPI3(webOS OSE 1.x) and try to install it using opkg command.

Today I reset Ubuntu of my laptop from 14.04 to 18.04. and I will try to build OpenCV for RPI4.

---

<div class="post-metadata">

**Author:** ![SSo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/sso/32/333_2.png) [@SSo](https://forum.webosose.org/u/SSo)\
**Post date:** [April 24, 2020, 3:21am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/6 "2020-04-24T03:21:55Z")

</div>

I did it successfully for raspberryPi 4.  
below is result of my build

```auto
rora@rora:~/Documents/ose/build-webos$ bitbake opencv
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 3627 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-webos-linux-gnueabi"
MACHINE = "raspberrypi4"
DISTRO = "webos"
DISTRO_VERSION = "2.4.g"
TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU = "hard"
WEBOS_DISTRO_RELEASE_CODENAME = "webos-master"
WEBOS_DISTRO_BUILD_ID = "unofficial"
WEBOS_DISTRO_TOPDIR_REVISION = "199e974a41cea43516572320d32eac3d6df4df79"
WEBOS_DISTRO_TOPDIR_DESCRIBE = "v2.4.0"
DATETIME = "20200423191546"
meta-security = "thud:31dc4e7532fa7a82060e0b50e5eb8d0414aa7e93"
meta-webos-smack     
meta-webos-virtualization 
meta-webos-updater   
meta-webos-raspberrypi = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-raspberrypi = "thud:4e5be97d75668804694412f9b86e9291edb38b9d"
meta-webos           
meta-webos-backports-3.1 
meta-webos-backports-3.0 
meta-webos-backports-2.7 = "master:66608405f7ffbe711cd4edc16d38e06611ec1bc8"
meta-qt5 = "warrior:20331bd6b696793a7aa23a3c035e5ebcf3075aa3"
meta-virtualization = "thud:7685c7d415e0002c448007960837ae8898cd57a5"
meta-updater = "thud:544eecf0f74c708f531328116bcff4386fb3906f"
meta-filesystems     
meta-python          
meta-networking      
meta-multimedia      
meta-oe = "thud:446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93"
meta = "thud:e68991ceb5933f7d03b96697e8a0ba0829feb320"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 360 Found 9 Missed 351 Current 612 (2% match, 63% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: glog-0.3.5-r0 do_fetch: Failed to fetch URL git://github.com/google/glog.git;branch=v035, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 2920 tasks of which 2323 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Build completion summary:
NOTE: do_populate_sysroot: 0.0% sstate reuse(0 setscene, 10 scratch)
NOTE: do_package_qa: 0.0% sstate reuse(0 setscene, 102 scratch)
NOTE: do_package: 46.2% sstate reuse(6 setscene, 7 scratch)
NOTE: do_packagedata: 0.0% sstate reuse(0 setscene, 7 scratch)
NOTE: do_package_write_ipk: 0.0% sstate reuse(0 setscene, 7 scratch)
NOTE: do_populate_lic: 0.0% sstate reuse(0 setscene, 215 scratch)

Summary: There was 1 WARNING message shown.
```

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [April 24, 2020, 5:27am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/7 "2020-04-24T05:27:17Z")

</div>

Wow !! Congrats.  
Could you share the built IPK file?

---

<div class="post-metadata">

**Author:** ![SSo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/sso/32/333_2.png) [@SSo](https://forum.webosose.org/u/SSo)\
**Post date:** [April 24, 2020, 5:57am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/8 "2020-04-24T05:57:06Z")

</div>

Yes, but I don't know which of the ipk files on BULD/deploy/ipk/raspberrypi4/ are required for installation. and what method to use to share the ipk file for you?

If you reply to this, I'll share the build ipk file to you.

**lists of result ipk:**

```auto
-rw-r--r-- 2 rora rora 206322 4월 24 04:51 libopencv-aruco3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 972 4월 24 04:51 libopencv-aruco-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 39192 4월 24 04:51 libopencv-bgsegm3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 976 4월 24 04:51 libopencv-bgsegm-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 46542 4월 24 04:51 libopencv-bioinspired3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 970 4월 24 04:51 libopencv-bioinspired-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 388476 4월 24 04:51 libopencv-calib3d3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 972 4월 24 04:51 libopencv-calib3d-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 108582 4월 24 04:51 libopencv-ccalib3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 990 4월 24 04:51 libopencv-ccalib-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 641260 4월 24 04:51 libopencv-core3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 950 4월 24 04:51 libopencv-core-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 99094 4월 24 04:51 libopencv-datasets3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 970 4월 24 04:51 libopencv-datasets-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 32054 4월 24 04:51 libopencv-dpm3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 960 4월 24 04:51 libopencv-dpm-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 160922 4월 24 04:51 libopencv-face3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 978 4월 24 04:51 libopencv-face-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 191420 4월 24 04:51 libopencv-features2d3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 978 4월 24 04:51 libopencv-features2d-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 78648 4월 24 04:51 libopencv-flann3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 958 4월 24 04:51 libopencv-flann-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 27030 4월 24 04:51 libopencv-fuzzy3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 958 4월 24 04:51 libopencv-fuzzy-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 22694 4월 24 04:51 libopencv-hfs3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 962 4월 24 04:51 libopencv-hfs-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 12070 4월 24 04:51 libopencv-highgui3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 970 4월 24 04:51 libopencv-highgui-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 214470 4월 24 04:51 libopencv-imgcodecs3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 972 4월 24 04:51 libopencv-imgcodecs-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 22942 4월 24 04:51 libopencv-img-hash3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 970 4월 24 04:51 libopencv-img-hash-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 723068 4월 24 04:51 libopencv-imgproc3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 962 4월 24 04:51 libopencv-imgproc-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 49404 4월 24 04:51 libopencv-line-descriptor3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 982 4월 24 04:51 libopencv-line-descriptor-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 201388 4월 24 04:51 libopencv-ml3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 950 4월 24 04:51 libopencv-ml-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 123126 4월 24 04:51 libopencv-objdetect3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 972 4월 24 04:51 libopencv-objdetect-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 86264 4월 24 04:51 libopencv-optflow3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 992 4월 24 04:51 libopencv-optflow-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 10304 4월 24 04:51 libopencv-phase-unwrapping3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 978 4월 24 04:51 libopencv-phase-unwrapping-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 163524 4월 24 04:51 libopencv-photo3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 964 4월 24 04:51 libopencv-photo-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 12070 4월 24 04:51 libopencv-plot3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 962 4월 24 04:51 libopencv-plot-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 32844 4월 24 04:51 libopencv-reg3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 962 4월 24 04:51 libopencv-reg-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 125464 4월 24 04:51 libopencv-rgbd3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 970 4월 24 04:51 libopencv-rgbd-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 49540 4월 24 04:51 libopencv-saliency3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 970 4월 24 04:51 libopencv-saliency-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 49792 4월 24 04:51 libopencv-shape3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 970 4월 24 04:51 libopencv-shape-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 35634 4월 24 04:51 libopencv-stereo3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 974 4월 24 04:51 libopencv-stereo-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 140282 4월 24 04:51 libopencv-stitching3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 994 4월 24 04:51 libopencv-stitching-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 25368 4월 24 04:51 libopencv-structured-light3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 1002 4월 24 04:51 libopencv-structured-light-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 29958 4월 24 04:51 libopencv-superres3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 978 4월 24 04:51 libopencv-superres-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 90630 4월 24 04:51 libopencv-surface-matching3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 982 4월 24 04:51 libopencv-surface-matching-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 1185230 4월 24 04:51 libopencv-tracking3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 976 4월 24 04:51 libopencv-tracking-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 924 4월 24 04:51 libopencv-ts-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 83086 4월 24 04:51 libopencv-video3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 964 4월 24 04:51 libopencv-video-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 81244 4월 24 04:51 libopencv-videoio3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 996 4월 24 04:51 libopencv-videoio-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 81978 4월 24 04:51 libopencv-videostab3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 996 4월 24 04:51 libopencv-videostab-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 1070752 4월 24 04:51 libopencv-xfeatures2d3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 980 4월 24 04:51 libopencv-xfeatures2d-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 290046 4월 24 04:51 libopencv-ximgproc3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 980 4월 24 04:51 libopencv-ximgproc-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 27954 4월 24 04:51 libopencv-xobjdetect3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 984 4월 24 04:51 libopencv-xobjdetect-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 63876 4월 24 04:51 libopencv-xphoto3.4_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 968 4월 24 04:51 libopencv-xphoto-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 1008 4월 24 04:51 opencv_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 1402854 4월 24 04:51 opencv-apps_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 59721788 4월 24 04:51 opencv-dbg_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 743190 4월 24 04:51 opencv-dev_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 41888 4월 24 04:51 opencv-samples_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
-rw-r--r-- 2 rora rora 810050 4월 24 04:51 python3-opencv_3.4.3+git0+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4-r0webos2_raspberrypi4.ipk
```

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [April 28, 2020, 11:31pm UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/9 "2020-04-28T23:31:32Z")

</div>

I also succeeded to build the image. So, I have same thing that you have. But, I don't have any idea which IPKs are useful for using the openCV. If i may find, will share with you.

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [April 29, 2020, 2:26am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/10 "2020-04-29T02:26:56Z")

</div>

You can add opencv when building webos-image. Then all libraries will be added after making image,

Before running "bitbake webos-image", you need to add opencv into WEBOS\_FOSS\_MISSING\_FROM\_RDEPENDS of "/build-webos/meta-webosose/meta-webos/recipes-core/packagegroups/packagegroup-webos-extended.bb" file.

```
WEBOS_FOSS_MISSING_FROM_RDEPENDS = " \
    bzip2 \
    curl \
    e2fsprogs \
    hunspell \
    icu \
    iproute2 \
    lsb \
    makedevs \
    ncurses \
    openssl \
    procps \
    psmisc \
    sqlite3 \
    opencv \
    ${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', 'systemd-analyze', 'sysvinit-pidof', d)} \
```

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [May 7, 2020, 5:08am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/11 "2020-05-07T05:08:58Z")

</div>

After creating an image including the openCV, you can use the openCV on python code. But you MUST use 'python3.5' command instead of 'python' command. (As far as I know, default python command of webOS OSE 2.X is based on 2.7.16.

Python 3.5

```
root@raspberrypi4:/usr/lib/python3.5# python3.5
Python 3.5.6 (default, Jan 1 1970, 00:00:00)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2. __version__'3.4.3'
>>> exit()

```

Python 2.7

```
root@raspberrypi4:/usr/lib/python3.5# python
Python 2.7.16 (default, Jan 1 1970, 00:00:00)
[GCC 8.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cv2
>>>
```

---

<div class="post-metadata">

**Author:** ![SSo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/sso/32/333_2.png) [@SSo](https://forum.webosose.org/u/SSo)\
**Post date:** [May 7, 2020, 1:29pm UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/12 "2020-05-07T13:29:58Z")

</div>

Thank u. @nicolas

I'm trying to build

I'll answer the result to you.

---

<div class="post-metadata">

**Author:** ![Flypenguin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/flypenguin/32/347_2.png) [@Flypenguin](https://forum.webosose.org/u/Flypenguin)\
**Post date:** [May 9, 2020, 3:09pm UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/13 "2020-05-09T15:09:52Z")

</div>

Hi @nicolas

I want to create an image including the openCV. But i failed building image.

So could you share image including the openCV?

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [May 12, 2020, 11:30am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/14 "2020-05-12T11:30:25Z")

</div>

I will send you 2.5.0 version with openCV after building the image.

---

<div class="post-metadata">

**Author:** ![hyedinion](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hyedinion](https://forum.webosose.org/u/hyedinion)\
**Post date:** [August 15, 2020, 8:15am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/15 "2020-08-15T08:15:05Z")

</div>

hi can you share image including the openCV to me?

---

<div class="post-metadata">

**Author:** ![nicolas](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@nicolas](https://forum.webosose.org/u/nicolas)\
**Post date:** [August 16, 2020, 11:53am UTC](https://forum.webosose.org/t/how-can-i-do-that-install-opencv-for-python-using-libsm-so-6-library-that-webos-does-not-have-it/1056/16 "2020-08-16T11:53:05Z")

</div>

Hi, @hyedinion

This [link](http://bigfile.mail.naver.com/bigfileupload/download?fid=qZR8BrlC+4EjK3elWzw0KqUrKogXKCYZKAUmKAbqKxUmKAUdK3YwFxv/FqvlFxvlHrKlM4J0FxEwM63CpxJoKoglFrMZKAtdaxkCFzErFzpo) is to download a prebuilt image of webOS OSE 2.6.0 with OpenCV. You can download it until 30, Aug.
