← Back to team overview

hugin-devs team mailing list archive

[Bug 1305794] [NEW] OpenCL enabled build fails

 

Public bug reported:

My newly built enblend binary printed a lot of those lines:
enblend: info: no OpenCL support compiled into Enblend

So I looked into how to compile enblend with OpenCL support.
I've found this cmake switch:
-DENABLE_OPENCL:BOOL=ON

and this package in my repos:
nvidia-opencl-dev

Next I got an error from make package right at the beginning:
/bin/sh: 1: cannot create /home/kaefert/src/enblend/enblend.build_1044/src/kernels/distance_transform_fh.icl: Directory nonexistent

So I created the directory manually, and now my compiling fails after 44% with a lot of lines like those:
opencl.cc:(.text._ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs[_ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs]+0x1d6): undefined reference to `clReleaseDevice'
opencl.cc:(.text._ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs[_ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs]+0x2d9): undefined reference to `clRetainDevice'

** Affects: enblend
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/1305794

Title:
  OpenCL enabled build fails

Status in Enblend:
  New

Bug description:
  My newly built enblend binary printed a lot of those lines:
  enblend: info: no OpenCL support compiled into Enblend

  So I looked into how to compile enblend with OpenCL support.
  I've found this cmake switch:
  -DENABLE_OPENCL:BOOL=ON

  and this package in my repos:
  nvidia-opencl-dev

  Next I got an error from make package right at the beginning:
  /bin/sh: 1: cannot create /home/kaefert/src/enblend/enblend.build_1044/src/kernels/distance_transform_fh.icl: Directory nonexistent

  So I created the directory manually, and now my compiling fails after 44% with a lot of lines like those:
  opencl.cc:(.text._ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs[_ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs]+0x1d6): undefined reference to `clReleaseDevice'
  opencl.cc:(.text._ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs[_ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs]+0x2d9): undefined reference to `clRetainDevice'

To manage notifications about this bug go to:
https://bugs.launchpad.net/enblend/+bug/1305794/+subscriptions


Follow ups

References