Skip to content

Commit

Permalink
build instructions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
diemmarkus authored Jul 17, 2020
1 parent fa56c94 commit 408c4be
Showing 1 changed file with 14 additions and 31 deletions.
45 changes: 14 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,28 @@ This repository contains officially supported plugins for the image viewer [noma
### Prerequisites

- CMake
- IDE (i.e. Visual Studio)
- git
- python
- [nomacs](https://github.com/nomacs/nomacs)
- [OpenCV](https://github.com/TUWien/opencv) (>= 3.4) _optional_
- `Qt` SDK or the compiled sources (>= 5.2.1)

### Building Plugins (Windows)
## Building Plugins

1. Build [nomacs](https://github.com/nomacs/nomacs)
2. Open CMake GUI
3. set the plugin repository's root folder containing CMakeLists.txt to `where is the source code`
4. choose a build folder
5. Set OpenCV_DIR, QT_MAKE_EXECUTABLE, and nomacs_DIR
- Copy `CMakeUserPathsGit.cmake` and rename it to `CMakeUserPaths.cmake`
- Set all paths to your own builds of nomacs etc.
6. Hit `Configure` then `Generate`
7. You will find a nomacs-plugins.sln which builds all plugins and dedicated plugin projects in the respective folders (e.g. PaintPlugin/paintPlugin.sln)
8. 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
- Clone [nomacs](https://github.com/nomacs/nomacs.git)
- cd to the repository, then:
```bash
git submodule init
git submodule update
```
- this will clone the plugins repository to ./ImageLounge/plugins
- follow the build instructions of nomacs
- This will build all the Plugins set to 'ON' in nomacs-plugins/CMakeLists.txt.

## Build Plugins (Ubuntu)

- Clone [nomacs](https://github.com/nomacs/nomacs.git)
- cd to `nomacs/ImageLounge`
- clone this [repository](https://github.com/nomacs/nomacs-plugins.git) into `plugins`:
````terminal
git clone https://github.com/nomacs/nomacs-plugins.git plugins
````
- in `ImageLounge` create a folder `build` and run cmake:
````
mkdir build
cd build
cmake -DENABLE_PLUGINS=ON ..
````
- then build the project:
````terminal
make
````

This will build all the Plugins set to 'ON' in nomacs-plugins/CMakeLists.txt. Running ./nomacs from the nomacs/ImageLounge directory should now list all the built Plugins in the Plugins tab.
### Debug Plugins (Visual Studio)

Tip: Go to Your Plugin > Properties > Configuration Properties > Debugging and set the command to your nomacs path (e.g. C:/nomacs/build/Debug/nomacs.exe) to better debug your plugin

## Links

Expand Down

0 comments on commit 408c4be

Please sign in to comment.