-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Projucer cmdline cannot be run without X11 #422
Comments
I've faced the same problem when setting up CI, and one possible workaround is to use virtual framebuffer: |
that's what i'm doing right now to circumvent the problem. i still don't see why i have to install a fake X-server with all it's dependencies, just because Projucer is unable to operate on the cmdline without trying to spawn a window (which it never opens) |
This is a serious issue and it's really sad to see it being unnoticed by developers. I'm trying to package a JUCE based app for void linux and it's very ugly because of this bug :( |
I ran into this issue on a recent Ubuntu with X11 / Gnome installed and fully functional. Here is a one-liner: Note, this will fix only your current shell. If you have other open shells, you probably want to close and re-open them. After rebooting your system, all shells will be fine however. After doing that, you will be able to start Projucer from the JUCE folder with |
i have the same issue on my own app. the application can't run from bash if it's not under x11, any news if this could be addressed ? |
I tried this and it's working nicely.
|
As of recent versions of JUCE the Projucer should not need an X server to run the command line, although it will need the various X development packages to build. |
Trying to run Projucer (in cmdline mode) on a headless machine (without any display-server) fails.
On Linux/amd64 (distro: Debian/buster) with Projucer from today's
develop
branch (dbb1345) i get:$ cd JUCE/extras/Projucer/Builds/LinuxMakefile/build $ ./Projucer -resave ../../../../UnitTestRunner/UnitTestRunner.jucer JUCE v5.3.2 No protocol specified No protocol specified Failed to connect to the X Server. $
Our use-case is continuous-integration, where we build JUCE-projects on every push to our git-repository.
Our git repository follows best-practice, and does not include any generated code, so the only build-files are the
.jucer
projects (no Makefiles, XCode, VS-Projects in the repository), and the actual build-system needs to be generated on-the-fly using Projucers
-resave` command.Now I understand that
Projucer
is mainly an IDE to be used with it's fancy GUI.However, when doing CI-builds, we must automate everything, and don't have a GUI available.
Since running
Projucer -resave
doesn't actually open up any window, I would have expected that it does not require a full display server.The simplest way I found for reproducing this (assuming you are working in a running X11-session) is to ssh into the same machine with a different account (and of course have X-forwarding disabled):
The text was updated successfully, but these errors were encountered: