To build Notepad Next you will need a compatible C++ compiler, the Qt libraries, and the Notepad Next source code.
This section specifically describes how to build Notepad Next using Microsoft's Visual Studio 2019 compiler.
- Download the installer for Visual Studio 2022 Community (other versions should work if you have those installed already).
- Run the installer
- Select the 'Desktop development with C++'
- Complete the installation
- Download the Qt installer
- Run the installer.
- Select 'custom installation'
- Install any version of Qt >= 6.2 (5.15 may also work):
MSVC 2019 64-bit
located under the desired version of QtQt 5 Compatibility Module
(not needed for Qt 5.x)Developer and Design Tools
>Qt Creator CDB Debugger Support
Developer and Design Tools
>Debugging Tools for Windows
- In a command prompt (or git shell, powershell, etc) run:
git clone --recurse-submodules https://github.com/dail8859/NotepadNext.git
- Open
src/NotepadNext.pro
with Qt Creator - Configure the project for 'Desktop Qt 6.2.4 MSVC2019 64bit'
- Press
Ctrl+R
- Qt Creator will build and run the project.
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 qttools5-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)