Results 1 to 17 of 17

Thread: configure -switches help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default configure -switches help

    Hi there,

    I'm trying to once again configure an open source installation of Qt4.
    Just wanted to ask if it's ok to use the switches -win32-msvc2005 -phonon
    while running configure?

    Will this prevent the open source sdk from compiling using QtCreator?
    I'm asking because I'm tired of having Qt take hours of processing time to setup only to end up with a non-working installation.

    So if someone may please spare me the grief and help me save the planet just a little.
    Can you compile an open source installation with -win32-msvc2005 and -phonon?
    Would love some feedback.

  2. #2
    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

    Quote Originally Posted by Spinz99 View Post
    Just wanted to ask if it's ok to use the switches -win32-msvc2005 -phonon
    while running configure?
    Is it really that hard to type in "configure -win32-msvc2005 -phonon" and look if it explodes into your face?

    Yes, you can use Phonon with msvc.

    Will this prevent the open source sdk from compiling using QtCreator?
    I'm not sure what you are asking about What sdk? Qt Creator doesn't compile anything, it's just a source code editor.

    I'm asking because I'm tired of having Qt take hours of processing time to setup only to end up with a non-working installation.
    You mean it compiles and then doesn't work? Did you see that at the beginning of the configuration process configure reports what switches are considered enabled and which are not? If you're not satisfied with them, just terminate the compilation after those several seconds and reconfigure Qt with different options.

    Can you compile an open source installation with -win32-msvc2005 and -phonon?
    Open source or no open source has no impact on the compiler used. You can compile open source Qt against msvc and commercial edition against MinGW. According to what configure says Phonon needs a "decent" compiler. Both msvc and mingw fall into that category. You might need some developent files from DirectShow to build the default Phonon backend on Windows though. But again it's not anything compiler specific.
    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.


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

    Default Re: configure -switches help

    Many thanks for the reply. So essentially it seems that commercial or open source the configure tool works the same? That's great news.

    All my problems come from a demo version of Qt 4.4.3 having expired on my machine. I had both the open source and the trial installed and both stopped working. I understand Qt Creator doesn't compile anything but it seemed to be working with msvc before everything expired. Since then reinstalling open source and re-configuring won't help.

    MSVC compiler keeps giving the error below

    Qt Code:
    1. NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0xc0000135'
    2. Stop.
    3. NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\nmake.exe"' : return code '0x2'
    4. Stop.
    5. Exited with code 2.
    6. Error while building project Test11
    7. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

    So I've been trying to fix the installation but not much luck yet. I think next is trying to install the 4.4.5 framework afresh and see if that works.

    It's very annoying to have a great installation where even the Media Player works (Yay!) and then you try compile something from Qt Creator and the error above pops up

  4. #4
    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

    Quote Originally Posted by Spinz99 View Post
    Many thanks for the reply. So essentially it seems that commercial or open source the configure tool works the same? That's great news.
    It's the exact same file.

    MSVC compiler keeps giving the error below
    Make sure paths from the old install and the new one are not mixed. Did you build Qt yourself for Visual Studio? The one bundled within Qt SDK is for MinGW, not MSVC.

    So I've been trying to fix the installation but not much luck yet. I think next is trying to install the 4.4.5 framework afresh and see if that works.
    I'd suggest 4.5.0. You probably already have it somewhere as Qt Creator requires it.
    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.


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

    Default Re: configure -switches help

    I've been wondering it's beginning to look like all I really need to do is change the installation path. That way I can use 4.4.3 that runs so well on my machine?

    I think next try will be just that. Thanks for all the help.

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

    Default Re: configure -switches help

    This is really getting to me now.
    I've reinstalled 4.4.3 on a new path.
    Configuration and build went on without errors.

    All samples are working beautifully and when I try compile from QtCreator, guess?
    Same error as before. I'm using the Open Source Creator 0.9.2. rc1 bundle setup.

    Qt Code:
    1. Running build steps for project Test66...
    2. Creating gdb macros library...
    3. Configuration unchanged, skipping QMake step.
    4. Starting: D:/Microsoft Visual Studio 8/VC/bin/nmake.exe release
    5. "D:\Microsoft Visual Studio 8\VC\bin\nmake.exe" -f Makefile.Release
    6. 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\nm26.tmp
    7.  
    8. Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    9. Copyright (C) Microsoft Corporation. All rights reserved.
    10.  
    11.  
    12. Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
    13. Copyright (C) Microsoft Corporation. All rights reserved.
    14.  
    15. NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0xc0000135'
    16. Stop.
    17. NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 8\VC\bin\nmake.exe"' : return code '0x2'
    18. Stop.
    19. Exited with code 2.
    20. Error while building project Test66
    21. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

    Any clues anyone? Would be greatly appreciated.

  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

    What does qmake -v return when ran from within Creator?
    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

    I tried adding the Additional Argument -v under Projects>Build Settings>Build Steps> QMake
    Wonder if this is what you mean?
    It provided no additional information.

    Would love to get this version of QtCreator working again.

  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

    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.


  10. #10
    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.

  11. #11
    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.


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.