harfbuzz patch is no more needed
but need to add -D CMAKE_POLICY_VERSION_MINIMUM=3.5 to the cmake:
so just replace the harfbuzz patch by this cmake one.
Desipite this it still fail latter in "third_party/SDL2-2.0.8/src/video/kmsdrm/SDL_kmsdrmopengles.c:40:81", ((SDL_VideoData )_this->driverdata)->gbm* is an oncompatible pointer type.
diff --git a/build-lin.sh b/build-lin.sh
index 7716b30..e658f94 100755
--- a/build-lin.sh
+++ b/build-lin.sh
@@ -18,6 +18,7 @@ pushd third_party/SDL2-2.0.8
-D SDL_SHARED:BOOL=OFF
-D CMAKE_INSTALL_PREFIX="../linux64"
-G "Unix Makefiles"
+ -D CMAKE_POLICY_VERSION_MINIMUM=3.5
-D CMAKE_DEBUG_POSTFIX="_debug"
-D SDL_STATIC_PIC:BOOL=ON
'
@@ -32,5 +33,8 @@ popd
mkdir -p build
cd build
+# We must set these cxxflags so harfbuzz header is found:
+# https://gitlab.kitware.com/cmake/cmake/issues/19531
+CXXFLAGS=$(pkgconf --cflags harfbuzz) \
cmake $@ .. || exit 1
make -j || exit 1
Pinned Comments
haawda commented on 2022-11-21 10:35 (UTC)
Please build in a clean chroot.