Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build without qt #29

Open
goetzmoritz opened this issue Mar 17, 2018 · 2 comments
Open

Build without qt #29

goetzmoritz opened this issue Mar 17, 2018 · 2 comments

Comments

@goetzmoritz
Copy link

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
Copy link
Owner

Theverat commented Mar 17, 2018

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
Copy link
Author

goetzmoritz commented Mar 17, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants