Results 1 to 6 of 6

Thread: Compiling problems with mingw32

  1. #1
    Join Date
    Aug 2007
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Compiling problems with mingw32

    I am having a problem trying to statically build qt.
    I run the following commands:

    configure.exe -static -debug-and-release -stl -qt-gif
    mingw32-make sub-src


    This is what it gives me:

    g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
    -DQT_BOOTSTRAPPED -DQT_RCC -DQT_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -
    DQT_NO_QOBJECT -DQT_NO_UNICODETABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_N
    O_GEOM_VARIANT -DQT_NODLL -I"..\..\corelib\arch\generic" -I"..\..\..\include" -I
    "." -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zli
    b" -I"." -I"..\..\..\mkspecs\win32-g++" -o tmp\obj\release_static\qfsfileengine_
    iterator_win.o ..\..\corelib\io\qfsfileengine_iterator_win.cpp
    gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_RCC -DQ
    T_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNICODE
    TABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NODLL -I".
    .\..\corelib\arch\generic" -I"..\..\..\include" -I"." -I"..\..\..\include\QtCore
    " -I"..\..\..\include\QtXml" -I"..\..\3rdparty\zlib" -I"." -I"..\..\..\mkspecs\w
    in32-g++" -o tmp\obj\release_static\adler32.o ..\..\3rdparty\zlib\adler32.c
    gcc: installation problem, cannot exec `cc1': No such file or directory
    mingw32-make[2]: *** [tmp\obj\release_static\adler32.o] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/4.3.1/src/tools/rcc'
    mingw32-make[1]: *** [release] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.3.1/src/tools/rcc'
    mingw32-make: *** [sub-rcc-sub_src_target_ordered] Error 2

    C:\Qt\4.3.1


    What is cc1?
    If anyone can help, it would be appreciated.
    Thanks
    Wali

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling problems with mingw32

    cc1 should be in the mingw package you downloaded. look for it in bin. the PATH variable should contain this directory.

    If it is not, then try installing the mingw that the Qt installer prompts you to download.

    Regards

  3. #3
    Join Date
    Aug 2007
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling problems with mingw32

    No this does not solve the problem. I still get the same error.

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling problems with mingw32

    Do you try this on vista? There was a problem with mingw there. Try to update your mingw runtime from sf.net/projects/mingw

  5. The following user says thank you to ChristianEhrlicher for this useful post:

    Wali (6th September 2007)

  6. #5
    Join Date
    Aug 2007
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling problems with mingw32

    Yeah I'm using vista business x64. I don't fully understand how to update the mingw runtime, but I did find a solution that works. I needed to add ( C:\MinGW\libexec\gcc\mingw32\3.4.5 ) to my path variable. Thats where cc1.exe was located. Now qt complies. Thanks

  7. #6
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compiling problems with mingw32

    Just download http://downloads.sourceforge.net/min...mirror=surfnet and unpack it into your MinGW directory.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.