PDA

View Full Version : cant ceate makefile



raphaelf
23rd January 2006, 13:08
Hi everyboy,

OS: WINXP
Compiler: .Net 2003
QT: 3.4

i am trying to make the MAKEFILE of qwtplot3d.pro and i was not able because i get this error message:
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.

Can somebody see whats wrong in this .pro file?

Thanks



# pro file for building the makefile for qwtplot3d
#


TARGET = qwtplot3d
TEMPLATE = lib
CONFIG += qt warn_on opengl thread zlib
MOC_DIR = tmp
OBJECTS_DIR = tmp
INCLUDEPATH = include
DEPENDPATH = include src
DESTDIR = lib
#DESTDIR = ../../../lib
QT += opengl

win32:TEMPLATE = vclib
win32:CONFIG += dll exceptions
win32:dll:DEFINES += QT_DLL QWT3D_DLL QWT3D_MAKEDLL
win32:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_STL

# Comment the next line, if you have zlib on your windows system
win32:CONFIG -= zlib

linux-g++:TMAKE_CXXFLAGS += -fno-exceptions
unix:VERSION = 0.2.6

# Input
SOURCES += src/qwt3d_axis.cpp \
src/qwt3d_color.cpp \
src/qwt3d_coordsys.cpp \
src/qwt3d_drawable.cpp \
src/qwt3d_mousekeyboard.cpp \
src/qwt3d_movements.cpp \
src/qwt3d_lighting.cpp \
src/qwt3d_colorlegend.cpp \
src/qwt3d_plot.cpp \
src/qwt3d_label.cpp \
src/qwt3d_types.cpp \
src/qwt3d_enrichment_std.cpp \
src/qwt3d_autoscaler.cpp \
src/qwt3d_io_reader.cpp \
src/qwt3d_io.cpp \
src/qwt3d_scale.cpp

SOURCES += src/qwt3d_gridmapping.cpp \
src/qwt3d_parametricsurface.cpp \
src/qwt3d_function.cpp

SOURCES += src/qwt3d_surfaceplot.cpp \
src/qwt3d_gridplot.cpp \
src/qwt3d_meshplot.cpp


HEADERS += include/qwt3d_color.h \
include/qwt3d_global.h \
include/qwt3d_types.h \
include/qwt3d_axis.h \
include/qwt3d_coordsys.h \
include/qwt3d_drawable.h \
include/qwt3d_helper.h \
include/qwt3d_label.h \
include/qwt3d_openglhelper.h \
include/qwt3d_colorlegend.h \
include/qwt3d_plot.h \
include/qwt3d_enrichment.h \
include/qwt3d_enrichment_std.h \
include/qwt3d_autoscaler.h \
include/qwt3d_autoptr.h \
include/qwt3d_io.h \
include/qwt3d_io_reader.h \
include/qwt3d_scale.h \
include/qwt3d_portability.h

HEADERS += include/qwt3d_mapping.h \
include/qwt3d_gridmapping.h \
include/qwt3d_parametricsurface.h \
include/qwt3d_function.h

HEADERS += include/qwt3d_surfaceplot.h \
include/qwt3d_volumeplot.h \
include/qwt3d_graphplot.h \
include/qwt3d_multiplot.h

# gl2ps support
HEADERS+=3rdparty/gl2ps/gl2ps.h \
include/qwt3d_io_gl2ps.h

SOURCES+=src/qwt3d_io_gl2ps.cpp \
3rdparty/gl2ps/gl2ps.c

# zlib support for gl2ps
zlib {
DEFINES += GL2PS_HAVE_ZLIB
win32:LIBS += zlib.lib
unix:LIBS += -lz
}

mcosta
23rd January 2006, 13:17
i am trying to make the MAKEFILE of qwtplot3d.pro and i was not able because i get this error message:
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.


Are you used qmake?

You must do this
$qmake -o Makefile <name>.pro
$make

raphaelf
23rd January 2006, 13:26
hi mcosta,

i tried:
qmake qwtplot3d.pro
nmake


if i try your example i get a Makefile and a error:
qmake -o Makefile qwtplot3d.pro
nmake

Error:


This is not a valid makefile. To build this project using NMAKE,
use the Export Makefile command and run

NMAKE /f "qwtplot3d.mak".

You can specify a configuration when running NMAKE
by defining the macro CFG on the command line. For example:

NMAKE /f "qwtplot3d.mak" CFG="qwtplot3d - Win32 Debug"

Possible choices for configuration are:

"qwtplot3d - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
"qwtplot3d - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")

NMAKE : fatal error U1073: don't know how to make '""'
Stop.


Bevor i have allways used qmake <name>.pro and nmake to compile everything

yop
23rd January 2006, 20:03
Try
qmake -makefile -spec win32-msvc [name].pro
or
qmake -makefile -spec win32-msvc.net [name].pro
If it works then your QMAKESPEC env var is not set correctly.
Could you post the Makefile that does not build?

raphaelf
24th January 2006, 08:12
hi yop

My QMAKESPEC env var is set = "win32-msvc" and i have compiled more then 100 examples ;)
Its just amazing that i am not able to compile qwtplot3d.pro ;(

I have tried:
qmake -makefile -spec win32-msvc [name].pro
and
qmake -makefile -spec win32-msvc.net [name].pro
and i get this:


This is not a valid makefile. To build this project using NMAKE,
use the Export Makefile command and run

NMAKE /f "qwtplot3d.mak".

You can specify a configuration when running NMAKE
by defining the macro CFG on the command line. For example:

NMAKE /f "qwtplot3d.mak" CFG="qwtplot3d - Win32 Debug"

Possible choices for configuration are:

"qwtplot3d - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
"qwtplot3d - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")

NMAKE : fatal error U1073: don't know how to make '""'
Stop.


if i run:
qmake -o Makefile qwtplot3d.pro
nmake

i get this makefile:

yop
24th January 2006, 09:05
My experience is with gnu make makefiles so you should keep in mind that I might be mistaking. The only line that seems that could fail is: $(SOURCE) "$(INTDIR)" "$(OUTDIR)" when generating the moced sources. Could you try setting the MOC_DIR in your .pro file?

raphaelf
24th January 2006, 12:32
hi!
;)
how should i set the MOC_Dir and wich values? Or where could i read about?

yop
24th January 2006, 14:52
hi!
;)
how should i set the MOC_Dir and wich values? Or where could i read about?
Just write
MOC_DIR = mocs in your .pro file. See your Qt documentation for the "qmake User Guide" I find this a must if you are developing using Qt