1 Attachment(s)
Another newbie question. Cannot genereate ui to .h via the makefile
Hi everyone,
I get blocked in stupid compile process of Qt. My project in what I work on doesn't work anymore so I tried test my build step with a simple project in qtcreator the one which generate the mainwindow with .ui. either the qmake generates a makefile which doesnt include the rule to invoke uic or in my main project suddenly I got the collect2.exe stop working for any clear reason.
Here my .pro from the simpliest Qt programme
__________________________________________________ ________
#-------------------------------------------------
#
# Project created by QtCreator 2016-06-29T09:14:51
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 5): QT += widgets
TARGET = test
TEMPLATE = app
FORMS += mainwindow.ui
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
__________________________________________________ ________
No big deal ! behind the scene of qtcreator it launches
Attachment 12012qmake.exe test.pro -r -spec win32-g++
and mingw32-make
inclosed you see my qtcreator conf and directory project after compiling. Indeed makefile.debug get no hint of uic.
Thanks in advance for your precious experience
Re: Another newbie question. Cannot genereate ui to .h via the makefile
Sorry I hadn't be clear in my post. I reformulate it.
This is very simple I cannot compile a simple Qt project the one with the mainwindow. I did via command shell and via QtCreator. first qmake should create makefile with the command rule uic to translate as simple as it should be my ui to a .h.
Here my .pro
__________________________________________________ ________________
#-------------------------------------------------
#
# Project created by QtCreator 2016-06-29T14:49:38
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = untitled
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
__________________________________________________ __
Here my command line in script shell windows
_______________________________________________
C:\workspace_llb_27-05-2016\untitled>qmake.exe untitled.pro -r -spec win32-g++
C:\workspace_llb_27-05-2016\untitled>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/workspace_llb_27-05-2016/untitled'
/C/workspace_llb_27-05-2016/untitled/uic_wrapper.sh mainwindow.ui -o ui_mainwindow.h
process_begin: CreateProcess(NULL, /C/workspace_llb_27-05-2016/untitled/uic_wrapper.sh mainwindow.ui -o ui_mainwi
ndow.h, ...) failed.
make (e=2): Le fichier spÚcifiÚ est introuvable.
Makefile.Debug:318: recipe for target 'ui_mainwindow.h' failed
mingw32-make[1]: *** [ui_mainwindow.h] Error 2
mingw32-make[1]: Leaving directory 'C:/workspace_llb_27-05-2016/untitled'
Makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
__________________________________________________ _________________________
sorry some part are in French. After using many project working I couldn't know what happen. Sometime I use the shadow build It could be that couldn't it ?
Thx