Project

General

Profile

Bug #10181

Darktable does not find OpenCL library if its file's name contains the lib version

Added by Carlos Maiolino over 4 years ago. Updated over 4 years ago.

Status:
Fixed
Priority:
Low
Category:
General
Start date:
11/01/2014
Due date:
% Done:

100%

Affected Version:
1.4.2
System:
Fedora/RHEL
bitness:
64-bit
hardware architecture:
amd64/x86

Description

While trying to load libOpenCL, darktable searches exclusively by a file named: "libOpenCL.so", but, depending on the Linux distribution used, the file name might have it's version appended to the name.
In my system, specifically (Fedora 20), the lib path is: /lib64/libOpenCL.so.1 (symlink to the real lib file). And most (if not all libs in the system) has the same naming style.

Since darktable looks exclusively for "libOpenCL.so", it is unsable to load the lib saying it wasn't able to find it.

Creating a new symlink in the lib64 directory quickly fixes the problem, but, any user with no OS experience might not be able to identify it. (It took me some time to web search to find darktable debug options :)

Hope the report helps :)

I reproduced this problem on Fedora 20, with the fedora rpm version of darktable 1.4.2, not sure if any other versions are affected by this problem

Cheers.

Associated revisions

Revision 4276165d
Added by Ulrich Pegelow over 4 years ago

opencl: accept libOpenCL.so and libOpenCL.so.1 as valid run time libraries (fixes #10181)

History

#1 Updated by Pascal de Bruijn over 4 years ago

  • Target version set to Candidate for next major release
  • Category changed from Buildsystem to General
  • Assignee set to Ulrich Pegelow

#2 Updated by Ulrich Pegelow over 4 years ago

Should be rather easy to fix. I'll have a look in the next few days.

#3 Updated by Ulrich Pegelow over 4 years ago

I just pushed a fix to git master. Please check and give feedback.

#4 Updated by Ulrich Pegelow over 4 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

#5 Updated by Ulrich Pegelow over 4 years ago

  • Status changed from In Progress to Fixed
  • % Done changed from 50 to 100

Also available in: Atom PDF