ср, 2 апр. 2025 г., 20:50 Andrew Randrianasulu <[email protected]>:

>
>
> ср, 2 апр. 2025 г., 14:50 Andrea paz via Cin <[email protected]>:
>
>> I tried to do a compile with Andrew's patch but it fails. The patch is
>> not to blame because I tried to do a new compile without the patch and
>> it too fails. The last compilation I did successfully was from the
>> March release. Then I had not attempted any others so I don't know
>> which commit leads to the error.
>> The appimage works, but it is from the same period as my working compile.
>> I attach the cin.log
>>
>
> ====
>
> CMake Erro
> r at CMakeLists.txt:20 (cmake_minimum_required):
>                            Compatibility with CMake < 3.5 has been removed
> from CMake.
>   Update the VERSION argument <min> value.  Or, use the <min>...<max>
> syntax                         to tell CMake that the project requires at
> least <min> but has been updated                        to work with
> policies introduced by <max> or earlier.
>
>                                  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5
> to try configuring anyway.
>
> =====
>
>
> Cmake fail in libx265 ?
>
> can you re-run just make without make clean so it will be cleaner where it
> stopped?
>

I tried blindly add this suggestion from error message to our x265 patch.
git am patch attached

I wonder if Arch's own x265 4.0 now fails to build  too?
Gentoo surprizingly at 3.6

>
> --
>> Cin mailing list
>> [email protected]
>> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>>
>
From dc54eee55102d06a3d0bd99d16cf4e9965604e83 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Wed, 2 Apr 2025 21:11:26 +0300
Subject: [PATCH] cmake 4 fix in libx265 ?

---
 cinelerra-5.1/thirdparty/src/x265_4.0.patch3 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cinelerra-5.1/thirdparty/src/x265_4.0.patch3 b/cinelerra-5.1/thirdparty/src/x265_4.0.patch3
index e97af1d6..38e5ba90 100644
--- a/cinelerra-5.1/thirdparty/src/x265_4.0.patch3
+++ b/cinelerra-5.1/thirdparty/src/x265_4.0.patch3
@@ -9,27 +9,27 @@
 +cd 12bit
 +if [ $(uname -m) == 'x86_64' ]; then
 +  # 64-bit stuff here
-+cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
++cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5
 +else
 +  # 32-bit stuff here
-+cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=OFF -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
++cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=OFF -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5
 +fi
 +make
 +
 +cd ../10bit
 +if [ $(uname -m) == 'x86_64' ]; then
 +  # 64-bit stuff here
-+cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
++cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
 +else
 +  # 32-bit stuff here
-+cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=OFF -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
++cmake ../source -DHIGH_BIT_DEPTH=ON -DENABLE_ASSEMBLY=OFF -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
 +fi
 +make
 +
 +cd ../8bit
 +ln -sf ../10bit/libx265.a libx265_main10.a
 +ln -sf ../12bit/libx265.a libx265_main12.a
-+cmake ../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DENABLE_SHARED=OFF -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DENABLE_CLI=OFF
++cmake ../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DENABLE_SHARED=OFF -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DENABLE_CLI=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
 +make
 +
 +# rename the 8bit library, then combine all three into libx265.a
-- 
2.48.1

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to