pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

Compiling in wayland

Open cristobaltapia opened this issue 4 years ago • 1 comments

Hi, I have compiled both versions 0.18.2 and the latest 7.4.0 in Ubuntu, since I wanted to have them in a "normal" virtual environment. That worked fine, however I cannot get the viewer to start under Wayland (I am using Sway). If I change to the normal Ubuntu desktop (with X) then it works.

I used the makefile in this gist to compile everything (I suck at makefiles, so it is not pretty, but it works :P ):

For the 7.4.0 the makefile is a bit different, but for this issue is probably not relevant as none of them is working as expected under Wayland. Doing make all should create the virtualenv in the current directory under venv. Does anyone have a clue about how I could make it work.

cristobaltapia avatar Aug 07 '20 08:08 cristobaltapia

This is qt's problem.On wayland, winID() can't return right win ID,so pythonocc can't work with qt. There are some informations:https://bugreports.qt.io/plugins/servlet/mobile#issue/QTBUG-76983

ovo-Tim avatar Jul 09 '23 06:07 ovo-Tim