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. Qt5 static doesn't compile.
Forum Updated to NodeBB v4.3 + New Features

Qt5 static doesn't compile.

Scheduled Pinned Locked Moved General and Desktop
9 Posts 6 Posters 9.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.
  • R Offline
    R Offline
    redscorp
    wrote on 21 Dec 2012, 21:47 last edited by
    #1

    Hi ppl!

    Happy End-of-the-World-2012 events!

    I'm trying to build some minimalistic static Qt 5.0.0. I'm forcing all what looks not need to be disabled by build options.

    @
    call ..\qt-5.0.0\configure.bat -platform win32-msvc2010 ^
    -xplatform win32-msvc2010_s_mini -debug-and-release -static ^
    -no-accessibility -no-sql-sqlite -no-sql-sqlite2 ^
    -no-sql-mysql -no-sql-psql -no-opengl -no-openvg ^
    -no-audio-backend ^
    -no-sse2 -no-sse3 -no-ssse3 ^
    -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-gif ^
    -qt-libpng -no-libjpeg -no-openssl -no-dbus ^
    -no-style-fusion ^
    -confirm-license -opensource
    @

    But what I get is this:

    @
    QMAKESPEC...................win32-msvc2010_s_mini (commandline)
    Architecture................i386, features:
    Host Architecture...........i386, features:
    Maketool....................nmake
    Debug build.................yes (combined)
    Default build...............debug
    Force debug info............no
    C++11 support...............auto
    Link Time Code Generation...no
    Accessibility support.......no
    RTTI support................yes
    SSE2 support................no
    SSE3 support................no
    SSSE3 support...............no
    SSE4.1 support..............no
    SSE4.2 support..............no
    AVX support.................no
    AVX2 support................no
    NEON support................no
    IWMMXT support..............no
    OpenGL support..............no
    Large File support..........yes
    NIS support.................no
    Iconv support...............no
    Inotify support.............no
    Glib support................no
    CUPS support................no
    OpenVG support..............no
    OpenSSL support.............no
    QtDBus support..............no
    QtWidgets module support....yes
    QML debugging...............yes
    DirectWrite support.........no
    Use system proxies..........no

    Third Party Libraries:
    ZLIB support............qt
    GIF support.............no
    JPEG support............no
    PNG support.............yes
    FreeType support........yes

    PCRE support............qt
    ICU support.............no
    ANGLE...................no
    

    Styles:
    Windows.................yes
    Windows XP..............yes
    Windows Vista...........yes
    Fusion..................no
    Windows CE..............no
    Windows Mobile..........no

    Sql Drivers:
    ODBC....................no
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................no (qt)
    SQLite2.................no
    InterBase...............no

    Sources are in..............C:\Qt\qt-5.0.0\qtbase
    Build is done in............C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase
    Install prefix..............C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase
    Headers installed to........C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\include
    Libraries installed to......C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\lib
    Arch-dep. data to...........C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase
    Plugins installed to........C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\plugins
    Library execs installed to..
    QML1 imports installed to...C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\imports
    QML2 imports installed to...C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\qml
    Binaries installed to.......C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\bin
    Arch-indep. data to.........C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase
    Docs installed to...........C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\doc
    Translations installed to...C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\translatio
    ns
    Examples installed to.......C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\examples
    Tests installed to..........C:\Qt\qt-5.0.0-msvc2010_x86_s_mini\qtbase\tests
    WARNING: Using static linking will disable the use of plugins.
    Make sure you compile ALL needed modules into the library.

    Generating Visual Studio project files...
    Project WARNING: You should probably load(qt_build_config) first in bootstrap.pr
    o for QtBootstrap, as the latter also load()s qt_module.
    Project MESSAGE: Not doing so may lead to qt_module.prf overriding compiler/link
    er options in your .pro file.
    Project MESSAGE: Ignore this warning with CONFIG+=no_qt_module_warning if you kn
    ow what you are doing.
    Project ERROR: Project has no top-level .qmake.conf file.
    Qmake failed, return code 3

    Generating Makefiles...
    *** qtbase/configure exited with non-zero status.
    @

    What this error message can mean and how I can fix it?

    Actually, the win32-msvc2010_s_mini is a copy of original win32-msvc2010 with some minor twicks.

    WBR,
    AG

    http://linkedin.com/in/andriygolovnya
    http://sf.net/users/andrew_golovnia
    http://sf.net/u/userid-150775/profile/

    1 Reply Last reply
    0
    • M Offline
      M Offline
      master of disaster
      wrote on 25 Dec 2012, 11:23 last edited by
      #2

      I think your packet lacks a file named ".qmake.conf". Download the whole packet again and try to run configure properly.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        redscorp
        wrote on 25 Dec 2012, 14:16 last edited by
        #3

        I did complete download of .zip package. The same package actually compiles shared for x86/x64 msvc2010 and for mingw32 but this setup/config does not compile.

        I know I'm cheating a little because I disable nearly everything to make size smaller but as far I do not patch any files in the package the configure.exe should not fail. at least I must say what something depends from disable component, proceed the process and actually finish the preparation. At lease it is how I imagine things. So I assume it is a BUG.

        What I also noticed that qtbase folder contains the desired Makefile but the root folder of the Qt package does not. So, I was able to build qtbase I need, but rest is seams to be in bad shape - the configure.exe did not made the rest...

        WBR,
        AG

        http://linkedin.com/in/andriygolovnya
        http://sf.net/users/andrew_golovnia
        http://sf.net/u/userid-150775/profile/

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          Zades
          wrote on 4 Mar 2013, 18:18 last edited by
          #4

          I am getting this error after this commit. Did you find any solution for this?
          "Fix for QTBUG-29400":https://codereview.qt-project.org/#patch,sidebyside,46350,1,tools/configure/configureapp.cpp

          1 Reply Last reply
          0
          • W Offline
            W Offline
            WizzZZ
            wrote on 22 Mar 2013, 03:53 last edited by
            #5

            it's having trouble creating the VS project files.
            the easy solution is to not create them using -no-vcproj

            There is only 10 types of people in the world: those who understand binary and those who don't.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              redscorp
              wrote on 22 Mar 2013, 07:01 last edited by
              #6

              Thanks! I'll try -no-vcproj too.

              http://linkedin.com/in/andriygolovnya
              http://sf.net/users/andrew_golovnia
              http://sf.net/u/userid-150775/profile/

              1 Reply Last reply
              0
              • B Offline
                B Offline
                ByrAnd
                wrote on 28 Mar 2013, 09:59 last edited by
                #7

                Had the same issue. (setup: Win7_x86 & VS2010express & qt5 from git)
                Solved it by setting environment variable @set QMAKESPEC=%QtDir%\qtbase\mkspecs\win32-msvc2010@

                with QtDir pointing to git folder and running following configure command (notice "-fully-process" flag)

                @configure -developer-build -opensource -nomake examples -nomake tests -opengl desktop -mp -fully-process -confirm-license@

                BR

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  redscorp
                  wrote on 28 Mar 2013, 10:51 last edited by
                  #8

                  Thanks, I'll try this way too. The QMAKESPEC variable was NOT set in my case.

                  http://linkedin.com/in/andriygolovnya
                  http://sf.net/users/andrew_golovnia
                  http://sf.net/u/userid-150775/profile/

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andyjy12
                    wrote on 28 Apr 2013, 05:10 last edited by
                    #9

                    I have the same problem for configure shared lib.

                    I found the solution
                    copy .qmake.conf to

                    qtbase\src\corelib
                    qtbase\src\gui
                    ....
                    every directionary

                    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