Results 1 to 18 of 18

Thread: QT 4.2.2 Opensource on Vista

  1. #1
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QT 4.2.2 Opensource on Vista

    Hi

    I have earlier installed QT4 with no problems on win xp sp2, but when I tried it on Vista I got problems during mingw32-make.

    These are the last lines:

    gcc -c -O2 -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_RCC
    -DQT_LITE_UNICODE -DQT_NO_DATASTREAM -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_UNI
    CODETABLES -DQT_NO_LIBRARY -DQT_NO_SYSTEMLOCALE -DQT_NODLL -I"..\..\corelib\arch
    \generic" -I"C:/Qt/4.2.2/include" -I"." -I"C:/Qt/4.2.2/include/QtCore" -I"C:/Qt/
    4.2.2/include/QtXml" -I"..\..\3rdparty\zlib" -I"." -I"..\..\..\mkspecs\win32-g++
    " -o tmp\obj\release_shared\adler32.o ..\..\3rdparty\zlib\adler32.c
    gcc: installation problem, cannot exec `cc1': No such file or directory
    mingw32-make[3]: *** [tmp\obj\release_shared\adler32.o] Error 1
    mingw32-make[3]: Leaving directory `C:/Qt/4.2.2/src/tools/rcc'
    mingw32-make[2]: *** [release] Error 2
    mingw32-make[2]: Leaving directory `C:/Qt/4.2.2/src/tools/rcc'
    mingw32-make[1]: *** [sub-tools_rcc-make_default] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.2/src'
    mingw32-make: *** [sub-src-make_default-ordered] Error 2


    For the record, both mingw/bin and qt/4.2.2/bin is in the path.

  2. #2
    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: QT 4.2.2 Opensource on Vista

    And where is cc1.exe?
    This doesn't look like a vista problem but like a problem with your MinGW installation. Try to reinstall gcc-core & gcc-c++ .

  3. #3
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    I am using the mingw installation that trolltech provided during the QT install. I do not have cc1 it seems, and I have no idea why. Will try to install in win xp again later today to check if its the installer that is bugged or just vista.

  4. #4
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    I just tried doing the same install on an Win XP machine and it worked...so I am pretty sure Vista is to blame for this (or perhaps trolltech or mingw for lack of Vista support).

  5. #5
    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: QT 4.2.2 Opensource on Vista

    When there is no cc1.exe around, you have to blame the installer.Try to reinstall Qt on Vista to see if cc1.exe is really not installed.

  6. #6
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Quote Originally Posted by ChristianEhrlicher View Post
    When there is no cc1.exe around, you have to blame the installer.Try to reinstall Qt on Vista to see if cc1.exe is really not installed.
    You would think, but since I am using the _same_ installer on both XP and Vista, you would also assume that the same gets installed...

    I still get the error on Vista after 4 more tries, but XP nails it every time.

  7. #7
    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: QT 4.2.2 Opensource on Vista

    Quote Originally Posted by invictus View Post
    You would think, but since I am using the _same_ installer on both XP and Vista, you would also assume that the same gets installed...
    Normally yes - but not in this case. Strange

  8. #8
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Quote Originally Posted by ChristianEhrlicher View Post
    Normally yes - but not in this case. Strange
    Perhaps I should just wait for QT 4.3...by then I assume Vista is more common and the installer take that into account.

  9. #9
    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: QT 4.2.2 Opensource on Vista

    Or install MinGW directly from mingw.org

  10. #10
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Quote Originally Posted by ChristianEhrlicher View Post
    Or install MinGW directly from mingw.org
    Actually I just did a check. The cc1.exe is installed and is in the same folder on both machines. Wonder why vista fails still.

  11. #11
    Join Date
    Feb 2007
    Posts
    49
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Run as administrator?

  12. #12
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Quote Originally Posted by minimoog View Post
    Run as administrator?
    Both QT and MingW is installed with Run as administrator.

    I even configure and mingw32-make from a console window that is run as administrator.
    Last edited by invictus; 6th March 2007 at 00:45.

  13. #13
    Join Date
    Feb 2007
    Posts
    49
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: QT 4.2.2 Opensource on Vista

    Same here. Same error. I also tried 3.4.5 version from mingw site, I couldn't even start configure (similar error, missing cc1plus.exe), so I put the in the enviroment path the cc1plus.exe path (In my case it is C:\MinGW\libexec\gcc\mingw32\3.4.5) and worked. Somehow in Vista, mingw doesn't recognize folders....This is a mingw bug and someone might try to report the bug to the mingw team.

    So, the solution is to put in the "enviroment path" the path to cc1.exe and cc1plus.exe.
    Last edited by minimoog; 6th March 2007 at 03:31.

  14. The following 2 users say thank you to minimoog for this useful post:

    invictus (6th March 2007), ModeZt (7th January 2008)

  15. #14
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Quote Originally Posted by minimoog View Post
    So, the solution is to put in the "enviroment path" the path to cc1.exe and cc1plus.exe.
    This seem to work! However, I am not impressed with the way this have to be handeled. I hope Mingw fix this OR that trolltech release a fixed version as the QT/Mingw bundle.

  16. #15
    Join Date
    Nov 2007
    Location
    Russia, Moscow
    Posts
    21
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Quote Originally Posted by minimoog View Post
    Same here. Same error. I also tried 3.4.5 version from mingw site, I couldn't even start configure (similar error, missing cc1plus.exe), so I put the in the enviroment path the cc1plus.exe path (In my case it is C:\MinGW\libexec\gcc\mingw32\3.4.5) and worked. Somehow in Vista, mingw doesn't recognize folders....This is a mingw bug and someone might try to report the bug to the mingw team.

    So, the solution is to put in the "enviroment path" the path to cc1.exe and cc1plus.exe.
    Damn! 4.3.3 is out, but this trouble is still not fixed. Just wasted some time on fixing it under Vista.
    The better way IMO is to edit the
    C:\Qt\4.3.3\bin\qtvars.bat
    and add this line:
    set PATH=%PATH%;C:\MinGW\libexec\gcc\mingw32\3.4.5

  17. #16
    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: QT 4.2.2 Opensource on Vista

    As this is not a Qt bug I wonder why it should/could be fixed with Qt4.3.3...

  18. #17
    Join Date
    Nov 2007
    Location
    Russia, Moscow
    Posts
    21
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    Because i downloaded the compleate solid package from Trolltech Site. MinGW + QT.
    I clicked on "install" and that's all. After that i'm supposed to get a ready-to-work instrument.
    This instrument is working on XP, but not on Vista.

  19. #18
    Join Date
    Jul 2007
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.2 Opensource on Vista

    I just ran into the same frustrating problems and I probably found a workaround. There seems to be a vista patch for gcc-3.4.5 around, that helped me. But I could not use the MinGW selected by qt-4.3.3.

    Anyway, the following recipe worked fine for me and I just built the debug libraries without any error messages

    download MinGW-5.1.3.exe
    download gcc-vista-3.4.5-20060117-1.tar.gz
    download qt-win-opensource-4.3.3-mingw.exe

    install MinGW with g++ & make selected, which implicitly downloads:
    - binutils-2.17.50-20060824-1.tar.gz
    - gcc-core-3.4.5-20060117-1.tar.gz
    - gcc-g++-3.4.5-20060117-1.tar.gz
    - w32api-3.10.tar.gz
    extract gcc-vista-3.4.5-20060117-1.tar.gz into the MinGW location

    install qt-win-opensource-4.3.3-mingw.exe
    select "existing MinGW" and ignore w32api.h error message

    build debug libraries

Similar Threads

  1. QT 4.2.2 and Ico plugins
    By Placido Currò in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2007, 16:13
  2. issues with 4.2.2 opensource on OS X 1.4.8
    By wmmk in forum Installation and Deployment
    Replies: 3
    Last Post: 15th January 2007, 17:55
  3. Does OpenGL be supported in opensource of Qt-4.1.2?
    By showhand in forum Qt Programming
    Replies: 1
    Last Post: 15th May 2006, 11:46

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.