




















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
I'm getting the following message during makepkg -sir:
==> Checking for packaging issues...
==> WARNING: Package contains reference to $srcdir
usr/bin/milton
Please build in a clean chroot.
I get this error:
/var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:4796: undefined reference to `wl_proxy_get_version'
/usr/bin/ld: /var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:4796: undefined reference to `wl_proxy_marshal_flags'
/usr/bin/ld: ../third_party/SDL2-2.0.8/build/linux64/lib/libSDL2d.a(SDL_waylandmouse.c.o): in function `wl_buffer_destroy':
/var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:2017: undefined reference to `wl_proxy_get_version'
/usr/bin/ld: /var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:2017: undefined reference to `wl_proxy_marshal_flags'
/usr/bin/ld: /var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:2017: undefined reference to `wl_proxy_get_version'
/usr/bin/ld: /var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:2017: undefined reference to `wl_proxy_marshal_flags'
/usr/bin/ld: ../third_party/SDL2-2.0.8/build/linux64/lib/libSDL2d.a(SDL_waylandmouse.c.o): in function `wl_compositor_create_surface':
/var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:1291: undefined reference to `wl_proxy_get_version'
/usr/bin/ld: /var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:1291: undefined reference to `wl_proxy_marshal_flags'
/usr/bin/ld: ../third_party/SDL2-2.0.8/build/linux64/lib/libSDL2d.a(SDL_waylandtouch.c.o): in function `wl_registry_bind':
/var/tmp/pamac-build-tio/milton-git/src/milton/third_party/SDL2-2.0.8/build/linrelease/wayland-generated-protocols/wayland-client-protocol.h:1175: undefined reference to `wl_proxy_marshal_flags'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Milton.dir/build.make:148: Milton] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/Milton.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I get this error:
-- Build files have been written to: /var/tmp/pamac-build-tio/milton/src/build
[ 20%] Building CXX object CMakeFiles/shadergen.dir/src/shadergen.cc.o
cc1plus: error: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security]
cc1plus: note: unrecognized command-line option ‘-Wno-extern-c-compat’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-c++11-compat-deprecated-writable-strings’ may have been intended to silence earlier diagnostics
cc1plus: some warnings being treated as errors
make[2]: *** [CMakeFiles/shadergen.dir/build.make:76: CMakeFiles/shadergen.dir/src/shadergen.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/shadergen.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
The last update broke this. I can start it and also change all the settings but I am unable to draw, in fact the brush doesn't appear on the screen, not even the cursor. I had no luck compiling this my self and I stupidly deleted my cache... I would really appreciate it if this got fixed, also let me know if I am missing something!
sadly does not build :( collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/Milton.dir/build.make:155: Milton] Error 1 make[1]: [CMakeFiles/Makefile2:98: CMakeFiles/Milton.dir/all] Error 2 make: *** [Makefile:104: all] Error 2
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Please build in a clean chroot.