Thank you both! Building and running LuxCoreRender 2.11 with Apple clang worked.
It did involve a bit of a workaround: after successfully running
make deps, I got an error when running
make:
Code: Select all
CMake Error at out/build/generators/conan_toolchain.cmake:16 (include):
include could not find requested file:
/var/folders/ww/jph9065166s_69b23klmhkbh0000gp/T/tmp_8xmvted/.conan2/profiles/macos-vars-ARM64.cmake
From what I understand, this file is written to a temporary folder, which no longer exists when I run make. So I added some lines in deps.py to copy this file to the output folder instead. Then before running
make, I changed the path in conan_toolchain.cmake.
Furthermore, when trying to run luxcoreui, it turned out it did not find the paths to the .dylib files. I actually had the same issue with the ready-made executable; there I moved the dylib files to the bin folder, and I think I had to run all dylib files first, so I could tell macOS for each of them that I trust them.
All in all, the steps I now took were:
- open Terminal (zsh)
- get files from github
git clone https://github.com/LuxCoreRender/LuxCore/
- got to luxcore folder
cd luxcore
- create virtual python environment
python3 -m venv ~/luxvirtual
- activate virtual python environment
source ~/luxvirtual/bin/activate
- adapt deps.py, after line 382:
Code: Select all
# Copy profiles to permanent location
profiles_src = _conan_home / "profiles"
profiles_dest = Path(output_dir) / "build" / "profiles"
if profiles_src.exists():
shutil.copytree(profiles_src, profiles_dest, dirs_exist_ok=True)
logger.info(f"Copied profiles to {profiles_dest}")
- build dependencies
make deps
- adapt conan_toolchain.cmake
Code: Select all
#include("/var/folders/ww/jph9065166s_69b23klmhkbh0000gp/T/tmplap4q5nd/.conan2/profiles/macos-vars-ARM64.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/../profiles/macos-vars-ARM64.cmake")
- add path to OpenMP
export OpenMP_ROOT=$(brew --prefix)/opt/libomp
- build
make
- navigate to Release folder
cd /Users/pistepilvi/LuxCore/out/install/Release
- set library path
export DYLD_LIBRARY_PATH=$(pwd)/lib:$DYLD_LIBRARY_PATH
- run
./bin/luxcoreui