[Qt-interest] uic compilation of the ui file not happening

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Thu Jan 8 01:08:22 CET 2009


Hi SB, 
 
You are putting the headers created by uic in a different location (./ui),
but not adding that to the INCLUDEPATH, so it doesn't get searched. 
 
Hope that helps, 
 
Tony Rietwyk
 

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Srikanth Bemineni
Sent: Thursday, 8 January 2009 10:45
To: qt-interest at trolltech.com
Subject: [Qt-interest] uic compilation of the ui file not happening


Below is my pro file.when I do a qmake and a nmake .It gives the error that
it was not able to find ui_LogViewMain.h in the first place it doesn't do a
uic of the LogViewMain.ui file at all.Anything wrong with my
configuration.What ever I do the forms are not getting added to  the make
file?.
I checked letter by letter to see if my path is wrong but every thing in the
file seems to be absolutely fine


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

        cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189
-DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_XML_
LIB -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THR
EAD_SUPPORT -I"..\..\..\..\Qt\qt-4.4.1-debug\include\QtCore"
-I"..\..\..\..\Qt\qt-4.4.1-debug\include\QtCore" -I"..\..\.
.\..\Qt\qt-4.4.1-debug\include\QtNetwork"
-I"..\..\..\..\Qt\qt-4.4.1-debug\include\QtNetwork"
-I"..\..\..\..\Qt\qt-4.4.1
-debug\include\QtGui" -I"..\..\..\..\Qt\qt-4.4.1-debug\include\QtGui"
-I"..\..\..\..\Qt\qt-4.4.1-debug\include\QtXml" -I
"..\..\..\..\Qt\qt-4.4.1-debug\include\QtXml"
-I"..\..\..\..\Qt\qt-4.4.1-debug\include\Qt3Support" -I"..\..\..\..\Qt\qt-
4.4.1-debug\include\Qt3Support" -I"..\..\..\..\Qt\qt-4.4.1-debug\include"
-I"." -I".\Designer" -I"..\..\..\..\Qt\qt-4.4.
1-debug\include\ActiveQt" -I"moc"
-I"..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\default" -Foobjects\
@C:\Users\bemineni\AppDa
ta\Local\Temp\nm1398.tmp
main.cpp
c:\users\bemineni\hpsumdev\logview\LogView.h(7) : fatal error C1083: Cannot
open include file: 'ui_LogViewMain.h': No su
ch file or directory
LogView.cpp
c:\users\bemineni\hpsumdev\logview\LogView.h(7) : fatal error C1083: Cannot
open include file: 'ui_LogViewMain.h': No su
ch file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\cl.EXE"' : return code '0x2'
Stop."










TEMPLATE = app
LANGUAGE = c++

CONFIG = qt warn_on console release
QT += qt3support network xml 
DEFINES += QT_XML_LIB QT_NETWORK_LIB QT_SCRIPT_LIB QT_QT3SUPPORT_LIB
QT3_SUPPORT

INCLUDEPATH += \
               .\
               ./DesignerFiles

HEADERS += LogView.h \
           RunRecord.h
 
SOURCES += main.cpp \
           LogView.cpp \
           RunRecord.cpp

FORMS += \
         DesignerFiles/LogViewMain.ui

RESOURCES = LogViewRes.qrc

win32 {
    LIBS += -lgdi32 \
                -lcomdlg32 \
                -loleaut32 \
                -limm32 \
                -lwinmm \
                -lwinspool \
                -lws2_32 \
                -lole32 \
                -luser32 \
                -lmsimg32 \
                -lshell32 \
                -lkernel32 \
                -luuid \
                -ladvapi32 \
                -lcomdlg32

}


DESTDIR = ./BuildOutput
TARGET = LogView
MOC_DIR = ./moc
OBJECTS_DIR = ./objects
UI_DIR = ./ui


-- 
_/\_
With Regards
SB Angel Warrior



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090108/be608001/attachment.html 


More information about the Qt-interest-old mailing list