code-google-com / qdevelop

Automatically exported from code.google.com/p/qdevelop
GNU General Public License v2.0
1 stars 1 forks source link

qmake creates corrupted makefile #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I'm trying to use QDevelop with a simple project, which works fine on the
commandline using mingw and also MS-VC

operating-system: windows xp, mingw, open source Qt 4.3.3
Problem exists in windows installer version and latest stable source. 

Problem: QDevelop starts before building the project qmake. qmake cretaes
makefiles for debug and release which can't be used by QDevelop nor on the
commandline directly.

The wrong lines start after implicit rules in makefile with << !

pro-file:

TARGET = messme
CONFIG += qt warn_on thread debug_and_release
HEADERS = mainwindow.h plotter.h csetupdialog.h
SOURCES = main.cpp mainwindow.cpp plotter.cpp csetupdialog.cpp
RESOURCES = application.qrc
LIBS += cbw32.lib
MOC_DIR = moc
OBJECTS_DIR = obj
OBJMOC = moc
TEMPLATE = app

created makefile:

#############################################################################
# Makefile for building: messme
# Generated by qmake (2.01a) (Qt 4.3.3) on: Fr 22. Feb 15:28:57 2008
# Project:  messme.pro
# Template: app
#############################################################################

####### Compiler, tools and options

CC            = cl
CXX           = cl
DEFINES       = -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
-DQT_THREAD_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB
CFLAGS        = -nologo -Zm300 -Zi -MDd -W3 $(DEFINES)
CXXFLAGS      = -nologo -Zm300 -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc
$(DEFINES)
INCPATH       = -I"e:\Qt\4.3.3\include\QtCore"
-I"e:\Qt\4.3.3\include\QtCore" -I"e:\Qt\4.3.3\include\QtGui"
-I"e:\Qt\4.3.3\include\QtGui" -I"e:\Qt\4.3.3\include"
-I"e:\Qt\4.3.3\include\ActiveQt" -I"moc" -I"."
-I"e:\Qt\4.3.3\mkspecs\win32-msvc.net"
LINK          = link
LFLAGS        = /LIBPATH:"e:\Qt\4.3.3\lib" /NOLOGO /DEBUG
/NODEFAULTLIB:libc /SUBSYSTEM:WINDOWS
LIBS          = e:\Qt\4.3.3\lib\qtmaind.lib cbw32.lib
e:\Qt\4.3.3\lib\QtGuid4.lib e:\Qt\4.3.3\lib\QtCored4.lib
QMAKE         = e:\Qt\4.3.3\bin\qmake.exe
IDC           = e:\Qt\4.3.3\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   = obj

####### Files

SOURCES       = main.cpp \
        mainwindow.cpp \
        plotter.cpp \
        csetupdialog.cpp moc\moc_mainwindow.cpp \
        moc\moc_plotter.cpp \
        moc\moc_csetupdialog.cpp \
        debug\qrc_application.cpp
OBJECTS       = obj\main.obj \
        obj\mainwindow.obj \
        obj\plotter.obj \
        obj\csetupdialog.obj \
        obj\moc_mainwindow.obj \
        obj\moc_plotter.obj \
        obj\moc_csetupdialog.obj \
        obj\qrc_application.obj
DIST          = 
QMAKE_TARGET  = messme
DESTDIR        = debug\ #avoid trailing-slash linebreak
TARGET         = messme.exe
DESTDIR_TARGET = debug\messme.exe

####### Implicit rules

.SUFFIXES: .c .cpp .cc .cxx

{.}.cpp{obj\}.obj::
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
    $<
<<

{.}.cc{obj\}.obj::
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
    $<
<<

{.}.cxx{obj\}.obj::
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -Foobj\ @<<
    $<
<<

errors displayed by QDevelop:

Erstellen (make)...
E:/MinGW/bin/make -f Makefile.Debug
make[1]: Entering directory `D:/messme'
make[1]: Leaving directory `D:/messme'
Makefile.Debug:71: *** missing separator.  Stop.
make: *** [debug] Error 2 

Hope, this helps
Detlef

Original issue reported on code.google.com by betonk...@web.de on 22 Feb 2008 at 5:35

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry but we can't fix bugs in qmake. Please report them to qtsoftware.com

Original comment by Lord.Div...@gmail.com on 31 Jan 2009 at 12:36