Theverat / NormalmapGenerator

A simple program that converts images into normal maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build without qt

goetzmoritz opened this issue · comments

commented

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!

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

commented

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)