On 2018-11-03 10:49 a.m., Robert-André Mauchin wrote:
As explained in my previous mail this is solved by passing -DPYTHON_V=3 to
cmake. Actually %{python3_pkgversion} would be better:
- Use BuildRequires: boost-devel instead of static and add the PYTHON_V=%
{python3_pkgversion} variable as a cmake parameter. It will now detect Boost
correctly
%cmake \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DLUXRAYS_DISABLE_OPENCL=0" \
-DPYTHON_V=%{python3_pkgversion}
Thanks. The suggestion worked. Another question is how to apply a patch
on this example
Source0:
https://github.com/%{name}/LuxCore/archive/luxcorerender_v%{version}.tar.gz
Source1:
https://github.com/%{name}/BlendLuxCore/archive/blendluxcore_v%{version}....
Patch0: %{name}-cmake-python.patch
%prep
%autosetup -Np1 -n LuxCore-%{name}_v%{version}
%autosetup -T -D -a 1 -n LuxCore-%{name}_v%{version}
The build keeps on rejecting the patch in this case. Is there a better
alternative?
Luya