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. Building qt 4.7.4 statically unsuccessful
Qt 6.11 is out! See what's new in the release blog

Building qt 4.7.4 statically unsuccessful

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 3.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.
  • A Offline
    A Offline
    asong1
    wrote on last edited by
    #1

    Hello all.

    I have been trying to build qt on cygwin using the following command in the Path/to/qt folder:

    ./configure -static -fast -release -confirm-license -opensource -platform win32-msvc2008

    I followed this guide: http://doc.qt.nokia.com/4.1/deployment-windows.html

    This is what I receive at the end:

    Creating qmake. Please Wait...
    $QMAKE_CC -c -o project.o -nologo -Zm200 -Zc:wchar_t- -DQMAKE_OPENSOURCE_EDITION
    -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenera
    tors/symbian -I/cygdrive/d/qt/include -I/cygdrive/d/qt/include/QtCore -I
    /cygdrive/d/qt/src/corelib/global -I/cygdrive/d/qt/src/corelib/xml -I/cy
    gdrive/d/qt/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -
    DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/cygdrive/
    d/qt/mkspecs/win32-msvc2008 -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp

    /bin/sh: -c: command not found
    make: *** [project.o] Error 127

    Can someone tell me what is wrong with it?

    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Welcome to this forum

      I guess that you have downloaded the wrong zip-file. Even so, I am not sure if your error message will be possible then.

      You need to have the sources in the compressed archive with extension .zip

      Vote the answer(s) that helped you to solve your issue(s)

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

        I should add that with the same source file, cloned from the repository unchanged, I could compile it in linux.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          If you go to the "download page":http://qt.nokia.com/downloads/downloads#qt-lib you have three choices. The .zip achive for Wndows, the .tar.gz archive for linux and gitorious. Even so there is no obvious reason at first glance you should use .zip archive for windows. Presumably merely the line endings are different. I am not sure, if this make really much of a difference (besides the size of the archive). Because in both you have a configure.exe for windows configuration.

          I never used a gitorious clone yet. Probably you have the same information in there, but the archives provides it conveniently packed together.

          From your error message it looks like you have renamed one the cmd-files for linux into a bat for windows. This does not work. You need to use the configure.exe, which does the thing for windows.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            asong1
            wrote on last edited by
            #5

            I have figured it out in the end. The problem was cygwin.

            I am now using VS2008 command prompt to compile qt.

            I used the same command and I took the -fast config option off because that was giving me errors as well.

            Thanks for the help

            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