Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.97 KB

Building.md

File metadata and controls

59 lines (43 loc) · 1.97 KB

Building Notepad Next

To build Notepad Next you will need a compatible C++ compiler, the Qt libraries, and the Notepad Next source code.

Windows

This section specifically describes how to build Notepad Next using Microsoft's Visual Studio 2019 compiler.

Installing Visual Studio 2019

  1. Download the installer for Visual Studio 2019 Community (other versions should work if you have those installed already).
  2. Run the installer
  3. Select the 'Desktop development with C++'
  4. Complete the installation

Installing Qt Libraries

  1. Download the Qt installer
  2. Run the installer.
  3. Select 'custom installation'
  4. Install any version of Qt >= 5.15:
  • MSVC 2019 64-bit located under the desired version of Qt
  • If Qt 6+ is being used, you must also install Qt 5 Compatibility Module
  • Developer and Design Tools > Qt Creator CDB Debugger Support
  • Developer and Design Tools > Debugging Tools for Windows

Cloning the Notepad Next Repository

  1. In a command prompt (or git shell, powershell, etc) run:
  2. git clone --recurse-submodules https://github.com/dail8859/NotepadNext.git
  3. cd NotepadNext
  4. git checkout dev

Building/Running Notepad Next

  1. Open src/NotepadNext.pro with Qt Creator
  2. Configure the project for 'Desktop Qt 5.15.2 MSVC2019 64bit'
  3. Press Ctrl+R
  4. Qt Creator will build and run the project.

Linux

Using a fresh Ubuntu 21.10 setup, the following script will install the needed dependencies and build the executable:

sudo apt install qtbase5-dev qt5-qmake qtbase5-dev-tools qtbase5-private-dev libqt5x11extras5-dev build-essential git
git clone --recurse-submodules https://github.com/dail8859/NotepadNext.git
cd NotepadNext
mkdir build
cd build
qmake ../src/NotepadNext.pro
make -j$(nproc)

If encountered /usr/lib/qt5/bin/lrelease not found error. Please install qttools5-dev-tools.

sudo apt-get install qttools5-dev-tools