eryar / occQt

A simple OpenCASCADE Qt demo.
MIT License
280 stars 129 forks source link

on ubuntu need opengl in pro file and shoudl change include files ord… #20

Open mahaidong opened 3 years ago

mahaidong commented 3 years ago

I had solve some error in ubuntu:

/home/microartisan/Downloads/occQt-master/occView.h:15: error: QGLWidget: No such file or directory

include

      ^~~~~~~~~~~

/usr/include/x86_64-linux-gnu/qt5/QtCore/qmetatype.h:58: error: #error qmetatype.h must be included before any header file that defines Bool

error qmetatype.h must be included before any header file that defines Bool

^~~~~

mahaidong commented 3 years ago

also sovle this :

OpenGl_Windows::CreateWindow: window visual is incom… …

…plete: no depth buffer, no stencil buffer

grotius-cnc commented 3 years ago

The first question in this thread can by solved by replacing in file : occView.h the include QGLWidget to include QWidget at line 15.