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

Srikanth Bemineni srikanth.bemineni at gmail.com
Thu Jan 8 02:09:08 CET 2009


I even tried that It didn't work.I have question see the below setting when
issue nmake it creates DESTDIR , MOC_DIR,OBJECTS_DIR as specified but it
doesn't create UI_DIR as mentioned.

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

#############################################################################
# Makefile for building: LogView
# Generated by qmake (2.01a) (Qt 4.4.1) on: Wed Jan 7 19:04:23 2009
# Project:  LogView.pro
# Template: app
# Command: c:\Qt\qt-4.4.1-debug\bin\qmake.exe -win32 -o Makefile LogView.pro
#############################################################################
####### Compiler, tools and options
CC            = cl
CXX           = cl
DEFINES       = -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_NO_DEBUG
-DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -DQT_THREAD_SUPPORT
CFLAGS        = -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 $(DEFINES)
CXXFLAGS      = -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189
$(DEFINES)
INCPATH       = -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"DesignerFiles"
-I"..\..\..\..\Qt\qt-4.4.1-debug\include\ActiveQt" -I"moc"
-I"..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\default"
LINK          = link
LFLAGS        = /LIBPATH:"c:\Qt\qt-4.4.1-debug\lib" /NOLOGO /INCREMENTAL:NO
LIBS          = gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib
winspool.lib ws2_32.lib ole32.lib user32.lib msimg32.lib shell32.lib
kernel32.lib uuid.lib advapi32.lib comdlg32.lib Qt3Support.lib QtXml.lib
QtGui.lib QtNetwork.lib QtCore.lib
QMAKE         = c:\Qt\qt-4.4.1-debug\bin\qmake.exe
IDC           = c:\Qt\qt-4.4.1-debug\bin\idc.exe
IDL           = midl
ZIP           = zip -r -9
DEF_FILE      =
RES_FILE      =
COPY          = copy /y
COPY_FILE     = $(COPY)
COPY_DIR      = xcopy /s /q /y /i
DEL_FILE      = del
DEL_DIR       = rmdir
MOVE          = move
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
INSTALL_FILE    = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR     = $(COPY_DIR)
####### Output directory
OBJECTS_DIR   = objects
####### Files
SOURCES       = main.cpp \
  LogViewMain.cpp \
  RunRecord.cpp moc\moc_LogViewMain.cpp
OBJECTS       = objects\main.obj \
  objects\LogViewMain.obj \
  objects\RunRecord.obj \
  objects\moc_LogViewMain.obj
DIST          =
QMAKE_TARGET  = LogView
DESTDIR        = BuildOutput\ #avoid trailing-slash linebreak
TARGET         = LogView.exe
DESTDIR_TARGET = BuildOutput\LogView.exe
####### Implicit rules
.SUFFIXES: .c .cpp .cc .cxx
{./geui}.cpp{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{./geui}.cc{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{./geui}.cxx{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{./geui}.c{objects\}.obj::
 $(CC) -c $(CFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{.}.cpp{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{.}.cc{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{.}.cxx{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{.}.c{objects\}.obj::
 $(CC) -c $(CFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.cpp{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.cc{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.cxx{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.c{objects\}.obj::
 $(CC) -c $(CFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.cpp{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.cc{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.cxx{objects\}.obj::
 $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
{moc}.c{objects\}.obj::
 $(CC) -c $(CFLAGS) $(INCPATH) -Foobjects\ @<<
 $<
<<
####### Build rules
first: all
all: Makefile $(DESTDIR_TARGET)
$(DESTDIR_TARGET):  $(OBJECTS)
 $(LINK) $(LFLAGS) /OUT:$(DESTDIR_TARGET) @<<
   $(OBJECTS) $(LIBS)
<<

Makefile: LogView.pro
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\default\qmake.conf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\qconfig.pri \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt_functions.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt_config.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\exclusive_builds.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\default_pre.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\win32\default_pre.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\release.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\default_post.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\warn_on.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\win32\thread.prf \
  ..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\moc.prf
 $(QMAKE) -win32 -o Makefile LogView.pro
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\qconfig.pri:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt_functions.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt_config.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\exclusive_builds.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\default_pre.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\win32\default_pre.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\release.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\default_post.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\warn_on.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\win32\thread.prf:
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\moc.prf:
qmake:  FORCE
 @$(QMAKE) -win32 -o Makefile LogView.pro
dist:
 $(ZIP) LogView.zip $(SOURCES) $(DIST) LogView.pro
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\qconfig.pri
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt_functions.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt_config.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\exclusive_builds.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\default_pre.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\win32\default_pre.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\release.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\default_post.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\warn_on.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\qt.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\win32\thread.prf
..\..\..\..\Qt\qt-4.4.1-debug\mkspecs\features\moc.prf  HEADERS SOURCES
OBJECTIVE_SOURCES
clean: compiler_clean
 -$(DEL_FILE) objects\main.obj objects\LogViewMain.obj objects\RunRecord.obj
objects\moc_LogViewMain.obj
distclean: clean
 -$(DEL_FILE) $(DESTDIR_TARGET)
 -$(DEL_FILE) Makefile
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all: moc\moc_LogViewMain.cpp
compiler_moc_header_clean:
 -$(DEL_FILE) moc\moc_LogViewMain.cpp
moc\moc_LogViewMain.cpp: RunRecord.h \
  LogViewMain.h
 C:\Qt\qt-4.4.1-debug\bin\moc.exe $(DEFINES) $(INCPATH) -D_MSC_VER=1400
-DWIN32 LogViewMain.h -o moc\moc_LogViewMain.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_clean: compiler_moc_header_clean

####### Compile
objects\main.obj: main.cpp LogViewMain.h \
  RunRecord.h
objects\LogViewMain.obj: LogViewMain.cpp LogViewMain.h \
  RunRecord.h
objects\RunRecord.obj: RunRecord.cpp RunRecord.h
objects\moc_LogViewMain.obj: moc\moc_LogViewMain.cpp
####### Install
install:   FORCE
uninstall:   FORCE
FORCE:


On Wed, Jan 7, 2009 at 6:54 PM, Tony Rietwyk
<tony.rietwyk at rightsoft.com.au>wrote:

>  Sorry - I looked at the error messages more than your text.
>
> What happens when you run uic manually?  Look at the docs for the
> parameters.
>
> Note that you are using ./ on the include for DesignerFiles, but not on the
> forms?
>
> In some projects we have to use:
>
>     FORMS +=  $$PWD/form_name.ui
>
> It would be nice to be able to get more information out of qmake to
> diagnose these sort of problems - especially paths that have been deleted or
> misspelt - rather than silently ignored.
>
> Hope that helps,
>
> Tony.
>
>
>  -----Original Message-----
> *From:* Srikanth Bemineni [mailto:srikanth.bemineni at gmail.com]
> *Sent:* Thursday, 8 January 2009 11:16
> *To:* Tony Rietwyk
> *Cc:* qt-interest at trolltech.com
> *Subject:* Re: [Qt-interest] uic compilation of the ui file not happening
>
> I even tried that it didn't work.It is not compiling the ui file at all
> with uic compiler so the header file can be generated, then comes the issue
> of finding the path. By default the ui_dir path mentioned will be added be
> added to the includepath.
>
> On Wed, Jan 7, 2009 at 6:08 PM, Tony Rietwyk <
> tony.rietwyk at rightsoft.com.au> wrote:
>
>>  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
>>
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> --
> _/\_
> With Regards
> SB Angel Warrior
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
_/\_
With Regards
SB Angel Warrior
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090107/6b688a87/attachment.html 


More information about the Qt-interest-old mailing list