Results 1 to 17 of 17

Thread: configure -switches help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: configure -switches help

    Add a custom build step where you will call "qmake -v"
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: configure -switches help

    Thanks for working with me Wysota, results posted below. I'd guess it's not a problem with qmake rather something with the linker.

    Running build steps for project Test66...
    Starting: Z:\QtCreator\qt\bin\qmake.exe -v
    QMake version 2.01a
    Using Qt version 4.4.3 in Z:\QtCreator\qt\lib
    Exited with code 0.
    Creating gdb macros library...
    Configuration unchanged, skipping QMake step.
    Starting: D:/Microsoft Visual Studio 8/VC/bin/nmake.exe release
    "D:\Microsoft Visual Studio 8\VC\bin\nmake.exe" -f Makefile.Release
    z:\QtCreator\qt\bin\uic.exe mainwindow.ui -o ui_mainwindow.h

    Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    Copyright (C) Microsoft Corporation. All rights reserved.


    Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    Copyright (C) Microsoft Corporation. All rights reserved.

    Z:\QtCreator\qt\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include" -I"z:\QtCreator\qt\include\ActiveQt" -I"release" -I"." -I"z:\QtCreator\qt\mkspecs\win32-msvc2005" -D_MSC_VER=1400 -DWIN32 mainwindow.h -o release\moc_mainwindow.cpp
    cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtCore" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include\QtGui" -I"z:\QtCreator\qt\include" -I"z:\QtCreator\qt\include\ActiveQt" -I"release" -I"." -I"z:\QtCreator\qt\mkspecs\win32-msvc2005" -Forelease\ @C:\DOCUME~1\Johnny\LOCALS~1\Temp\nm5.tmp
    NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0xc0000135'
    Stop.
    NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\nmake.exe"' : return code '0x2'
    Stop.
    Exited with code 2.
    Error while building project Test66
    When executing build step 'Make'
    Last edited by wysota; 17th April 2009 at 07:50.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: configure -switches help

    You are trying to use a MinGW based Qt installation (the one that comes with Qt Creator) with MSVC which is not possible. You either need to rebuild Qt for MSVC or use MinGW specs so that your applications are compiled using MinGW. The two compilers are not binary compatible.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: configure -switches help

    Thanks again Wysota.
    I configured Qt with the switches -platform win32-msvc2005 before compilation.
    So recompiling won't make a difference I've tried before.

    I wonder why you say I'm trying to use the MingGW installation, first time I installed Qt it installed MingGW as well and worked fine with MSVC.

    Besides re-compiling can you think of any other solution maybe?
    Does open source Qt only work with MingGW?
    I honestly can't get into Qt since I cannot QtCreator to work.

    Very frustrating.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: configure -switches help

    What did you do step by step to get your current installation state?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: configure -switches help

    Hi Wysota,

    After uninstalling the trial and cleaning the registry I ran the setup program (including MingGW installation),
    ran configure -platform win32-msvc2005 -phonon and nmake. Then I set the PATH variable to point to the Qt installation.

    Both configuration and the building process ran without errors.

    QtBuilder however keeps giving the problem above.
    First it complains it can't find the MSVC tools, then after adding
    the MSVC bin to the project path, it uses the tools until it gives the error.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: configure -switches help

    Why did you download the MinGW installation if you are not going to use it? Delete everything and download the source only archive. You'll then be certain there is no MinGW legacy involved.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: configure -switches help

    Wysota thanks for trying to help.
    I don't know, I'm tired of wasting computer time and energy installing and re-installing Qt packages. It looks like QtCreator is not going to work here.

    I'll simply try create projects from MSVC and take it from there.
    It's compiling all the samples from the prompt, so I'll just say that working solely with MSVC is holding some promise at the moment.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: configure -switches help

    To be honest I don't know what you are trying to obtain so it is hard to help you but Creator doesn't really care what compiler you use.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QT4 for kde 4 beta 2 configure problem: make not found
    By marcomangiante in forum Installation and Deployment
    Replies: 1
    Last Post: 5th September 2007, 20:35
  2. how can i configure shell files
    By harijibhv in forum General Programming
    Replies: 1
    Last Post: 22nd July 2007, 20:31
  3. Qt 4.2.3 Configure Issue...
    By amcdaniel in forum Installation and Deployment
    Replies: 4
    Last Post: 13th May 2007, 12:02
  4. Install Qt4.2.3 on MacOSX - configure ?
    By kuroyume0161 in forum Installation and Deployment
    Replies: 2
    Last Post: 17th March 2007, 00:18
  5. Can't configure for Win32 MSVC .NET
    By saber850 in forum Installation and Deployment
    Replies: 8
    Last Post: 28th February 2006, 16:42

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.