Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can't build demos and examples
Hello, I just installed Qt and wanted to try some examples. I couldn't build many of them. I use Windows 7 and I built for Desktop. I got these errors from Affine Transformations, Arthur Plugin:
@:-1: error: cannot find -ldemo_shared
:-1: error: collect2: ld returned 1 exit status
Plug & Paint gave this:
@:-1: error: cannot find -lpnp_basictoolsd
:-1: error: collect2: ld returned 1 exit status@
@C:\QtSDK\Demos\4.7\boxes-build-desktop-Qt_4_8_0_for_Desktop_-MinGW__Qt_SDK__Debug..\boxes\qtbox.cpp:-1: In member function 'virtual void QtBox::paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)':
C:\QtSDK\Demos\4.7\boxes-build-desktop-Qt_4_8_0_for_Desktop-_MinGW__Qt_SDK__Debug..\boxes\qtbox.cpp:327: error: 'gluPerspective' was not declared in this scope@
Cube OpenGL ES 2.0 Example:
@C:\QtSDK\Examples\4.7\opengl\cube-build-desktop-Qt_4_8_0_for_Desktop_-MinGW__Qt_SDK__Debug..\cube\mainwidget.cpp:-1: In member function 'void MainWidget::initTextures()':
C:\QtSDK\Examples\4.7\opengl\cube-build-desktop-Qt_4_8_0_for_Desktop-MinGW__Qt_SDK__Debug..\cube\mainwidget.cpp:135: error: 'GL_TEXTURE0' was not declared in this scope
C:\QtSDK\Examples\4.7\opengl\cube-build-desktop-Qt_4_8_0_for_Desktop-_MinGW__Qt_SDK__Debug..\cube\mainwidget.cpp:135: error: 'glActiveTexture' was not declared in this scope@
dbzhang800 last edited by
Please disable the "shadow build"
It didn't work. Still same errors.
Is there anything else I can try?
francomartins last edited by
you are running in debug mode, try in release mode
Still no luck. :(
one more bump, really want it to work :-)
soo any clues why it misbehaves?