Agisoft Metashape

Agisoft Metashape => Bug Reports => Topic started by: lefsky on May 15, 2014, 01:29:17 AM

Title: Can't load OpenCL library
Post by: lefsky on May 15, 2014, 01:29:17 AM
We are trying to get photoscan to work under linux with a new NVIDIA 780 Titan GPU, but it doesn't appear in the OpenCL list. We get the following messages on the console at startup

OpenGL Vendor: nouveau
OpenGL Renderer: Gallium 0.4 on NV96
OpenGL Version: 1.4 (3.0 Mesa 9.2.5)
Maximum Texture Size: 8192
Quad Buffered Stereo: not enabled
ARB_vertex_buffer_object: not supported
ARB_texture_non_power_of_two: supported

and then when we open Preferences and click on the OpenCL tab, the following comes up:

Can't load OpenCL library

Any ideas for how to correct? We are using PS 1.0.4 build 1847 We have updated drivers, etc. and have  libOpenCL.so.1.0.0


Title: Re: Can't load OpenCL library
Post by: pognibene on May 19, 2014, 09:36:35 AM
Hi,

You're using the open source driver nouveau. This can't work. You need to use the proprietary nvidia drivers (I would say at least version 304.xx) and make sure the nouveau driver is not loaded.

Hope this helps,

Pascal
Title: Re: Can't load OpenCL library
Post by: Alexey Pasumansky on May 23, 2014, 12:11:09 PM
Hello lefsky,

Please make sure that libOpenCL.so file exists and points to libOpenCL.so.1.0.0.
Title: Re: Can't load OpenCL library
Post by: mfaxford_ll on May 23, 2014, 12:40:59 PM
If you're doing this on the latest Ubuntu release (14.04) I think there may be an issue in their packages. I've seen people reporting similar issues with other packages using OpenCL (e.g. https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1311362)
Title: Re: Can't load OpenCL library
Post by: nanders on July 09, 2014, 02:09:59 PM
is there a workaround for this already?

I have a dual boot Windows 8 / Linux Mint 17 (based on Ubuntu 14.04 LTS) and an NVIDIA GTX 780 GPU. In Windows everything is working fine, but since the update to 14.04 based linux distribution I can't use the OpenCL library in PS.

With 13.10 I used the nvidia-331 drivers from the repository and was working fine, in contract to 14.04. Installing the latest drivers (340.24) manually made no difference.

I guess this is a ubuntu problem and not so much a photoscan problem, but maybe somebody here found a way to deal with it.

(http://www.nielsanders.nl/forumpics/opencl.png)
Title: Re: Can't load OpenCL library
Post by: nanders on July 14, 2014, 09:04:12 PM
To solve it I had to create a link:

Code: [Select]
ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 ~/Downloads/photoscan-pro/libOpenCL.so

Of course one should change the folder names accordingly..

hope this helps others.
Title: Re: Can't load OpenCL library
Post by: Simon_ on March 29, 2017, 10:13:14 AM
Ubuntu 16.10
Photoscan 1.3.0

Photoscan worked until I installed OpenGL Dev packages.


Using nanders suggestion worked for me!

Code: [Select]
ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 ~/Downloads/photoscan-pro/libOpenCL.so