This repository contains officially supported plugins for the image viewer nomacs.
- CMake
- IDE (i.e. Visual Studio)
- nomacs
- OpenCV (>= 3.4) optional
Qt
SDK or the compiled sources (>= 5.2.1)
- Build nomacs
- Open CMake GUI
- set the plugin repository's root folder containing CMakeLists.txt to
where is the source code
- choose a build folder
- Set OpenCV_DIR, QT_MAKE_EXECUTABLE, and nomacs_DIR
- Copy
CMakeUserPathsGit.cmake
and rename it toCMakeUserPaths.cmake
- Set all paths to your own builds of nomacs etc.
- Copy
- Hit
Configure
thenGenerate
- You will find a nomacs-plugins.sln which builds all plugins and dedicated plugin projects in the respective folders (e.g. PaintPlugin/paintPlugin.sln)
- Tip: Go to Plugin > Properties > Configuration Properties > Debugging and set the Command to your nomacs path (e.g. C:/nomacs/build2015-x64/Debug/nomacs.exe) to better debug your plugin
Build nomacs
Since you need to reference the nomacs resources from the nomacs-plugins directory, specify the nomacs paths in
nomacs-plugins/CMakeUserPaths.cmake:
- Copy CMakeUserPathsGit.cmake
and rename it to CMakeUserPaths.cmake
- Set all paths to your own builds of nomacs etc.
In the nomacs-plugins directory run cmake
to get the Makefiles:
cmake .
Compile Plugins:
make
This will build all the Plugins set to 'ON' in nomacs-plugins/CMakeLists.txt and create a plugins directory in nomacs/ImageLounge. Running ./nomacs from the nomacs/ImageLounge directory should now list all the built Plugins in the Plugins tab.