Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18532

Compile fails with MinGW

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • Qt3D TP1
    • 4.7.2
    • Qt3D
    • None
    • Windows, MinGW

    Description

      Originally reported via email by johan.paul@gmail.com

      Hello everyone,

      I am new to the list but thought that this is the best place to get
      help for my compilation issues.

      I am trying to compile Qt 3D in Windows 7. I have Qt 4.7.4 (from Git
      master, yesterday) compiled and installed on my system and I've used
      minGW environment to do so.

      But I am now facing some compilation issues when trying to compile Qt
      3D from Git master (taken today). Compilation is going fine for a long
      time, until I get the following error:

      g++" -o debug\main.o c:\src\qt\qt3d\src\plugins\mouse3d\win32input\main.cpp
      In file included from
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32inputdevice.h:49,
                      from
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32handler.h:46,
                      from c:\src\qt\qt3d\src\plugins\mouse3d\win32input\main.cpp:43:
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:61:
      warning: '__stdcall__' attribute only applies to function types
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:61:
      error: typedef 'pRegisterRawInputDevices' is initialized (use decltype
      instead)
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:61:
      error: 'PCRAWINPUTDEVICE' was not declared in this scope
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:61:
      error: expected primary-expression before 'uiNumDevices'
      In file included from
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32inputdevice.h:49,
                      from
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32handler.h:46,
                      from c:\src\qt\qt3d\src\plugins\mouse3d\win32input\main.cpp:43:
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:61:
      error: expected primary-expression before 'cbSize'
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:64:
      warning: '__stdcall__' attribute only applies to function types
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:64:
      error: typedef 'pGetRawInputDeviceList' is initialized (use decltype
      instead)
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:64:
      error: 'PRAWINPUTDEVICELIST' was not declared in this scope
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:64:
      error: expected primary-expression before 'puiNumDevices'
      c:\src\qt\qt3d\src\plugins\mouse3d\win32input\/qmouse3dwin32info.h:64:
      error: expected primary-expression before 'cbSize'
      

      So I am missing the declaration of PCRAWINPUTDEVICE. I am following
      the simple instructions on the page
      http://doc.qt.nokia.com/qt3d-snapshot/qt3d-building.html but there's
      not much to it. So I am wondering what dependency or definition am I
      missing?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            patburke Patrick Burke (closed Nokia identity) (Inactive)
            sarasmit Sarah Smith (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes