-
Notifications
You must be signed in to change notification settings - Fork 215
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
qucs commandline operations (schematics -> netlist conversion) require X server #756
Comments
not a design choice. that's a bug. thanks for reporting. |
Is this going to be up for grabs or looked into by somebody? Since we're on
a quite tight schedule with this I'm thinking I'll set up a development
environment on Linux and look into this, even if it means making a
quick-and-dirty fix. Assuming I manage to correct it maybe then somebody
with a bit more knowledge about this codebase could turn it into a more
sensible fix.
|
if you are willing to take a look into this, I'll assign this issue to you, as a reminder in case someone else also wants to help. |
Sure! Go ahead and assign it to me - my teammate is looking into that issue
right now and we may have gotten somewhere so it makes sense to claim it.
I'll keep the issue updated on our findings.
Also, since we preferably need a stable version does it make sense to
branch it off master and only then issue a PR to develop?
|
if you find the bug, please file a PR against master. i'm curious how many changes this requires (fingers crossed). |
I changed the instantiation of application to Method When I removed
I am afraid that this won't be an easy fix. The codebase seems to be very reliant on Qt. |
The first command line options were added before 0.0.18, see 1b817bc. On the MacOS the command line execution also briefly fires up the application icon on the dock bar, meaning that it is not really just a command line execution. You are right, the Can you try to set Please try [1] http://doc.qt.io/qt-4.8/qapplication.html#QApplication-2 |
That doesn't help much - while it allows QApplication to instantiate, it soon throws an exception ( |
lots of untangling will be required in the future... if you can't solve this one easily, it will still help a lot if you add your insights to the code. as comments.
etc. nobody will look here, when refactoring happens... |
Fair enough - will keep this in mind and either of us will try to document such cases when we get some time. Might also have some time around January to actually sit down and assess how complex the entire thing is. It surely isn't going to be trivial though, even if this |
Future Qucs (>=0.1.0) will not require X anymore, but it needs finishing. It's not going to happen in 0.0.20. |
As of version 0.0.19 (probably also previous builds) using
qucs
from commandline under Linux seems to require X server to be present. Sincequcsconv
does not support converting schematics (.sch) to netlists (or at least said feature is not mentioned in the Wiki) it renders the program unusable under environments where X server is unavailable.In case it's as simple as me misusing qucs, that's what I am trying to launch:
Executing these commands where X server is available results in correct behaviour ("try to load schematic..." etc. output to stdout, files are created and they seem to contain valid data), whereas otherwise the only feedback I'm receiving is
A quick sweep around the source code shows that a
QApplication
is instantiated in all cases, even when using qucs purely from commandline - which seems like an awkward design choice.EDIT:
Issue still persists on the latest code from
develop
branch.Cheers!
The text was updated successfully, but these errors were encountered: