Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Can't build demos and examples

    General and Desktop
    3
    7
    4142
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      At least 4 characters last edited by

      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@

      Boxes:
      @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@

      1 Reply Last reply Reply Quote 0
      • D
        dbzhang800 last edited by

        Please disable the "shadow build"

        1 Reply Last reply Reply Quote 0
        • A
          At least 4 characters last edited by

          It didn't work. Still same errors.

          1 Reply Last reply Reply Quote 0
          • A
            At least 4 characters last edited by

            Is there anything else I can try?

            1 Reply Last reply Reply Quote 0
            • F
              francomartins last edited by

              you are running in debug mode, try in release mode

              1 Reply Last reply Reply Quote 0
              • A
                At least 4 characters last edited by

                Still no luck. :(

                1 Reply Last reply Reply Quote 0
                • A
                  At least 4 characters last edited by

                  one more bump, really want it to work :-)
                  soo any clues why it misbehaves?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post