Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 1.55 KB

COMPILATION.md

File metadata and controls

80 lines (58 loc) · 1.55 KB

Compilation (QMake Windows)

  1. Download Qt Open Source installer: https://www.qt.io/download-open-source

  2. Install Qt 6.4.2 (Mingw 64 bit and its tool)

  3. Set Qt and mingw 64 binaries path

set QTDIR=C:\Qt6\6.4.2\mingw_64
set PATH=%PATH%;%QTDIR%\bin;C:\Qt6\Tools\mingw1120_64\bin
  1. Download QScintilla 2.14.1 and install https://riverbankcomputing.com/software/qscintilla/download
cd QScintilla_src-2.14.1/src
qmake qscintilla.pro
make
make install
  1. cd blink
  2. qmake blink.pro
  3. mingw32-make

Compilation (QMake Linux)

  1. Download Qt Open Source installer: https://www.qt.io/download-open-source

  2. Install Qt 6.6.1

  3. Link qmake to /usr/bin/qmake

sudo ln -s /home/ychclone/Qt/6.6.1/gcc_64/bin/qmake /usr/bin/qmake
  1. Download QScintilla 2.14.1 and install https://riverbankcomputing.com/software/qscintilla/download

Set to static library for qscintilla

qscintilla.pro:
  CONFIG += staticlib

Compile and install QScintilla

cd QScintilla_src-2.14.1/src
qmake qscintilla.pro
make
make install
  1. Install dependencies
sudo apt install libgl1-mesa-dev
sudo apt-get install libxcb-cursor0
  1. Build in QMake
qmake blink.pro
make 

AppImage

  1. Download linuxdeployqt-7-x86_64.AppImage: https://github.com/probonopd/linuxdeployqt/releases

  2. chmod u+x linuxdeployqt-7-x86_64.AppImage

  3. copy compiled blink executable to blinkAppImage/usr/bin/

  4. ./linuxdeployqt-7-x86_64.AppImage blinkAppImage/usr/share/applications/blink.desktop -verbose=2 -appimage -extra-plugins=iconengines,platformthemes/libqgtk3.so