Qt Forum

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

    Error when building Qt 5.4 Statically (MinGW)

    General and Desktop
    2
    3
    912
    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.
    • R
      RevertiveDeath last edited by

      I have been trying to build qt statically for a while now and I have had no luck building the qt libraries statically.

      I have followed all the instructions I could find from the qt website but they don't seem to be very helpful, clear or specific. So I found a new-ish guide to compiling:
      "How to build Qt 5.4 statically on Window 7":http://qt-project.org/forums/viewthread/51117

      Since using the qt package manager kept failing to download the source libraries I found a manual download from the qt site named: qt-everywhere-opensource-src-5.4.0.zip

      Info:
      Windows 7 - 64 bit os
      Qt 5.4 - and Qt Creator
      MinGW491_32
      win32-g++

      When I run the configure it all seems to work fine until it gets to "Running configuration tests..." Here it looks like something from VS is messing the process up but I don't understand what, why or how to fix this. Here is the output that contains the issue:
      @Running configuration tests...
      In file included from arch.cpp:37:0:
      C:\Program Files (x86)\Microsoft Visual Studio\VC98\include/stdio.h:77:24: error
      : redeclaration of C++ built-in type 'wchar_t' [-fpermissive]
      typedef unsigned short wchar_t;
      ^
      mingw32-make: *** [arch.o] Error 1
      Could not find output file: No such file or directory@

      Any advice for building qt statically?

      1 Reply Last reply Reply Quote 0
      • C
        ChrisW67 last edited by

        Sort out your build environment because it looks very confused:
        @
        MinGW491_32
        win32-g++
        @
        and
        @
        C:\Program Files (x86)\Microsoft Visual Studio\VC98\include/stdio.h
        @
        don't sit well together.

        1 Reply Last reply Reply Quote 0
        • R
          RevertiveDeath last edited by

          I have no idea why it's looking at my VS files. Any advice on how to fix this?

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