Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can't build demos and examples
Forum Updated to NodeBB v4.3 + New Features

Can't build demos and examples

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 4.4k Views 1 Watching
  • 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 Offline
    A Offline
    At least 4 characters
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      Please disable the "shadow build"

      1 Reply Last reply
      0
      • A Offline
        A Offline
        At least 4 characters
        wrote on last edited by
        #3

        It didn't work. Still same errors.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          At least 4 characters
          wrote on last edited by
          #4

          Is there anything else I can try?

          1 Reply Last reply
          0
          • F Offline
            F Offline
            francomartins
            wrote on last edited by
            #5

            you are running in debug mode, try in release mode

            1 Reply Last reply
            0
            • A Offline
              A Offline
              At least 4 characters
              wrote on last edited by
              #6

              Still no luck. :(

              1 Reply Last reply
              0
              • A Offline
                A Offline
                At least 4 characters
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved