This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Blender missing a library - libopencv_highgui

Tags: None
(comma "," separated)
faname
Registered Member
Posts
1
Karma
0
OS
It seems I have the right package installed, but blender is still not working

Code: Select all
/usr/lib
❯ ldd =blender | grep "not found"                                                                                                                            2
        libopencv_highgui.so.2.4 => not found

/usr/lib
❯ sudo apt install libopencv-highgui3.2       
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libopencv-highgui3.2 is already the newest version (3.2.0+dfsg-4build2+16.04+xenial+build4).
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

/usr/lib
❯ apt-file search libopencv_highgui                   
^C

/usr/lib
❯ ldd =blender | grep "not found"                                                                                                                          130
        libopencv_highgui.so.2.4 => not found

/usr/lib
❯ apt-file search libopencv_highgui                   
libopencv-highgui-dev: /usr/lib/x86_64-linux-gnu/libopencv_highgui.a
libopencv-highgui-dev: /usr/lib/x86_64-linux-gnu/libopencv_highgui.so
libopencv-highgui2.4v5: /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4
libopencv-highgui2.4v5: /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9

/usr/lib 7s
❯ sudo apt install libopencv-highgui2.4v5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libopencv-highgui2.4v5 is already the newest version (3.2.0+dfsg-4build2+16.04+xenial+build4).
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

/usr/lib
❯ dpkg -S libopencv_highgui.so.2.4       
dpkg-query: no path found matching pattern *libopencv_highgui.so.2.4*

/usr/lib
❯ dpkg-query -L libopencv-highgui2.4v5                                                                                                                       1
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libopencv-highgui2.4v5
/usr/share/doc/libopencv-highgui2.4v5/changelog.Debian.gz
/usr/share/doc/libopencv-highgui2.4v5/copyright
User avatar
TKL-Ansi
Registered Member
Posts
42
Karma
0
OS
First off, it's super simple to run Blender on Neon.
Go to the Blender website,
download latest version,
extract archive,
run blender executable.

---
Don't know why apt doesn't install Blender properly.
Maybe because Neon focuses on KDE Software.
I just did a test in a virtual machine, running Mint 18.3, which is also
based on Ubuntu 16.04 and the installation worked fine.


:wq
Nayar
Registered Member
Posts
38
Karma
0
OS
Having this issue too.

I prefer to maintain my systems using `apt`.


rwicks
Registered Member
Posts
1
Karma
1
I take it you're getting this error when attempting to run on the command line:

blender: error while loading shared libraries: libopencv_highgui.so.2.4: cannot open shared object file: No such file or directory


You can get the libopencv-dev to fix this, although it's not going to be so.2.4 but so.3.2

Code: Select all
sudo apt-get install libopencv-dev


Now you have to make a symbolic link:

Code: Select all
cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libopencv_highgui.so.3.2 libopencv_highgui.so.2.4


I've not tried it too much, since I'm at work, and I'm just playing with Blender but that will probably work for you. Using different (newer) versions of libraries is usually OK, but engh, maybe not.. Anyhow, I was able to fire up blender.

Yeah, agree it's annoying that it's not working properly but I'm looking a gifthorse in the mouth.
Algaris
Registered Member
Posts
1
Karma
0
I made an account just to say I'm also having this issue. I love Neon and this was my first issue with it in over 6 months. Otherwise smooth sailing.
NostalgiaNinja
Registered Member
Posts
1
Karma
0
OS
rwicks wrote:I take it you're getting this error when attempting to run on the command line:

blender: error while loading shared libraries: libopencv_highgui.so.2.4: cannot open shared object file: No such file or directory


You can get the libopencv-dev to fix this, although it's not going to be so.2.4 but so.3.2

Code: Select all
sudo apt-get install libopencv-dev


Now you have to make a symbolic link:

Code: Select all
cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libopencv_highgui.so.3.2 libopencv_highgui.so.2.4


I've not tried it too much, since I'm at work, and I'm just playing with Blender but that will probably work for you. Using different (newer) versions of libraries is usually OK, but engh, maybe not.. Anyhow, I was able to fire up blender.

Yeah, agree it's annoying that it's not working properly but I'm looking a gifthorse in the mouth.


Thank you so much for explaining the symlinking process to get Blender working again. +1
User avatar
jnmnmz
Registered Member
Posts
1
Karma
0
rwicks wrote:I take it you're getting this error when attempting to run on the command line:

blender: error while loading shared libraries: libopencv_highgui.so.2.4: cannot open shared object file: No such file or directory


You can get the libopencv-dev to fix this, although it's not going to be so.2.4 but so.3.2

Code: Select all
sudo apt-get install libopencv-dev


Now you have to make a symbolic link:

Code: Select all
cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libopencv_highgui.so.3.2 libopencv_highgui.so.2.4


I've not tried it too much, since I'm at work, and I'm just playing with Blender but that will probably work for you. Using different (newer) versions of libraries is usually OK, but engh, maybe not.. Anyhow, I was able to fire up blender.

Yeah, agree it's annoying that it's not working properly but I'm looking a gifthorse in the mouth.


Yes, this works!
Thank you very much. You are a genius.
I made an account to be able to thank you.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]