Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, June 2007
qmake Trouble with Qt-4.2.3 using VS 2005 Express


Message 1 in thread

Hi,

I am trying to compile my project under Windows using Qt 4.2.3  and VS 2005
express. The code works on linux and other windows machine, however when I
call qmake like,

qmake -tp vc markTags.pro

I get,
<----
WARNING: Unable to generate output for:
C:/Users/Hari/Research/markTags/Makefile.Release [TEMPLATE vcapp]
WARNING: Unable to generate output for:
C:/Users/Hari/Research/markTags/Makefile.Debug [TEMPLATE vcapp]
---->

and if I try to instead go the makefile way, I am able to generate the
makefiles, but it seems to want to use g++ !!!

<-----
Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
Makefil
e.Release

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

        c:\Compiled\qt-win-opensource-src-4.2.3\bin\uic.exe dcmDlg.ui -o
ui_dcmD
lg.h
        c:\Compiled\qt-win-opensource-src-4.2.3\bin\uic.exe saveVolumeDlg.ui-o
ui_saveVolumeDlg.h
        g++ -c -O2 -O2 -frtti -fexceptions -Wall -D_WIN32 -DQT_DLL
-DQT_NO_DEBUG
 -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQ
T_NEEDS_QMAIN -I"C:/Compiled/qt-win-opensource-src-4.2.3/include/QtCore"
-I"C:/C
ompiled/qt-win-opensource-src-4.2.3/include/QtCore"
-I"C:/Compiled/qt-win-openso
urce-src-4.2.3/include/QtGui" -I"C:/Compiled/qt-win-opensource-src-4.2.3
/include
/QtGui" -I"C:/Compiled/qt-win-opensource-src-4.2.3/include/QtOpenGL"
-I"C:/Compi
led/qt-win-opensource-src-4.2.3/include/QtOpenGL"
-I"C:/Compiled/qt-win-opensour
ce-src-4.2.3/include/QtXml" -I"C:/Compiled/qt-win-opensource-src-4.2.3
/include/Q
tXml" -I"C:/Compiled/qt-win-opensource-src-4.2.3/include" -I"\include"
-I"C:/Com
piled/qt-win-opensource-src-4.2.3/include/ActiveQt" -I"release" -I"."
-I"..\..\.
.\..\Compiled\qt-win-opensource-src-4.2.3\mkspecs\default" -o release\main.o
mai
n.cpp
'g++' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'g++' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.
---->

any help is greatly appreciated.

~Hari

Message 2 in thread

On 06.06.07 13:38:09, Hari Sundar wrote:
> Hi,
> 
> I am trying to compile my project under Windows using Qt 4.2.3  and VS 2005
> express. The code works on linux and other windows machine, however when I
> call qmake like,
> 
> qmake -tp vc markTags.pro
> 
> I get,
> <----
> WARNING: Unable to generate output for:
> C:/Users/Hari/Research/markTags/Makefile.Release [TEMPLATE vcapp]
> WARNING: Unable to generate output for:
> C:/Users/Hari/Research/markTags/Makefile.Debug [TEMPLATE vcapp]
> ---->

Are you using the VS-patch for the free edition or do you have a
commercial license?

> and if I try to instead go the makefile way, I am able to generate the
> makefiles, but it seems to want to use g++ !!!

What do you mean wiht Makefile way? Just let qmake generate Makefile's
without specifying the platform? That will create Makefile's for mingw
(the only compiler supported by the open source Qt4 edition on windows).

Andreas

-- 
 [ signature omitted ] 

Message 3 in thread

On 6/6/07, Hari Sundar <hsundar@xxxxxxxxx> wrote:
> Hi,
>
> I am trying to compile my project under Windows using Qt 4.2.3  and VS 2005
> express. The code works on linux and other windows machine, however when I
> call qmake like,
>
> qmake -tp vc markTags.pro
>
> I get,
> <----
> WARNING: Unable to generate output for:
> C:/Users/Hari/Research/markTags/Makefile.Release [TEMPLATE
> vcapp]
> WARNING: Unable to generate output for:
> C:/Users/Hari/Research/markTags/Makefile.Debug [TEMPLATE
> vcapp]
> ---->
>
> and if I try to instead go the makefile way, I am able to generate the
> makefiles, but it seems to want to use g++ !!!

The Open Source edition is not intended to be used with Visual Studion
- that's a feature of the commercial edition only. An unofficial patch
(to make the Open Source edition work with the MSVC compiler) was
mentioned on the list recently - search the archives.

-- 
 [ signature omitted ]