Package Details: luxcorerender-git 2:2.7.beta1.r1.ga061ca97e-1

Git Clone URL: https://aur.archlinux.org/luxcorerender-git.git (read-only, click to copy)
Package Base: luxcorerender-git
Description: Physically correct, unbiased rendering engine.
Upstream URL: https://www.luxcorerender.org/
Licenses: Apache
Conflicts: luxcorerender
Provides: luxcorerender, luxrays
Submitter: bartus
Maintainer: bartus (howetuft)
Last Packager: bartus
Votes: 2
Popularity: 0.000000
First Submitted: 2018-12-06 12:17 (UTC)
Last Updated: 2023-11-23 16:39 (UTC)

Pinned Comments

bartus commented on 2022-03-14 10:34 (UTC)

Sorry lads, I'm at the Polish Ukraine border helping allocate refugees. Expect no update until this hell is over, wish us luck. Have no time nor access to my rig and AUR keys to test/post updates. If you have a patch, ping me on email - I'll add you as co-maintainer. Posted with my old script - https://github.com/bartoszek/aur-post

bartus commented on 2019-04-10 11:42 (UTC) (edited on 2023-11-22 15:49 (UTC) by bartus)

Please report issues and patches to luxcorerender-git/github.com

Latest Comments

MarsSeed commented on 2023-08-16 14:06 (UTC)

With the expected embree3 installed instead of embree v4, the build fails early on:

[95/1056] Building CXX object src/luxrays/CMakeFiles/luxrays.dir/utils/mc.cpp.o
[96/1056] Building CXX object src/luxrays/CMakeFiles/luxrays.dir/utils/cuda.cpp.o
FAILED: src/luxrays/CMakeFiles/luxrays.dir/utils/cuda.cpp.o 
/usr/lib/ccache/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_FILESYSTEM_NO_DEPRECATED 
    -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_NUMPY_NO_LIB -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PYTHON_NO_LIB 
    -DBOOST_PYTHON_STATIC_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SERIALIZATION_NO_LIB -DBOOST_STATIC_LIB -DBOOST_SYSTEM_NO_LIB 
    -DBOOST_THREAD_NO_LIB -DCPP_API_EXPORTS -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/json-3.7.3/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/cuew/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/clew/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/optix-7.1.0/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/spdlog-1.8.0/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/robin-hood-hashing-3.9.1/src/include 
    -I/usr/include/python3.11 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
    -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount 
    -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 
    -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 
    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/home/user/.cache/makepkg/luxcorerender-git/src/build/generated/include 
    -isystem /usr/include/Imath -isystem /usr/include/OpenEXR -w -std=c++11 -Wall -Wno-long-long -pedantic -msse -msse2 -msse3 -mssse3 
    -fPIC -fopenmp -std=gnu++14 -MD -MT src/luxrays/CMakeFiles/luxrays.dir/utils/cuda.cpp.o -MF 
    src/luxrays/CMakeFiles/luxrays.dir/utils/cuda.cpp.o.d -o src/luxrays/CMakeFiles/luxrays.dir/utils/cuda.cpp.o -c 
    /home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/cuda.cpp
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/cuda.cpp: In member function ‘bool 
    luxrays::cudaKernelPersistentCache::CompilePTX(const std::vector<std::__cxx11::basic_string<char> >&, const std::string&, const 
    std::string&, char**, size_t*, bool*, std::string*)’:
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/cuda.cpp:177:44: error: ‘ofstream’ is not a 
    member of ‘boost::filesystem’; did you mean ‘std::ofstream’?
  177 |                         boost::filesystem::ofstream file(boost::filesystem::path(fileName),
      |                                            ^~~~~~~~
In file included from /usr/include/c++/13.2.1/ios:40,
                 from /usr/include/c++/13.2.1/ostream:40,
                 from /usr/include/c++/13.2.1/iostream:41,
                 from /home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/cuda.cpp:21:
/usr/include/c++/13.2.1/iosfwd:167:41: note: ‘std::ofstream’ declared here
  167 |   typedef basic_ofstream<char>          ofstream;
      |                                         ^~~~~~~~
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/cuda.cpp:184:25: error: ‘file’ was not 
    declared in this scope
  184 |                         file.write((char *)&hashBin, sizeof(int));
      |                         ^~~~
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/cuda.cpp:209:44: error: ‘ifstream’ is not a 
    member of ‘boost::filesystem’; did you mean ‘std::ifstream’?
  209 |                         boost::filesystem::ifstream file(boost::filesystem::path(fileName),
      |                                            ^~~~~~~~
/usr/include/c++/13.2.1/iosfwd:164:41: note: ‘std::ifstream’ declared here
  164 |   typedef basic_ifstream<char>          ifstream;
      |                                         ^~~~~~~~
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/cuda.cpp:214:25: error: ‘file’ was not 
    declared in this scope
  214 |                         file.read((char *)&hashBin, sizeof(int));
      |                         ^~~~
[97/1056] Building CXX object src/luxrays/CMakeFiles/luxrays.dir/utils/ocl.cpp.o
FAILED: src/luxrays/CMakeFiles/luxrays.dir/utils/ocl.cpp.o 
/usr/lib/ccache/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_ATOMIC_NO_LIB -DBOOST_CHRONO_NO_LIB -DBOOST_FILESYSTEM_NO_DEPRECATED 
    -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_NO_LIB -DBOOST_NUMPY_NO_LIB -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_PYTHON_NO_LIB 
    -DBOOST_PYTHON_STATIC_LIB -DBOOST_REGEX_NO_LIB -DBOOST_SERIALIZATION_NO_LIB -DBOOST_STATIC_LIB -DBOOST_SYSTEM_NO_LIB 
    -DBOOST_THREAD_NO_LIB -DCPP_API_EXPORTS -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/json-3.7.3/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/cuew/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/clew/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/optix-7.1.0/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/spdlog-1.8.0/include 
    -I/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/deps/robin-hood-hashing-3.9.1/src/include 
    -I/usr/include/python3.11 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
    -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount 
    -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 
    -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 
    -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/home/user/.cache/makepkg/luxcorerender-git/src/build/generated/include 
    -isystem /usr/include/Imath -isystem /usr/include/OpenEXR -w -std=c++11 -Wall -Wno-long-long -pedantic -msse -msse2 -msse3 -mssse3 
    -fPIC -fopenmp -std=gnu++14 -MD -MT src/luxrays/CMakeFiles/luxrays.dir/utils/ocl.cpp.o -MF 
    src/luxrays/CMakeFiles/luxrays.dir/utils/ocl.cpp.o.d -o src/luxrays/CMakeFiles/luxrays.dir/utils/ocl.cpp.o -c 
    /home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/ocl.cpp
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/ocl.cpp: In member function ‘virtual 
    _cl_program* luxrays::oclKernelPersistentCache::Compile(cl_context, cl_device_id, const 
    std::vector<std::__cxx11::basic_string<char> >&, const std::string&, bool*, std::string*)’:
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/ocl.cpp:306:44: error: ‘ofstream’ is not a 
    member of ‘boost::filesystem’; did you mean ‘std::ofstream’?
  306 |                         boost::filesystem::ofstream file(boost::filesystem::path(fileName),
      |                                            ^~~~~~~~
In file included from /usr/include/c++/13.2.1/ios:40,
                 from /usr/include/c++/13.2.1/ostream:40,
                 from /usr/include/c++/13.2.1/iostream:41,
                 from /home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/ocl.cpp:21:
/usr/include/c++/13.2.1/iosfwd:167:41: note: ‘std::ofstream’ declared here
  167 |   typedef basic_ofstream<char>          ofstream;
      |                                         ^~~~~~~~
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/ocl.cpp:313:25: error: ‘file’ was not declared 
    in this scope
  313 |                         file.write((char *)&hashBin, sizeof(int));
      |                         ^~~~
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/ocl.cpp:340:44: error: ‘ifstream’ is not a 
    member of ‘boost::filesystem’; did you mean ‘std::ifstream’?
  340 |                         boost::filesystem::ifstream file(boost::filesystem::path(fileName),
      |                                            ^~~~~~~~
/usr/include/c++/13.2.1/iosfwd:164:41: note: ‘std::ifstream’ declared here
  164 |   typedef basic_ifstream<char>          ifstream;
      |                                         ^~~~~~~~
/home/user/.cache/makepkg/luxcorerender-git/src/luxcorerender/src/luxrays/utils/ocl.cpp:345:25: error: ‘file’ was not declared 
    in this scope
  345 |                         file.read((char *)&hashBin, sizeof(int));
      |                         ^~~~
[98/1056] Building CXX object src/luxrays/CMakeFiles/luxrays.dir/utils/safesave.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'luxcorerender-git-2:2.6.r27.g8a048104b-1'

This was the initial configuration output:

==> Making package: luxcorerender-git 2:2.7.beta1.r0.g2f35684a0-1 (2023-08-16, 15:57:37 CEST)
==> WARNING: Skipping dependency checks.
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
-- CMake version 3.27.1 detected
CMake Deprecation Warning at CMakeLists.txt:29 (cmake_policy):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at CMakeLists.txt:32 (cmake_policy):
  The OLD behavior for policy CMP0072 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

-- The C compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Single-config generator detected
-- Using build variant: 
-- Available custom configurations in cmake/SpecializedConfig:
--   Config_Dade
--   Config_Linux-Static
--   Config_OSX
--   Config_Windows
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found OpenImageIO: /usr/lib/libOpenImageIO.so  
-- #define OPENEXR_VERSION_STRING "3.1.10"
-- Found OpenEXR: /usr/lib/libIex-3_1.so;/usr/lib/libImath-3_1.so;/usr/lib/libOpenEXR-3_1.so;/usr/lib/libIlmThread-3_1.so  
-- Found TIFF: /usr/lib/libtiff.so (found version "4.5.1")  
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13")  
-- Found PNG: /usr/lib/libpng.so (found version "1.6.40") 
CMake Warning (dev) at cmake/Dependencies.cmake:49 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:114 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonLibs: /usr/lib/libpython3.11.so (found suitable version "3.11.3", minimum required is "3.4") 
-- Found Boost: /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.56.0") 
      found components: thread program_options filesystem serialization iostreams regex system python311 chrono serialization numpy311 
-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- OpenMP found - compiling with
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.24.38
-- Found BISON: /usr/bin/bison (found version "3.8.2") 
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
COMPONENT = openvdb
-- Found OpenVDB: /usr/include (found version "10.0.1") found components: openvdb 
-- OpenVDB ABI Version: 10
-- Found Boost: /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found version "1.81.0") found components: iostreams 
-- Found Blosc: /usr/lib/libblosc.so (found version "1.21.4") 
-- OpenCL support: enabled
-- CUDA support: enabled
-- Intel OIDN support: enabled
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.7") found components: doxygen dot 
-- Found Doxygen and generating LuxRays documentation
-- Doxygen LuxRays output: /luxrays/html/index.html
-- Found dot
-- Found Doxygen and generating SLG documentation
-- Doxygen SLG output: /slg/html/index.html
-- Found dot
-- Found Doxygen and generating LuxCore documentation
-- Doxygen LuxCore output: /luxcore/html/index.html
-- Found dot
CMake Warning at src/pyluxcoretools/CMakeLists.txt:74 (message):
  pyside-uic not available - using pre-generated files from the source tree
-- Configuring done (3.0s)
-- Generating done (1.1s)

MarsSeed commented on 2023-07-23 19:05 (UTC)

Please kindly fix this build just like you did with luxcorerender: even current master branch needs embree3, not embree v4.

And lto option needs to be disabled.

bartus commented on 2022-03-14 10:34 (UTC)

Sorry lads, I'm at the Polish Ukraine border helping allocate refugees. Expect no update until this hell is over, wish us luck. Have no time nor access to my rig and AUR keys to test/post updates. If you have a patch, ping me on email - I'll add you as co-maintainer. Posted with my old script - https://github.com/bartoszek/aur-post

bartus commented on 2021-07-16 22:40 (UTC)

This package is also hosted on GitHub.
Use env vars to control build process:
  • DISABLE_CUDA=1 to skip cuda kernel build
  • DISABLE_OPENCL=1 to skip opecl kernel build
  • FRAGMENT="#{commit,tag,branch}=..." for making bisect build.
  • MAKEFLAGS="xxx" to override default make flags (check oom-killer disclaimer below)
Usage cases:
  • export DISABLE_CUDA=1 before build
  • DISABLE_CUDA=1 ~your-aur-helper~
  • makepkg DISABLE_CUDA=1
  • yay -S blender-2.8-git --mflags "DISABLE_CUDA=1"
Yay/paru/pamac users warning:

Since those aur helpers relies solely on aur-rpc or .SRCINFO to solve dependencies instead of calling makepkg --sync it can't follow dependencies logic defined in PKGBUILD. That's why it's up to the user to provide dependencies to enable desired features.

tl;dr; If you want to prebuild cycles kernels, you have to install CUDA beforehand. If you don't have CUDA installed, PKGBUILD will fail unless you disable cuda with DISABLE_CUDA=1.

Out of memory killer.

You may use ninja-mem to prevent oom-killer when building on system with low memory to core ratio.

To activate use MAKEFLAGS+=" -m75" where 75 is the percentage upper threshold of memory usage when new build jobs is postponed.

Or simply lower the make jobs count in "MAKEFLAGS" variable, but this will prolong your build process.

bartus commented on 2019-04-10 11:42 (UTC) (edited on 2023-11-22 15:49 (UTC) by bartus)

Please report issues and patches to luxcorerender-git/github.com