This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
http://lists.trolltech.com/pipermail/qt-interest/2010-May/022965.html I've exactly followed the instructions (except for versions, I used the latest available). http://netbeans.org/kb/docs/cnd/qt-applications.html NetBeans IDE (including C/C++ support) Version 6.7 or 6.8 --------------- 6.9 development edition Java Development Kit (JDK) Version 6 or version 5 ------------ 6.20 GNU C/C++ compilers (GCC) Versions supported by NetBeans IDE. ------------------- gcc 4.5 . less than gcc 4.4 will not be accepted by qt framework 4.6.2 nor 4.7. Don't know about 4.6.1 since not on qt website. On Windows, MinGW is required. There are issues with qmake-generated Makefile under Cygwin. Qt Libraries Version 4.4, 4.5, or 4.6.1 ---- I installed only qt libraries, not the whole sdk. ---installed msys and configured it.
If you followed the tutorial, then you have a managed C/C++ Qt Application project, right? For managed projects NetBeans performs the backslash-to-forward slash conversion. "nbproject/Makefile-${CND_CONF}.mk" should contain the following two lines in the "nbproject/qt-${CND_CONF}.mk" rule: @sed -e 's:\\\(.\):/\1:g' nbproject/qt-${CND_CONF}.mk >nbproject/qt-${CND_CONF}.tmp @mv -f nbproject/qt-${CND_CONF}.tmp nbproject/qt-${CND_CONF}.mk Are these lines present in the makefile? Is sed working?
confirmed
If you followed the tutorial, then you have a managed C/C++ Qt Application project, right? where is 'managed ' ... mentioned in the tutorial? What I've done is create the new project sample hello qt world and tried to run it. For managed projects NetBeans performs the backslash-to-forward slash conversion. "nbproject/Makefile-${CND_CONF}.mk" should contain the following two lines in the "nbproject/qt-${CND_CONF}.mk" rule: @sed -e 's:\\\(.\):/\1:g' nbproject/qt-${CND_CONF}.mk >nbproject/qt-${CND_CONF}.tmp @mv -f nbproject/qt-${CND_CONF}.tmp nbproject/qt-${CND_CONF}.mk Are these lines present in the makefile? Is sed working? yes: @sed -e 's:\\\(.\):/\1:g' nbproject/qt-${CND_CONF}.mk >nbproject/qt-${CND_CONF}.tmp @mv -f nbproject/qt-${CND_CONF}.tmp nbproject/qt-${CND_CONF}.mk I don't know how to know if sed is working. I've attached the project, although it should be reproducable. PS: why is it that when I reply a new comment is not aggregated?
I'm installing GCC 4.4 and Qt 4.7 beta 1 to try to reproduce this.
OK, I've managed to reproduce this on Windows XP with Qt 4.7 beta 1. This is Qt problem. qmake generates invalid makefile, without any path separator at all between "bin" and tool name ("uic", "idc", "moc"). E.g. I see the following buggy lines in the makefile produced by qmake: > IDC = c:/util/qt-4.7b1/binidc.exe > ... > ui_HelloForm.h: HelloForm.ui > c:/util/qt-4.7b1/binuic.exe HelloForm.ui -o ui_HelloForm.h This is without NetBeans at all, pure command line. Please file a bug against Qt.
To clarify: I saw this problem when running qmake from both MSYS shell and cmd.
Yet another clarification: the bug is triggered by "CONFIG-=debug_and_release". Without this qmake generates Makefile.Release and Makefile.Debug, both with correct paths.
http://bugreports.qt.nokia.com/browse/QTBUG-10633
Created attachment 98866 [details] Sample project Thank you for filing that bug. Here is a sample project you can give to Qt developers. In includes Makefile generated from qttest.pro on Windows XP by qmake/Qt 4.7 beta 1.
Workaround: in D:/Qt/2010.05/qt/mkspecs/default/qmake.conf file replace QMAKE_MOC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}moc.exe QMAKE_UIC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}uic.exe QMAKE_IDC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc.exe on QMAKE_MOC = $$[QT_INSTALL_BINS]/moc.exe QMAKE_UIC = $$[QT_INSTALL_BINS]/uic.exe QMAKE_IDC = $$[QT_INSTALL_BINS]/idc.exe
*** Bug 191690 has been marked as a duplicate of this bug. ***
I updated my Qt to 4.8 and build works nicely.