It seems that DISABLE_OPENCL=1 is needed to enable opencl, otherwise, PKGBUILD file end up adding -DLUXRAYS_DISABLE_OPENCL=ON to cmake cmd.
Search Criteria
Package Details: luxcorerender 2:2.7.beta1-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/luxcorerender.git (read-only, click to copy) |
---|---|
Package Base: | luxcorerender |
Description: | Physically correct, unbiased rendering engine. |
Upstream URL: | https://www.luxcorerender.org/ |
Licenses: | Apache |
Provides: | luxrays |
Submitter: | bartus |
Maintainer: | bartus (howetuft) |
Last Packager: | bartus |
Votes: | 14 |
Popularity: | 0.000003 |
First Submitted: | 2018-05-11 21:03 (UTC) |
Last Updated: | 2025-04-28 09:06 (UTC) |
Dependencies (21)
- blosc (blosc-gitAUR)
- boost-libs
- embree3
- glfw (glfw-gitAUR, glfw-wayland-minecraft-cursorfixAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classicAUR, gtk3-classic-xfceAUR)
- opencl-icd-loaderAUR (khronos-ocl-icd-gitAUR, ocl-icd)
- openimagedenoise (openimagedenoise-gitAUR)
- openimageio (openimageio-gitAUR)
- openvdb
- python (python37AUR)
- spdlog (spdlog-gitAUR)
- boost (boost-gitAUR) (make)
- cmake (cmake3AUR, cmake-gitAUR) (make)
- cuda-sdk (cuda-8.0AUR, cuda-9.0AUR, cuda-10.2AUR, cuda-11.1AUR, cuda11.1AUR, cuda11.1-toolsAUR, cuda-11.7AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR, cuda) (make)
- doxygen (doxygen-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- ninja (ninja-kitwareAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR, ninja-memAUR) (make)
- opencl-headers (opencl-headers-gitAUR) (make)
- pyside2-toolsAUR (make)
- opencl-driver (opencl-nvidia-410xxAUR, amdapp-sdkAUR, opencl-nvidia-440xxAUR, vc4cl-gitAUR, opencl-nvidia-430xxAUR, beignet-gitAUR, intel-openclAUR, clvk-gitAUR, mesa-wsl2-gitAUR, opencl-nvidia-340xxAUR, opencl-legacy-amdgpu-proAUR, opencl-510xx-nvidiaAUR, amdonly-gaming-opencl-rusticl-mesa-gitAUR, intel-compute-runtime-binAUR, intel-compute-runtime-gitAUR, opencl-nvidia-535xxAUR, beignetAUR, opencl-nvidia-470xxAUR, opencl-nvidia-525xxAUR, opencl-nvidia-teslaAUR, intel-compute-runtime-legacyAUR, opencl-nvidia-390xxAUR, intel-compute-runtime-legacy-binAUR, opencl-nvidia-vulkanAUR, opencl-nvidia-550xxAUR, mesa-gitAUR, opencl-amdAUR, opencl-mesa-minimal-gitAUR, mesa-fp8-gitAUR, opencl-nvidia-565xxAUR, opencl-nvidia-betaAUR, intel-compute-runtime, intel-oneapi-compiler-shared-runtime, opencl-mesa, opencl-nvidia, rocm-opencl-runtime) (optional) – for gpu acceleration
- Show 1 more dependencies...
Required by (3)
Sources (15)
- 0001-cxx-version.patch
- 0002-silence-compiler-warnings.patch
- 0003-silence-preprocessing.patch
- 0004-glfw.patch
- 0005-boost107400.patch
- 0006-python.patch
- 0007-cpplib.patch
- 0008-clang-isnan-isinf.patch
- 0009-openexr3.patch
- 0010-openvdb.patch
- 0011-openimageio.patch
- 0012-opencolorio.patch
- 0013-boost179-fstream.patch
- 0014-spdlog.patch
- https://github.com/LuxCoreRender/LuxCore/archive/luxcorerender_v2.7beta1.tar.gz
minxu commented on 2020-08-21 01:11 (UTC)
bartus commented on 2020-06-11 15:37 (UTC)
@travnick, Can't reproduce, could you please check if problem prevails with extra-x86_64-build
bartus commented on 2020-06-11 15:32 (UTC) (edited on 2020-08-22 09:39 (UTC) by bartus)
This package is also hosted on GitHub.
- Please report
issues
andpatches
at GitHub. - Travis Build Status: <img alt="Build Status" src="https://travis-ci.org/bartoszek/AUR-luxcorerender.svg?branch=travis" />
Use env vars to control build process:
DISABLE_OPENCL=1
to skip opencl kernel build (yields DISABLE_CUDA=1)DISABLE_CUDA=1
to skip cuda kernel build.
Usage cases:
export DISABLE_CUDA=1
before buildDISABLE_CUDA=1 ~your-aur-helper~
makepkg DISABLE_CUDA=1
yay -S blender-2.8-git --mflags "DISABLE_CUDA=1"
travnick commented on 2020-06-07 17:27 (UTC)
I'm unable to build it:
-- Configuring done
CMake Error in src/luxrays/CMakeLists.txt:
Imported target "Boost::thread" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
bartus commented on 2019-10-19 14:37 (UTC) (edited on 2019-10-19 14:40 (UTC) by bartus)
@NorthSailor: Yep, fixed.
We could even drop glfw
from dedpends
as it's a dependency of testing gui.
nsailor commented on 2019-10-19 07:50 (UTC) (edited on 2019-10-19 07:50 (UTC) by nsailor)
Is there any reason why this package depends on glfw-x11 instead of just glfw? I'm running Sway and changing the dependency to glfw (satisfied by glfw-wayland on my system) seems to work fine.
bartus commented on 2019-10-06 12:24 (UTC) (edited on 2019-10-06 12:32 (UTC) by bartus)
@omgold: Can't reproduce: I have the same flags in link.txt
as in your case.
build/samples/luxcoredemo/CMakeFiles/luxcoredemo.dir/link.txt
/usr/bin/c++
-march=x86-64
-mtune=generic
-O2
-pipe
-fno-plt
-std=c++11
-Wall
-Wno-long-long
-pedantic
-msse
-msse2
-msse3
-mssse3
-fPIC
-fopenmp
-Wl,--version-script='/build/luxcorerender/src/LuxCore-luxcorerender_v2.2/cmake/exportmaps/linux_symbol_exports.map'
-rdynamic
CMakeFiles/luxcoredemo.dir/luxcoredemo.cpp.o
-o
../../bin/luxcoredemo
-Wl,-rpath,"\$ORIGIN"
../../lib/libluxcore.a
../../lib/libslg-core.a
../../lib/libslg-film.a
../../lib/libslg-kernels.a
../../lib/libluxrays.a
../../lib/libbcd.a
../../lib/libopenvdb.a
-lembree3
-lOpenImageDenoise
-ltbb
-ltbb
-ltiff
-ltiff
-lIex
-lIlmImf
-lHalf
-lImath
-lIlmThread
-lpng
-lz
-ljpeg
/usr/lib64/libboost_thread.so.1.71.0
/usr/lib64/libboost_program_options.so.1.71.0
/usr/lib64/libboost_filesystem.so.1.71.0
/usr/lib64/libboost_serialization.so.1.71.0
/usr/lib64/libboost_iostreams.so.1.71.0
/usr/lib64/libboost_regex.so.1.71.0
/usr/lib64/libboost_system.so.1.71.0
/usr/lib64/libboost_python37.so.1.71.0
/usr/lib64/libboost_chrono.so.1.71.0
/usr/lib64/libboost_serialization.so.1.71.0
/usr/lib64/libboost_numpy37.so.1.71.0
-lpython3.7m
-lOpenCL
-lpthread
/usr/lib64/libboost_python37.so.1.71.0
-lOpenImageIO
-lGL
-lOpenCL
But luxcoredemo
builds without the issue, and it gets linked with /usr/lib/libGLX.so
as expected
ldd build/bin/luxcoredemo |grep -i glx
libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007fb822ebd000)
Could you perhaps try build luxcorerender
with extra-x86_64-build
from devtools
( you can use -r /tmp
flag to build in ram ) ( resolve missing oidn
dep with -- -I "$$oidn$$pkg.tar"
flag )
omgold commented on 2019-10-06 09:08 (UTC)
It seems there is a library dependency issue. Stuff that needs OpenCL seems to need GLX also:
/usr/lib/ccache/bin/c++ -march=haswell -mtune=native -O2 -pipe -fstack-protector-strong -fno-plt -std=c++11 -Wall -Wno-long-long -pedantic -msse -msse2 -msse3 -mssse3 -fPIC -fopenmp -Wl,--version-script='/home/omangold/cache/luxcorerender/luxcorerender/src/LuxCore-luxcorerender_v2.2/cmake/exportmaps/linux_symbol_exports.map' -rdynamic CMakeFiles/luxcoredemo.dir/luxcoredemo.cpp.o -o ../../bin/luxcoredemo -Wl,-rpath,"\$ORIGIN" ../../lib/libluxcore.a ../../lib/libslg-core.a ../../lib/libslg-film.a ../../lib/libslg-kernels.a ../../lib/libluxrays.a ../../lib/libbcd.a ../../lib/libopenvdb.a -lembree3 -lOpenImageDenoise -ltbb -ltbb -ltiff -ltiff -lIex -lIlmImf -lHalf -lImath -lIlmThread -lpng -lz -ljpeg -lboost_thread -lpthread -lboost_program_options -lboost_filesystem -lboost_serialization -lboost_iostreams -lboost_regex -lboost_system -lboost_python3 -lboost_chrono -lboost_serialization -lboost_numpy3 -lboost_date_time -lboost_atomic -lpython3.7m -lOpenCL -lOpenImageIO -lboost_thread -lpthread -lboost_program_options -lboost_filesystem -lboost_serialization -lboost_iostreams -lboost_regex -lboost_system -lboost_python3 -lboost_chrono -lboost_serialization -lboost_iostreams -lboost_regex -lboost_system -lboost_python3 -lboost_chrono -lboost_numpy3 -lboost_date_time -lboost_atomic -lOpenCL
/usr/bin/ld: ../../lib/libluxrays.a(device.cpp.o): in function luxrays::OpenCLDeviceDescription::GetOCLContext() const':
device.cpp:(.text+0xaa8): undefined reference to
glXGetCurrentContext'
/usr/bin/ld: device.cpp:(.text+0xab3): undefined reference to `glXGetCurrentDisplay'
collect2: error: ld returned 1 exit status
make[2]: [samples/luxcoredemo/CMakeFiles/luxcoredemo.dir/build.make:143: bin/luxcoredemo] Error 1
make[2]: Leaving directory '/srv/cache/omangold/luxcorerender/luxcorerender/src/LuxCore-luxcorerender_v2.2/build'
make[1]: [CMakeFiles/Makefile2:600: samples/luxcoredemo/CMakeFiles/luxcoredemo.dir/all] Error 2
make[1]: Leaving directory '/srv/cache/omangold/luxcorerender/luxcorerender/src/LuxCore-luxcorerender_v2.2/build'
make: *** [Makefile:87: all] Error 2
bartus commented on 2019-04-10 11:42 (UTC)
Please report issues
and patches
to luxcorerender@github.com
Pinned Comments
bartus commented on 2020-06-11 15:32 (UTC) (edited on 2020-08-22 09:39 (UTC) by bartus)
This package is also hosted on GitHub.
issues
andpatches
at GitHub.Use env vars to control build process:
DISABLE_OPENCL=1
to skip opencl kernel build (yields DISABLE_CUDA=1)DISABLE_CUDA=1
to skip cuda kernel build.Usage cases:
export DISABLE_CUDA=1
before buildDISABLE_CUDA=1 ~your-aur-helper~
makepkg DISABLE_CUDA=1
yay -S blender-2.8-git --mflags "DISABLE_CUDA=1"
bartus commented on 2019-04-10 11:42 (UTC)
Please report
issues
andpatches
to luxcorerender@github.com