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

Can't start qtcreator in docker #2

Open
ignacioi96 opened this issue Apr 23, 2023 · 1 comment
Open

Can't start qtcreator in docker #2

ignacioi96 opened this issue Apr 23, 2023 · 1 comment

Comments

@ignacioi96
Copy link

As the title explains when running the command provided I get an error. Here it is:

`docker run -it -v /tmp:/tmp rain92/kobo-qt-dev qtcreator $DISPLAY
Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

/launch.sh: line 10: 7 Aborted (core dumped) qtcreator
`

pretty new to docker and I'm not sure what to do... any ideas?

@ignacioi96
Copy link
Author

ignacioi96 commented Apr 24, 2023

found a solution by running the following on the command line.

xhost +local:

and then

docker run -it -e DISPLAY=$DISPLAY -v /tmp:/tmp rain92/kobo-qt-dev
once inside the container run

qtcreator

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

1 participant