Results 1 to 2 of 2

Thread: Another newbie question. Cannot genereate ui to .h via the makefile

  1. #1
    Join Date
    Apr 2016
    Posts
    16
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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
    DELETED4.jpgqmake.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

  2. #2
    Join Date
    Apr 2016
    Posts
    16
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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

Similar Threads

  1. Newbie question about QToolBar
    By AlbertoN in forum Newbie
    Replies: 1
    Last Post: 28th May 2012, 07:38
  2. Newbie Question with Qextserialport.tar.gz
    By nomad in forum Qt-based Software
    Replies: 2
    Last Post: 13th July 2009, 14:32
  3. Newbie Designer question
    By JariV in forum Qt Tools
    Replies: 0
    Last Post: 15th February 2009, 23:24
  4. QAbstractItemModel newbie question
    By okellogg in forum Qt Programming
    Replies: 14
    Last Post: 18th February 2008, 13:30
  5. Tipical newbie question
    By Dark_Tower in forum Newbie
    Replies: 2
    Last Post: 24th March 2006, 07:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.