Re: configure -switches help
Quote:
Originally Posted by
Spinz99
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.
Quote:
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.
Quote:
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.
Quote:
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.
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
Code:
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 Test11
When executing build step 'Make'
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 :(
Re: configure -switches help
Quote:
Originally Posted by
Spinz99
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.
Quote:
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.
Quote:
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.
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.
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.
Code:
Running build steps for project Test66...
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
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
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.
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'
Any clues anyone? Would be greatly appreciated.
Re: configure -switches help
What does qmake -v return when ran from within Creator?
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.
Re: configure -switches help
Add a custom build step where you will call "qmake -v"
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.
Quote:
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'
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.
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.
Re: configure -switches help
What did you do step by step to get your current installation state?
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.
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.
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.
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.