Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Draw and samples / Display error with Qt tutorial sample on linux

Display error with Qt tutorial sample on linux

Display error with Qt tutorial sample on linux
Benjamin Bihler 2013/03/11 21:33
Hello,

I compiled the Qt tutorial sample on Windows with MSVC 2010 and Qt 4.8.4 and everything worked fine. When I tried to use g++ 4.4.5 and also Qt 4.8.4 on a Debian Linux system, the application works, but there are display errors. I do "File->New", then I create the bottle. When I move the window over the desktop now, after a few movements the 3D view is not correctly redrawn. Instead I see the desktop or some grey area instead of the 3D viewer with the bottle (as shown on the screenshot).

Does anyone know the reason? Thank you very much for any help!

Benjamin
You have to be logged in to download the attached file
Benjamin Bihler 2013/03/15 17:22
      Excuse me, does nobody use Linux or does this display error only happen on my computer or doesn't anyone know a solution? Thanks!
Nicholas Fette 2013/09/03 21:32
Hi Benjamin, I use Ubuntu and I don't have this problem, sorry. Anything changed?

I have other questions about running samples in Linux. Currently, I edit custom.sh, then "source make.sh" and "source run.sh". Now there is a Tutorial.pro file that opens in QtCreator, but QtCreator has been unable to build. How did you build the sample? Thanks.
Benjamin Bihler 2013/09/05 12:35
Hi Nicholas,

my problem is solved now. I have updated to a new Debian version and now these display errors don't occur anymore.

Now to your question: I do not use the QtCreator. I built the sample by writing my own build.pro file. The most difficult part was the library selection. This was the content of one of my first build.pro files:

TEMPLATE = app
TARGET = build
INCLUDEPATH += .
INCLUDEPATH += $$(OCE_INCLUDE_PATH)
QMAKE_LIBDIR += $$(OCE_LIBRARY_PATH)
LIBS += -lGL
LIBS += -lTKernel
LIBS += -lPTKernel
LIBS += -lTKMath
LIBS += -lTKService
LIBS += -lTKV3d
LIBS += -lTKV2d
LIBS += -lTKBRep
LIBS += -lTKIGES
LIBS += -lTKSTL
LIBS += -lTKVRML
LIBS += -lTKSTEP
LIBS += -lTKSTEPAttr
LIBS += -lTKSTEP209
LIBS += -lTKSTEPBase
LIBS += -lTKShapeSchema
LIBS += -lTKGeomBase
LIBS += -lTKGeomAlgo
LIBS += -lTKG3d
LIBS += -lTKG2d
LIBS += -lTKXSBase
LIBS += -lTKPShape
LIBS += -lTKShHealing
LIBS += -lTKHLR
LIBS += -lTKTopAlgo
LIBS += -lTKMesh
LIBS += -lTKPrim
LIBS += -lTKCDF
LIBS += -lTKBool
LIBS += -lTKBO
LIBS += -lTKFillet
LIBS += -lTKOffset

# Input
HEADERS += ../src/ApplicationCommon.h \
../src/ApplicationTut.h \
../src/DocumentCommon.h \
../src/DocumentTut.h \
../src/Material.h \
../src/MDIWindow.h \
../src/Transparency.h \
../src/View.h
SOURCES += ../src/ApplicationCommon.cxx \
../src/ApplicationTut.cxx \
../src/DocumentCommon.cxx \
../src/DocumentTut.cxx \
../src/Main.cxx \
../src/MakeBottle.cxx \
../src/Material.cxx \
../src/MDIWindow.cxx \
../src/Transparency.cxx \
../src/View.cxx
TRANSLATIONS += ../src/Common-icon.ts \
../src/Common-string.ts \
../src/Tutorial-icon.ts \
../src/Tutorial-string.ts


Then I run qmake and after that I have a make file that I can use for compilation. Hope that helps!

Bye,
Benjamin
 
 
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map