docker-images icon indicating copy to clipboard operation
docker-images copied to clipboard

qt-creator issues

Open fluber opened this issue 8 years ago • 16 comments

run: docker run --rm -ti -v /tmp/.X11-unix:/tmp/.X11-unix zachdeibert/qt-creator 192.168.1.108:0 fluber

get the following error: chown: cannot access '/home/fluber/*': No such file or directory libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Unrecognized OpenGL version Unrecognized OpenGL version

can give some hints to solve this issue.

fluber avatar May 26 '17 10:05 fluber

What platform and what version of X are running on 192.168.1.108?

zachdeibert avatar May 26 '17 11:05 zachdeibert

I use the OS X.

chown: cannot access '/home/fluber/': No such file or directory // this i solve the modify the launch.sh remove the "/home/$2/" .

fluber avatar May 26 '17 12:05 fluber

chown "$2:$2" "/home/$2" "/home/$2/*" is sometimes needed because occasionally I will get a file owned by root in there and it won't like it. However, the exit status of that command is ignored, so it shouldn't be contributing to the crash.

zachdeibert avatar May 26 '17 12:05 zachdeibert

Are you using XQuartz as your X11 server?

zachdeibert avatar May 26 '17 12:05 zachdeibert

Yes, I use XQuartz .

https://fredrikaverpil.github.io/2016/07/31/docker-for-mac-and-gui-applications/

fluber avatar May 26 '17 12:05 fluber

after sudo apt-get install nvidia-304-dev

solve this problem.

fluber avatar May 29 '17 03:05 fluber

Did you run that command inside the container or outside it?

zachdeibert avatar May 29 '17 10:05 zachdeibert

I install it in the container.

fluber avatar Jun 04 '17 13:06 fluber

I'll see if I can add it to the Dockerfile without breaking it on machines without an Nvidia graphics card.

zachdeibert avatar Jun 04 '17 13:06 zachdeibert

Yes, My hardware is OS X 10.10.5 iMac.

But has another little problem is when QtCreator Run, Will pop a dialog about plugin "Unable to create OpenGL context". I did not find solution now.

fluber avatar Jun 04 '17 13:06 fluber

Okay. I'll look into that also.

zachdeibert avatar Jun 04 '17 13:06 zachdeibert

After installing Nvidia drivers I also got errors about "Unable to create OpenGL context". I fix this by adding --device /dev/nvidia0 --device /dev/nvidiactl to docker run command, e.g. $ docker run --device /dev/nvidia0 --device /dev/nvidiactl -v /tmp:/tmp zachdeibert/qt-creator $DISPLAY $USER

svponomarev avatar Dec 06 '17 00:12 svponomarev

Hi, @zachdeibert ,

Thanks for your work!

When I run docker run zachdeibert/qt-creator $DISPLAY $USER I see the messages like

chown: cannot access '/home/myaccount/*': No such file or directory
QXcbConnection: Could not connect to display :0
Aborted (core dumped)

What possible solution is for that without editing launch.sh on my side?

cvlal9ol avatar Oct 03 '19 10:10 cvlal9ol

@al9ol Try docker run -v /tmp:/tmp zachdeibert/qt-creator $DISPLAY $USER

zachdeibert avatar Oct 03 '19 15:10 zachdeibert

Hi @zachdeibert , thanx for your work! I have problems with qt-creator,

ubuntu@ubuntu:~$ docker run -v /tmp:/tmp zachdeibert/qt-creator $DISPLAY $USER              
chown: cannot access '/home/ubuntu/*': No such file or directory
LLVM ERROR: Cannot select: intrinsic %llvm.x86.sse41.pblendvb
Segmentation fault (core dumped)

/home/ubuntu/.config/QtProject/qtcreator exists in my host system because i have installed qt-creator. So is there any way to use my local settings if exists?

xakod avatar Jun 21 '21 08:06 xakod

Hi @zachdeibert thanks for this masterpiece. How does one update the qt version?

riorevoo avatar Jun 13 '22 10:06 riorevoo