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. Error when building Qt 5.4 Statically (MinGW)
Forum Updated to NodeBB v4.3 + New Features

Error when building Qt 5.4 Statically (MinGW)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • R Offline
    R Offline
    RevertiveDeath
    wrote on last edited by
    #1

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

      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
      0
      • R Offline
        R Offline
        RevertiveDeath
        wrote on last edited by
        #3

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

        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