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. MinGW64, Qt 4.8.3
Qt 6.11 is out! See what's new in the release blog

MinGW64, Qt 4.8.3

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 5.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I am unsucessfully compiling Qt with MinGW64. There are wiki pages (http://qt-project.org/wiki/MinGW-64-bit, http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MinGW) and a few posts in forums suggesting that it is works.

    I am compiling on plain MSYS with gcc/rubenvb-4.7.2 build. I unpack and configure (in bash console) using

    @tar xfz qt-everywhere-opensource-src-4.8.3.tar.gz
    cd qt-everywhere-opensource-src-4.8.3
    ./configure.exe -prefix c:\MinGW64 -release -opensource -confirm-license -shared -fast
    -no-webkit -no-multimedia -no-xmlpatterns -no-qt3support
    -no-accessibility -no-script -no-declarative
    -no-dsp -no-vcproj -no-s60 -largefile
    -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg
    -platform win32-g++-4.6 -nomake tests -nomake examples
    @

    which successfully configures the project with

    @Sources are in..............C:\src\qt-everywhere-opensource-src-4.8.3
    Build is done in............C:\src\qt-everywhere-opensource-src-4.8.3
    Install prefix..............c:\MinGW64
    Headers installed to........c:/MinGW64/include
    Libraries installed to......c:/MinGW64/lib
    Plugins installed to........c:/MinGW64/plugins
    Imports installed to........c:/MinGW64/imports
    Binaries installed to.......c:/MinGW64/bin
    Docs installed to...........c:/MinGW64/doc
    Data installed to...........c:/MinGW64
    Translations installed to...c:/MinGW64/translations
    Examples installed to.......c:/MinGW64/examples
    Demos installed to..........c:/MinGW64/demos
    @

    and bootstraps qmake. Running @mingw32-make@ however immediately results in

    @C:/src/qt-everywhere-opensource-src-4.8.3/bin/qmake C:/src/qt-everywhere-opensource-src-4.8.3//projects.pro -o Makefile -spec win32-g++-4.6
    Could not find mkspecs for your QMAKESPEC(win32-g++-4.6) after trying:
    c:/MinGW64\mkspecs
    Error processing project file: C:/src/qt-everywhere-opensource-src-4.8.3//projects.pro
    make: *** [all] Error 3
    @

    Any hints? Thanks!

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      As workaround, I did @cp -r mkspecs /c/MinGW64/mkspecs@ , it compiles now. Explanation of the error still appreciated.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ihall_mps
        wrote on last edited by
        #3

        I'm not sure why you're wanting the set the -prefix parameter to the same folder as your compiler.

        Try not setting this parameter, and see what happens. By default, QT will build to C:\Qt\4.8.3.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          I want to have separate dirs for every compiler I use. Under Linux, Qt has the same prefix as all system-installed programs (/usr - Unix System Resources) anyways, and it works.

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            [quote author="eudoxos" date="1352474657"]Explanation of the error still appreciated.[/quote]

            What is not clear? Qt built with -prefix puts the output files of it's compilation to the prefixed folder. It does not copy the mkspecs. That is partially why the most common way is to use:
            @
            -prefix $PWD
            @

            or:
            @
            -prefix CD
            @

            if you happen to live on Windows (CD should be wrapped in percent signs, but this site strips them, so I cannot put them there).

            (Z(:^

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              Configure.exe creates configuration which does not compile. That is not OK.

              If it works only for -prefix $PWD, then it should be documented and checked by configure.exe.

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                You can set QTDIR and it should compile.

                Apart from that I agree, it probably should copy the mkspecs.

                (Z(:^

                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