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 compile Qt5 with MinGW_x64 4.7.2
Forum Updated to NodeBB v4.3 + New Features

Can't compile Qt5 with MinGW_x64 4.7.2

Scheduled Pinned Locked Moved General and Desktop
9 Posts 5 Posters 4.5k 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.
  • V Offline
    V Offline
    viniciusam
    wrote on last edited by
    #1

    Hello, i'm having trouble compiling Qt5 with MinGW on Windows 7 virtual machine. Here is the error:

    g++ -Wl,-s -shared -Wl,--out-implib,C:\QtSDK\Qt5.0.0_Src\qtbase\lib\libQt5PrintS
    upport.a -o ....\lib\Qt5PrintSupport.dll object_script.Qt5PrintSupport.Release
    -lwinspool -lcomdlg32 -LC:/QtSDK/Qt5.0.0_Src/qtbase/lib -lQt5Widgets -lQt5Gui -
    lQt5Core .obj\release_shared\Qt5PrintSupport_resource_res.o
    ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x1db): und
    efined reference to __imp_SaveDC' ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x209): und efined reference to __imp_CreateCompatibleDC'
    ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x210): und
    efined reference to __imp_SelectObject' ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x3c2): und efined reference to __imp_StretchBlt'
    ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x477): und
    efined reference to __imp_DeleteObject' ./.obj\release_shared\qprintengine_win.o:qprintengine_win.cpp:(.text+0x480): und efined reference to __imp_DeleteDC'
    (...)
    c:/mingw/mingw_x64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w6
    4-mingw32/bin/ld.exe: ./.obj\release_shared\qprintengine_win.o: bad reloc addres
    s 0x0 in section `.pdata$_ZNK17QWin32PrintEngine4typeEv'
    collect2.exe: error: ld returned 1 exit status

    1 Reply Last reply
    0
    • I Offline
      I Offline
      Itehnological
      wrote on last edited by
      #2

      Why would you need to compile it, when the Qt5 Final Release is available to install with some easy to use installers..?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        viniciusam
        wrote on last edited by
        #3

        Because I want to build my app with MinGW x64. My project is in netbeans and I like to keep using it.
        NetBeans doesn't support msvc toolchain and the available plugin can't debug.

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          [quote author="Itehnological" date="1356209224"]Why would you need to compile it, when the Qt5 Final Release is available to install with some easy to use installers..?[/quote]

          There are problems with mingw at this moment. Therefore there are no binary packages with mingw yet.

          There have been some other posts about using vs 2020 express instead with the vs 2010 binaries. But i haven't tried that out myself

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • V Offline
            V Offline
            viniciusam
            wrote on last edited by
            #5

            =/
            Guess I'll wait you guys to release binary packages for mingw.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              See http://qt-project.org/wiki/MinGW-64-bit

              1 Reply Last reply
              0
              • V Offline
                V Offline
                viniciusam
                wrote on last edited by
                #7

                [quote author="Lukas Geyer" date="1356256014"]See http://qt-project.org/wiki/MinGW-64-bit[/quote]

                I followed that link, but setting configure without opengl, webkit and ssl, so I didn't install OpenSSL and ICU. But this Qt5PrintSupport error could not be related to this, or could?

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  astodolski
                  wrote on last edited by
                  #8

                  [quote author="viniciusam" date="1356271636"][quote author="Lukas Geyer" date="1356256014"]See http://qt-project.org/wiki/MinGW-64-bit[/quote]

                  I followed that link, but setting configure without opengl, webkit and ssl, so I didn't install OpenSSL and ICU. But this Qt5PrintSupport error could not be related to this, or could?[/quote]

                  I am having similar issues but not with MinGW. Rebuilding Qt 5.0 using Windows SDK 7.1, without the opengl and icu modules, the build fails starting with attempting to build Qt5PrintSupport.dll. A slew of errors follows. 41 unresolved externals.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    astodolski
                    wrote on last edited by
                    #9

                    [quote author="Eddy" date="1356209558"]
                    [quote author="Itehnological" date="1356209224"]Why would you need to compile it, when the Qt5 Final Release is available to install with some easy to use installers..?[/quote]

                    There are problems with mingw at this moment. Therefore there are no binary packages with mingw yet.

                    There have been some other posts about using vs 2020 express instead with the vs 2010 binaries. But i haven't tried that out myself
                    [/quote]

                    There are problems with building using Win SDK tools as well. When trying to build without opengl and ICU (Webkit) the whole build falls down at around building Qt5PrintSupport.dll.

                    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