Theverat / NormalmapGenerator

A simple program that converts images into normal maps
GNU General Public License v3.0
416 stars 51 forks source link

Build without qt #29

Open goetzmoritz opened 6 years ago

goetzmoritz commented 6 years ago

Hi,

I'd like to have a release based on command line level in order to generate normal maps without the gui. Is that possible?

Thanks!

Theverat commented 6 years ago

You can start Qt programs in command line mode without UI with the -platform offscreen arguments: (found here)

./NormalmapGenerator -platform offscreen

However you would have to add the handling of command line arguments for setting parameters and saving the generated images, as this is currently not possible via command line. A place where it could be added is here, where I already handle image paths as arguments: https://github.com/Theverat/NormalmapGenerator/blob/master/src_gui/mainwindow.cpp#L99

goetzmoritz commented 6 years ago

Thanks. The output of the latest pre-compiled linux-binary

0.4.1

gave me:

./NormalmapGenerator -platform offscreen
This application failed to start because it could not find or load the Qt platform plugin "offscreen".

Available platform plugins are: xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)