Is there a way to start CloudCompare on a server?

Feel free to ask any question here
Post Reply
swiss_knight
Posts: 28
Joined: Sun Aug 30, 2015 12:11 pm

Is there a way to start CloudCompare on a server?

Post by swiss_knight »

Hi,

I'm wondering if, for example for CPU power reasons, one can start CloudCompare on a server ?

I have a local Linux server on which I usually connect through SSH.
I have installed CloudCompare from sources.

But when I try to start it in the so called "command line mode" (I feel it doesn't seem to be purely a command line mode...) I encountered this issue:

Code: Select all

QXcbConnection: Could not connect to display 
Aborted (core dumped)
Any workaround, for example to make CC thinks there is a display even if there isn't ?

Thanks.
Norman
Posts: 1
Joined: Thu Jul 17, 2025 11:34 am

Re: Is there a way to start CloudCompare on a server?

Post by Norman »

Hi,

I recently encountered a similar issue while virtualizing CloudCompare in a Docker image, as part of a project I’m working on. After analyzing CloudCompare’s dependencies, it turned out that the problem came from Qt, which handles the graphical interface and causes issues when no display environment is available.

To work around this, I looked into Qt’s configuration options and found an environment variable that resolved the issue in my case:

"QT_QPA_PLATFORM=offscreen"

By setting this variable in the Docker runtime environment, I was able to run CloudCompare without a graphical interface and without encountering further Qt-related errors.

This solution should also work in other headless environments such as SSH sessions or systems without a GUI.
daniel
Site Admin
Posts: 8158
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Is there a way to start CloudCompare on a server?

Post by daniel »

Thanks for sharing! Super useful.
Daniel, CloudCompare admin
Post Reply