Skip to content

Instantly share code, notes, and snippets.

==> Installing kde-mac/kde/kf6-kbookmarks dependency: kde-mac/kde/kf6-sonnet
==> cmake -G Ninja -B build -S . -D BUILD_QCH=ON -D BUILD_TESTING=ON -D BUILD_TESTS=ON -D BUILD_UNITTESTS=ON -D CMAKE_INSTALL_BUNDLEDIR=/opt/homebrew/Cellar/kf6-sonnet/6.5
==> cmake --build build
Last 15 lines from /Users/liangqi/Library/Logs/Homebrew/kf6-sonnet/02.cmake:
#include "sonnet/settings.h"
^~~~~~~~~~~~~~~~~~~
"Sonnet/settings.h"
1 warning generated.
[186/205] /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x70000 -DQT_DISABLE_DEPRECATED_BEFORE=0x60500 -DQT_FORCE_ASSERTS -DQT_MAC_USE_COCOA -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/tmp/kf6-sonnet-20240906-48867-c52fy/sonnet-6.5.0/build/autotests\" -DQT_TESTCASE_SOURCEDIR=\"/tmp/kf6-sonnet-20240906-48867-c52fy/so
@liangqi
liangqi / gist:208e52cc8be6be2fe617d68ca043dce4
Created August 22, 2024 12:10
glmark2 result on Raspberry Pi OS (arm64) on rpi5(real)
$ glmark2-wayland
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Broadcom
GL_RENDERER: V3D 7.1
GL_VERSION: 3.1 Mesa 23.2.1-1~bpo12+rpt3
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x600 windowed
@liangqi
liangqi / gist:fb8bd2eb279e335944a67c77997af596
Created August 20, 2024 12:27
vkmark result on Ubuntu 24.04 (arm64) on M1 Mac mini(real)
$ vkmark
ERROR: VkInstanceCreateInfo::pApplicationInfo::apiVersion has value of 0 which is not permitted. If apiVersion is not 0, then it must be greater than or equal to the value of VK_API_VERSION_1_0 [VUID-VkApplicationInfo-apiVersion]
=======================================================
vkmark 2017.08
=======================================================
Vendor ID: 0x10005
Device ID: 0x0
Device Name: llvmpipe (LLVM 17.0.6, 128 bits)
Driver Version: 1
Device UUID: 32342e312e307e707265323032343032
@liangqi
liangqi / gist:dcad13da007c92360a6c698be8b4f1f1
Created August 20, 2024 12:26
glmark2 result on Ubuntu 24.04 (arm64) on M1 Mac mini(real)
$ glmark2-wayland
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Mesa
GL_RENDERER: Apple M1 (G13G B1)
GL_VERSION: 4.6 (Compatibility Profile) Mesa 24.1.0~pre20240228-1asahi2.24.04
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x600 windowed
@liangqi
liangqi / gist:3c2b5ff7b5ee92224ba503f842bb4631
Created April 12, 2024 19:55
glmark2 result on ubuntu 24.04 beta(arm64) on MBP M3 Max(UTM)
$ glmark2
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Mesa
GL_RENDERER: virgl (ANGLE (Apple, Apple M3 Max, OpenGL 4.1 Metal - 88))
GL_VERSION: 2.1 Mesa 24.0.3-1ubuntu4
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0 samples=0
Surface Size: 800x600 windowed
@liangqi
liangqi / gist:e71a7fde634ed89cff5e5cf651309244
Created April 10, 2024 20:42
glmark2 result on fedora rawhide vm(arm64) on MBP M3 Max(VMware Fusion)
$ glmark2
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: VMware, Inc.
GL_RENDERER: SVGA3D; build: RELEASE; LLVM;
GL_VERSION: 4.3 (Compatibility Profile) Mesa 24.0.4
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x600 windowed
@liangqi
liangqi / gist:cffcc564b7e8e6805ca9fc3a13b17d2f
Last active February 21, 2024 09:31
list QtWayland client commits only in dev, but not in 5.15
In qtwayland source repo, latest dev branch
$ git merge-base origin/dev origin/5.15
76eda41dab9ddccf4c2a38d981c9b03bc7f051d0
$ git log --invert-grep --grep="5.15" --since=76eda41dab9ddccf4c2a38d981c9b03bc7f051d0 --oneline | grep client
9bad0fc2 client: Support Xdg activation across shell surfaces
fdb29f3f client: Fix xdg shell setting only a minimum size hint
f61e39ac client: Switch qt-toplevel-drag to xdg-toplevel-drag
9e1e6665 client: Clean up old registry on reconnect
qt@richards-office:~/qt/qtbase-build/tests/manual/startsystemmove$ export QT_LOGGING_RULES="*.debug=false;qt.qpa.input.devices.debug=true"
qt@richards-office:~/qt/qtbase-build/tests/manual/startsystemmove$ ./startsystemmove
qt.qpa.input.devices: register QPointingDevice("Virtual core pointer" Mouse id=2 seat=30002 caps=Position|Scroll|Hover)
qt.qpa.input.devices: register QInputDevice("Virtual core keyboard", type=QInputDevice::DeviceType::Keyboard, ID=3, seat='30002')
qt.qpa.input.devices: input device "Virtual core XTEST pointer" ID 4
qt.qpa.input.devices: has 10 buttons
qt.qpa.input.devices: has valuator "Rel X" recognized? true
qt.qpa.input.devices: has valuator "Rel Y" recognized? true
qt.qpa.input.devices: it's a scrolling device
qt.qpa.input.devices: it's a mouse
@liangqi
liangqi / Makefile
Created January 20, 2021 16:04 — forked from mertyildiran/Makefile
transregion: X11 SHAPE extension input region demo
# Makefile for transregion
CFLAGS = -g
LDFLAGS = -L/usr/X11R6/lib -lXpm -lXext -lX11 -lm
all: transregion
transregion: transregion.o
$(CC) -o transregion transregion.o $(LDFLAGS)
$ cmake -DBUILD_EXAMPLES=OFF -DCMAKE_TOOLCHAIN_FILE=/opt/android/android-ndk-r20/build/cmake/android.toolchain.cmake -DQT_HOST_PATH=/home/qt/work/install/host -DANDROID_SDK_ROOT=/opt/android/sdk -DCMAKE_INSTALL_PREFIX=/home/qt/work/install/target -DANDROID_ABI=x86_64 -DBUILD_TESTING=OFF /home/qt/work/qt/qtbase
-- Android toolchain file detected, checking configuration defaults...
-- ANDROID_NATIVE_API_LEVEL was not specified, using API level 21 as default
-- Using vcpkg from /home/qt/vcpkg
-- Using vcpkg triplet x64-android
-- The ASM compiler identification is Clang
-- Found assembler: /opt/android/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
-- Check for working CXX compiler: /opt/android/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
-- Check for working CXX compiler: /opt/android/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- works
-- Detecting CXX compiler ABI info