Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt5.0.0 mingw compile problem
Forum Updated to NodeBB v4.3 + New Features

Qt5.0.0 mingw compile problem

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.8k 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
    anaksimandr
    wrote on last edited by
    #1

    Hello.
    I'm trying to compile qt5 with mingw but I have a problem.

    configuration:
    configure -release -opensource -confirm-license -nomake tests -prefix e:\qt5\qtbase -nomake demos -nomake examples

    build environment:
    SET QTDIR=E:\qt5\qtbase
    SET MINGWDIR=E:\MinGW
    SET QMAKESPEC=win32-g++
    SET PERLDIR=E:\IDE\strawberry\perl
    SET PYTHON=E:\IDE\Python27

    SET PATH=%QTDIR%\bin;%MINGWDIR%\bin;%SystemRoot%\System32;%PERLDIR%\bin;%PYTHON%\

    The problem is
    !http://img18.imageshack.us/img18/8527/snag0167.png(Problem)!

    Here is the command that cause a crash (length 8504 but cmd allows 8191):
    http://paste.org/47708

    How I can solve this problem?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      anaksimandr
      wrote on last edited by
      #2

      In Visual Studio can't build too
      !http://img337.imageshack.us/img337/2210/snag0169.png(compile error)!

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AxDSan
        wrote on last edited by
        #3

        Forget MinGW, let's head over MSVC2010 and assuming you are working under MSVC2010

        Do the following:

        Start (Menu) => All Programs (Menu) => Microsoft Visual Studio 2010 (Folder) => Visual Studio Tools (Folder) => Visual Studio Command Prompt (2010) (File)

        Open Visual Studio Command Prompt (2010) and apply:

        @vcvarsall.bat@ (Type it then hit {[Enter]})

        The above command will configure the correct environment settings for compiling Qt under MSVC2010 and not MinGW GCC 4.4

        In that very same CMD type:
        @configure [-platform win32-msvc2010] -static -release -opensource -confirm-license -nomake tests -prefix e:\qt5\qtbase -nomake demos -nomake examples@

        RED = Optional, This will make a static build of Qt, This will make Standalone Executables if you like (That's why I added this optional statement.)

        NOTE: Notice the option added between the [ & ], This option will enable the compiling under MSVC2010 and configure the qmake to build and use MSVC2010 Correctly... Notice as well that for this to work you HAVE to remove the [ & ] symbols, I just added them for sake of observation.

        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