Display error with Qt tutorial sample on linux

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

Benjamin Bihler's picture

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's picture

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's picture

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