NormalmapGenerator icon indicating copy to clipboard operation
NormalmapGenerator copied to clipboard

Build without qt

Open goetzmoritz opened this issue 7 years ago • 2 comments

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!

goetzmoritz avatar Mar 17 '18 08:03 goetzmoritz

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

Theverat avatar Mar 17 '18 08:03 Theverat

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)

goetzmoritz avatar Mar 17 '18 09:03 goetzmoritz