From 89580f2113a190494afd7e9454bad5275beda4c6 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Fri, 22 Oct 2021 01:59:09 +0200 Subject: sdgui: cross-compile for Windows No one bothered to ask whether it /should/ be done. The hamburger needs to be replaced with a file open dialog there. --- README.adoc | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'README.adoc') diff --git a/README.adoc b/README.adoc index 05d1c9c..e81a4b0 100644 --- a/README.adoc +++ b/README.adoc @@ -12,9 +12,9 @@ software. image::sdtui.png[align="center"] -With GTK+ 3 development packages installed, an alternative frontend will also be -built and installed. It shares the default dictionary list with 'sdtui', -but styling will follow your theme, and has to be customized from 'gtk.css'. +As a recent addition, there is now an alternative GTK+ 3 based frontend as well. +It shares its dictionary list with 'sdtui', but styling will follow your theme, +and may be customized from 'gtk.css'. Packages -------- @@ -36,7 +36,8 @@ Runtime dependencies: ncursesw, zlib, ICU, termo (included), glib-2.0 >= 2.38, $ git clone --recursive https://git.janouch.name/p/sdtui.git $ mkdir sdtui/build $ cd sdtui/build - $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_X11=ON + $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug \ + -DWITH_X11=ON -DWITH_GUI=ON $ make To install the application, you can do either the usual: @@ -53,6 +54,18 @@ an argument. It is, however, preferable to link:docs/sdtui.1.adoc#_configuration[configure it] to load your dictionaries automatically. +Windows +~~~~~~~ +With the help of Mingw-w64 and WINE, the GUI will successfully cross-compile +for Windows. It isn't particularly usable on that system, if only because +selection watching is a very X11/Wayland-specific feature. Beware that build +dependencies take up almost a gigabyte of disk space. + + $ sh cmake/Win64Depends.cmake + $ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Win64CrossToolchain.cmake \ + -DCMAKE_BUILD_TYPE=Release -B build + $ cmake --build build -- package + Dictionaries ------------ This application is intended for use with specific dictionaries: each line -- cgit v1.2.3-70-g09d2