-
Notifications
You must be signed in to change notification settings - Fork 36
Windows
Luca Weiss edited this page Apr 26, 2019
·
6 revisions
A fun project to get RazerGenie running on Windows.
Install mingw-w64-qt5-base
from the AUR.
~/.local/share/meson/cross/x86_64-w64-mingw32
:
[binaries]
c = '/usr/bin/x86_64-w64-mingw32-gcc'
cpp = '/usr/bin/x86_64-w64-mingw32-g++'
ar = '/usr/bin/x86_64-w64-mingw32-ar'
strip = '/usr/bin/x86_64-w64-mingw32-strip'
pkgconfig = '/usr/bin/x86_64-w64-mingw32-pkg-config'
windres = '/usr/bin/x86_64-w64-mingw32-windres'
exe_wrapper = 'wine64'
[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
meson win32-build --cross-file x86_64-w64-mingw32
ninja -C win32-build
mkdir win32-build/dist
cd win32-build/dist
# copy build exe and libopenrazer dll
cp ../src/razergenie.exe ../src/libopenrazer/libopenrazer-0.dll .
# copy all qt5 + rest dlls (could actually be a subset but copying all was faster)
#cp /usr/x86_64-w64-mingw32/bin/*.dll .
cp /usr/x86_64-w64-mingw32/bin/{Qt5Core,Qt5DBus,Qt5Gui,Qt5Network,Qt5Widgets,libbz2-1,libdbus-1-3,libfreetype-6,libgcc_s_seh-1,libglib-2.0-0,libgraphite2,libharfbuzz-0,libiconv-2,libintl-8,libpcre-1,libpcre2-16-0,libpng16-16,libstdc++-6,libwinpthread-1,zlib1}.dll .
# copy the qt platforms folder (otherwise https://stackoverflow.com/q/20495620)
cp -r /usr/x86_64-w64-mingw32/lib/qt/plugins/platforms/ .
zip -r ../razergenie_windows.zip .
Double-click razergenie.exe
on Windows.