Seite 1 von 1

(gelöst] Problem beim qwt build mit nmake

Verfasst: 22. März 2010 12:59
von topo
Hallo Qwt-Benutzer,

ich versuche qwt für VS2008 zu bauen. Dabei bin ich per Anleitung vorgegangen:

1. Qwt mit "svn co https://qwt.svn.sourceforge.net/svnroot ... es/qwt-5.2" heruntergeladen.
2. "qwtconfig.pri" angepasst, da ich statisch linken möchte, debug und release Version brauche und zudem gerne die Beispiele automatisch mitgebaut haben will.
3. Visual Studio 2008 Eingabeaufforderung gestartet und das Makefile mit "qmake qwt.pro" gebaut.
4. Make mit "nmake" gestartet.

Anschließend bekomme ich folgenden Fehler auf stderr:

Code: Alles auswählen

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : warning U4006: Spezialmakro undefiniert: "$<"
Access is denied.
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x1"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
stdout zeigt folgendes an:

Code: Alles auswählen

cd src/ && "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile
	"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug all
compiling 
Hat jemand eine Idee, woran dies liegen könnte, dass es beí mir nicht baut?

Vielen Dank schon im Voraus für Eure Hilfe!

Viele Grüße,
Thomas

Verfasst: 22. März 2010 16:14
von topo
Zusatzinfos:

Bei Eingabe von "nmake -d" bekomme ich folgendes:

Code: Alles auswählen


Mo, Mrz 22 2010 12:04:19         src/Makefile
                                  FORCE-Ziel ist nicht vorhanden.
                                sub-src-make_default-ordered-Ziel ist nicht vorhanden.
	cd src/ && "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile
	"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug all
compiling 

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : warning U4006: Spezialmakro undefiniert: "$<"
Access is denied.
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x1"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
iles\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile
	"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" -f Makefile.Debug all
compiling
 
:?: Was ist mit "FORCE-Ziel ist nicht vorhanden. sub-src-make_default-ordered-Ziel ist nicht vorhanden." gemeint? Im src-Ordner befindet sich ein Makefile!

Verfasst: 22. März 2010 16:58
von topo
Nächste Info: Die gleiche Prozedur unter Linux funktioniert, nur unter Windows mit nmake leider immer noch nicht.

Im Makefile gibt es auch wirklich diesen Aufruf:

Code: Alles auswählen

sub-src-make_default-ordered: src/$(MAKEFILE) FORCE
	cd src/ && $(MAKE) -f $(MAKEFILE)
Am Ende des Makefiles ist das FORCE allerdings nicht definiert:

Code: Alles auswählen

FORCE:
Dies ist jedoch in der Linux Variante auch genau so der Fall!

Verfasst: 22. März 2010 17:19
von Christian81
Kann es sein dass Du 'make.exe' im PATH hast?

Verfasst: 23. März 2010 07:54
von topo
Hallo Christian,

ich habe einige Dinge bereits installiert, z.B. MinGW und Cygwin, die beide auch ein make beinhalten. Hier meine Path Ausgabe:

C:\cygwin\bin;
C:\Qt\2009.03\mingw\bin;
C:\Qt\2009.03\qt\bin;
C:\Program Files\Common Files\GTK\2.0\bin;
C:\Program Files\Graphviz2.24\bin;
C:\Program Files\doxygen\bin;
C:\Program Files\CMake 2.8\bin;
C:\Program Files\TortoiseSVN\bin

Viele Grüße,
Thomas

Verfasst: 23. März 2010 08:00
von Christian81
Nimm cygwin und mingw aus den PATH raus und führ qmake nochmal korrekt aus. Wenn qmake 'make.exe' im PATH findet macht es nicht das was Du erwartest...

Verfasst: 23. März 2010 09:12
von topo
Hallo Christian,

bin gerade etwas am herumprobieren. Wenn ich cygwin und mingw aus dem PATH raus nehme bekomme ich folgende Ausgabe:

Code: Alles auswählen

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : warning U4006: Spezialmakro undefiniert: "$<"
[b]'g++' is not recognized as an internal or external command,
operable program or batch file.[/b]NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x1"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
Nehme ich mingw wieder rein komme ich weiter als bisher, habe aber das Problem, dass die Header Includes von Qt nicht gefunden werden!

Code: Alles auswählen

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Program Maintenance Utility, Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : warning U4006: Spezialmakro undefiniert: "$<"
qwt_abstract_scale_draw.cpp:12:22: qpainter.h: No such file or directory
qwt_abstract_scale_draw.cpp:13:22: qpalette.h: No such file or directory
qwt_abstract_scale_draw.cpp:14:18: qmap.h: No such file or directory
qwt_abstract_scale_draw.cpp:15:21: qlocale.h: No such file or directory
In file included from qwt_abstract_scale_draw.cpp:16:
qwt_math.h:14:20: qpoint.h: No such file or directory
In file included from qwt_math.h:15,
                 from qwt_abstract_scale_draw.cpp:16:
qwt_global.h:15:21: qglobal.h: No such file or directory
qwt_global.h:17:22: qmodules.h: No such file or directory
In file included from qwt_double_rect.h:15,
                 from qwt_math.h:16,
                 from qwt_abstract_scale_draw.cpp:16:
qwt_array.h:22:23: qmemarray.h: No such file or directory
In file included from qwt_math.h:16,
                 from qwt_abstract_scale_draw.cpp:16:
qwt_double_rect.h:50:19: qsize.h: No such file or directory
qwt_double_rect.h:51:19: qrect.h: No such file or directory
In file included from qwt_math.h:16,
                 from qwt_abstract_scale_draw.cpp:16:
qwt_double_rect.h:62: error: expected `,' or `...' before '&' token
qwt_double_rect.h:62: error: ISO C++ forbids declaration of `QPoint' with no type
qwt_double_rect.h:64: error: `QPoint' does not name a type
qwt_double_rect.h:105: error: expected `,' or `...' before '&' token
qwt_double_rect.h:105: error: ISO C++ forbids declaration of `QSize' with no type
qwt_double_rect.h:149: error: expected `,' or `...' before '&' token
qwt_double_rect.h:149: error: ISO C++ forbids declaration of `QRect' with no type
qwt_double_rect.h:150: error: `QRect' does not name a type
qwt_double_rect.h:274: error: `QPoint' does not name a type
In file included from qwt_abstract_scale_draw.cpp:16:
qwt_math.h:156: error: `QPoint' does not name a type
qwt_math.h:165: error: `QPoint' does not name a type
qwt_math.h: In function `QwtDoublePoint qwtPolar2Pos(const QwtDoublePoint&, double, double)':
qwt_math.h:177: error: `qRound' was not declared in this scope
qwt_math.h:177: error: `QPoint' was not declared in this scope
qwt_math.h:177: warning: unused variable 'QPoint'
In file included from qwt_abstract_scale_draw.cpp:17:
qwt_text.h:15:21: qstring.h: No such file or directory
qwt_text.h:17:19: qfont.h: No such file or directory
In file included from qwt_abstract_scale_draw.cpp:17:
qwt_text.h: At global scope:
qwt_text.h:134: error: expected `,' or `...' before '&' token
qwt_text.h:135: error: ISO C++ forbids declaration of `QString' with no type
qwt_text.h:144: error: expected `,' or `...' before '&' token
qwt_text.h:145: error: ISO C++ forbids declaration of `QString' with no type
qwt_text.h:146: error: `QString' does not name a type
qwt_text.h:151: error: expected `,' or `...' before '&' token
qwt_text.h:151: error: ISO C++ forbids declaration of `QFont' with no type
qwt_text.h:152: error: `QFont' does not name a type
qwt_text.h:154: error: `QFont' does not name a type
qwt_text.h:176: error: expected `,' or `...' before '&' token
qwt_text.h:176: error: ISO C++ forbids declaration of `QFont' with no type
qwt_text.h:177: error: `QSize' does not name a type
qwt_text.h:181: error: expected `,' or `...' before '&' token
qwt_text.h:182: error: ISO C++ forbids declaration of `QString' with no type
qwt_text.h: In member function `bool QwtText::isNull() const':
qwt_text.h:198: error: `text' was not declared in this scope
qwt_text.h:198: warning: unused variable 'text'
qwt_text.h: In member function `bool QwtText::isEmpty() const':
qwt_text.h:204: error: `text' was not declared in this scope
qwt_text.h:204: warning: unused variable 'text'
In file included from qwt_abstract_scale_draw.cpp:18:
qwt_painter.h:15:18: qpen.h: No such file or directory
In file included from qwt_layout_metrics.h:15,
                 from qwt_painter.h:17,
                 from qwt_abstract_scale_draw.cpp:18:
qwt_polygon.h:22:25: qpointarray.h: No such file or directory
In file included from qwt_layout_metrics.h:15,
                 from qwt_painter.h:17,
                 from qwt_abstract_scale_draw.cpp:18:
qwt_polygon.h: At global scope:
qwt_polygon.h:25: error: `QPointArray' does not name a type
qwt_polygon.h:26: error: expected initializer before '<' token
In file included from qwt_painter.h:17,
                 from qwt_abstract_scale_draw.cpp:18:
qwt_layout_metrics.h:63: error: `QPoint' does not name a type
qwt_layout_metrics.h:64: error: `QPoint' does not name a type
qwt_layout_metrics.h:65: error: `QPoint' does not name a type
qwt_layout_metrics.h:66: error: `QPoint' does not name a type
qwt_layout_metrics.h:69: error: `QSize' does not name a type
qwt_layout_metrics.h:70: error: `QSize' does not name a type
qwt_layout_metrics.h:71: error: `QSize' does not name a type
qwt_layout_metrics.h:72: error: `QSize' does not name a type
qwt_layout_metrics.h:79: error: `QwtPolygon' does not name a type
qwt_layout_metrics.h:81: error: `QwtPolygon' does not name a type
qwt_layout_metrics.h:85: error: `QwtPolygon' does not name a type
qwt_layout_metrics.h:74: error: `NULL' was not declared in this scope
qwt_layout_metrics.h:75: error: `NULL' was not declared in this scope
qwt_layout_metrics.h: In member function `int QwtMetricsMap::layoutToDeviceX(int) const':
qwt_layout_metrics.h:107: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:107: warning: unused variable 'qRound'
qwt_layout_metrics.h: In member function `int QwtMetricsMap::deviceToLayoutX(int) const':
qwt_layout_metrics.h:112: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:112: warning: unused variable 'qRound'
qwt_layout_metrics.h: In member function `int QwtMetricsMap::screenToLayoutX(int) const':
qwt_layout_metrics.h:117: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:117: warning: unused variable 'qRound'
qwt_layout_metrics.h: In member function `int QwtMetricsMap::layoutToScreenX(int) const':
qwt_layout_metrics.h:122: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:122: warning: unused variable 'qRound'
qwt_layout_metrics.h: In member function `int QwtMetricsMap::layoutToDeviceY(int) const':
qwt_layout_metrics.h:127: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:127: warning: unused variable 'qRound'
qwt_layout_metrics.h: In member function `int QwtMetricsMap::deviceToLayoutY(int) const':
qwt_layout_metrics.h:132: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:132: warning: unused variable 'qRound'
qwt_layout_metrics.h: In member function `int QwtMetricsMap::screenToLayoutY(int) const':
qwt_layout_metrics.h:137: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:137: warning: unused variable 'qRound'
qwt_layout_metrics.h: In member function `int QwtMetricsMap::layoutToScreenY(int) const':
qwt_layout_metrics.h:142: error: `qRound' was not declared in this scope
qwt_layout_metrics.h:142: warning: unused variable 'qRound'
qwt_layout_metrics.h: At global scope:
qwt_layout_metrics.h:145: error: `QSize' does not name a type
qwt_layout_metrics.h:151: error: `QSize' does not name a type
qwt_layout_metrics.h:157: error: `QSize' does not name a type
qwt_layout_metrics.h:163: error: `QSize' does not name a type
In file included from qwt_abstract_scale_draw.cpp:18:
qwt_painter.h:80: error: expected `,' or `...' before '&' token
qwt_painter.h:81: error: ISO C++ forbids declaration of `QPoint' with no type
qwt_painter.h:105: error: expected `,' or `...' before '&' token
qwt_painter.h:105: error: ISO C++ forbids declaration of `QPoint' with no type
qwt_painter.h:106: error: expected `,' or `...' before '&' token
qwt_painter.h:106: error: ISO C++ forbids declaration of `QwtPolygon' with no type
qwt_painter.h:107: error: expected `,' or `...' before '&' token
qwt_painter.h:107: error: ISO C++ forbids declaration of `QwtPolygon' with no type
qwt_painter.h:122: error: `Qt' has not been declared
qwt_painter.h:122: error: `Orientation' has not been declared
qwt_painter.h:122: error: ISO C++ forbids declaration of `parameter' with no type
qwt_painter.h:144: error: expected `,' or `...' before '&' token
qwt_painter.h:145: error: ISO C++ forbids declaration of `QPoint' with no type
qwt_painter.h: In static member function `static void QwtPainter::drawLine(QPainter*, int)':
qwt_painter.h:146: error: `p1' was not declared in this scope
qwt_painter.h:146: error: `p2' was not declared in this scope
In file included from qwt_abstract_scale_draw.cpp:19:
qwt_scale_map.h: At global scope:
qwt_scale_map.h:92: error: ISO C++ forbids declaration of `QT_STATIC_CONST' with no type
qwt_scale_map.h:92: error: expected `;' before "double"
qwt_scale_map.h:93: error: ISO C++ forbids declaration of `QT_STATIC_CONST' with no type
qwt_scale_map.h:93: error: expected `;' before "double"
qwt_scale_map.h: In member function `double QwtScaleMap::pDist() const':
qwt_scale_map.h:143: error: `QABS' was not declared in this scope
qwt_scale_map.h:143: warning: unused variable 'QABS'
qwt_scale_map.h: In member function `double QwtScaleMap::sDist() const':
qwt_scale_map.h:151: error: `QABS' was not declared in this scope
qwt_scale_map.h:151: warning: unused variable 'QABS'
qwt_scale_map.h: In member function `int QwtScaleMap::transform(double) const':
qwt_scale_map.h:195: error: `qRound' was not declared in this scope
qwt_scale_map.h:195: warning: unused variable 'qRound'
In file included from qwt_scale_div.h:14,
                 from qwt_abstract_scale_draw.h:14,
                 from qwt_scale_draw.h:15,
                 from qwt_abstract_scale_draw.cpp:20:
qwt_valuelist.h:23:24: qvaluelist.h: No such file or directory
In file included from qwt_scale_div.h:14,
                 from qwt_abstract_scale_draw.h:14,
                 from qwt_scale_draw.h:15,
                 from qwt_abstract_scale_draw.cpp:20:
qwt_valuelist.h: At global scope:
qwt_valuelist.h:25: error: expected initializer before '<' token
In file included from qwt_abstract_scale_draw.h:14,
                 from qwt_scale_draw.h:15,
                 from qwt_abstract_scale_draw.cpp:20:
qwt_scale_div.h:47: error: `QwtValueList' has not been declared
qwt_scale_div.h:47: error: ISO C++ forbids declaration of `parameter' with no type
qwt_scale_div.h:49: error: `QwtValueList' has not been declared
qwt_scale_div.h:49: error: ISO C++ forbids declaration of `parameter' with no type
qwt_scale_div.h:64: error: expected `,' or `...' before '&' token
qwt_scale_div.h:64: error: ISO C++ forbids declaration of `QwtValueList' with no type
qwt_scale_div.h:65: error: ISO C++ forbids declaration of `QwtValueList' with no type
qwt_scale_div.h:65: error: expected `;' before '&' token
qwt_scale_div.h:75: error: `QwtValueList' does not name a type
In file included from qwt_abstract_scale_draw.cpp:20:
qwt_scale_draw.h:53: error: expected `,' or `...' before '&' token
qwt_scale_draw.h:53: error: ISO C++ forbids declaration of `QPoint' with no type
qwt_scale_draw.h:59: error: `Qt' has not been declared
qwt_scale_draw.h:59: error: ISO C++ forbids declaration of `Orientation' with no type
qwt_scale_draw.h:59: error: expected `;' before "orientation"
qwt_scale_draw.h:61: error: `QPoint' does not name a type
qwt_scale_draw.h:78: error: `QPoint' does not name a type
qwt_scale_draw.h:81: error: `QSize' does not name a type
qwt_scale_draw.h:88: error: expected `,' or `...' before '&' token
qwt_scale_draw.h:88: error: ISO C++ forbids declaration of `QPoint' with no type
qwt_scale_draw.h: In member function `void QwtScaleDraw::move(int, int)':
qwt_scale_draw.h:110: error: `QPoint' was not declared in this scope
qwt_scale_draw.h:110: warning: unused variable 'QPoint'
qwt_abstract_scale_draw.cpp: At global scope:
qwt_abstract_scale_draw.cpp:45: error: ISO C++ forbids declaration of `QMap' with no type
qwt_abstract_scale_draw.cpp:45: error: expected `;' before '<' token
qwt_abstract_scale_draw.cpp: In member function `void QwtAbstractScaleDraw::setScaleDiv(const QwtScaleDiv&)':
qwt_abstract_scale_draw.cpp:112: error: 'class QwtAbstractScaleDraw::PrivateData' has no member named 'labelCache'
qwt_abstract_scale_draw.cpp: In member function `virtual void QwtAbstractScaleDraw::draw(QPainter*, const QColorGroup&) const':
qwt_abstract_scale_draw.cpp:171: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:174: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:174: error: invalid use of undefined type `const struct QColorGroup'
qwt_painter.h:29: error: forward declaration of `const struct QColorGroup'
qwt_abstract_scale_draw.cpp:179: error: expected initializer before '&' token
qwt_abstract_scale_draw.cpp:182: error: `majorTicks' was not declared in this scope
qwt_abstract_scale_draw.cpp:189: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:194: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:196: error: variable `QPen pen' has initializer but incomplete type
qwt_abstract_scale_draw.cpp:196: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:198: error: invalid use of undefined type `const struct QColorGroup'
qwt_painter.h:29: error: forward declaration of `const struct QColorGroup'
qwt_abstract_scale_draw.cpp:202: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:207: error: expected initializer before '&' token
qwt_abstract_scale_draw.cpp:208: error: `ticks' was not declared in this scope
qwt_abstract_scale_draw.cpp:216: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:221: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:223: error: variable `QPen pen' has initializer but incomplete type
qwt_abstract_scale_draw.cpp:223: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:225: error: invalid use of undefined type `const struct QColorGroup'
qwt_painter.h:29: error: forward declaration of `const struct QColorGroup'
qwt_abstract_scale_draw.cpp:229: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp:233: error: invalid use of undefined type `struct QPainter'
qwt_text.h:24: error: forward declaration of `struct QPainter'
qwt_abstract_scale_draw.cpp: In member function `virtual QwtText QwtAbstractScaleDraw::label(double) const':
qwt_abstract_scale_draw.cpp:362: error: `QLocale' has not been declared
qwt_abstract_scale_draw.cpp:362: error: `system' was not declared in this scope
qwt_abstract_scale_draw.cpp:362: warning: unused variable 'system'
qwt_abstract_scale_draw.cpp: In member function `const QwtText& QwtAbstractScaleDraw::tickLabel(const QFont&, double) const':
qwt_abstract_scale_draw.cpp:381: error: `QMap' was not declared in this scope
qwt_abstract_scale_draw.cpp:381: error: expected primary-expression before "double"
qwt_abstract_scale_draw.cpp:381: error: expected `;' before "double"
qwt_abstract_scale_draw.cpp:382: error: `it' was not declared in this scope
qwt_abstract_scale_draw.cpp:382: error: 'class QwtAbstractScaleDraw::PrivateData' has no member named 'labelCache'
qwt_abstract_scale_draw.cpp:388: error: 'class QwtText' has no member named 'textSize'
qwt_abstract_scale_draw.cpp:390: error: 'class QwtAbstractScaleDraw::PrivateData' has no member named 'labelCache'
qwt_abstract_scale_draw.cpp:393: error: `it' was not declared in this scope
qwt_abstract_scale_draw.cpp:381: warning: unused variable 'QMap'
qwt_abstract_scale_draw.cpp:393: warning: unused variable 'it'
qwt_abstract_scale_draw.cpp: In member function `void QwtAbstractScaleDraw::invalidateCache()':
qwt_abstract_scale_draw.cpp:405: error: 'class QwtAbstractScaleDraw::PrivateData' has no member named 'labelCache'
NMAKE : fatal error U1077: "echo": Rückgabe-Code "0x1"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: "cd": Rückgabe-Code "0x2"
Stop.
Die Include Umgebungsvariable ist richtig gesetzt. Was mic wundert ist das nmake folgende Warnung bringt: "NMAKE : warning U4006: Spezialmakro undefiniert: "$<" ". "$<" steht im Makefile dirket mit den Includes zusammen:

Code: Alles auswählen

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
Könnte hier das Problem sein?

Viele Grüße,
Thomas

Verfasst: 23. März 2010 09:46
von Christian81
Nach dem Herausnehmen hast Du nicht mit qmake das Makefile neu erstellt.
MinGW und MSVC C++-Libs kann man nicht mixen, also kann das nichts werden.

Verfasst: 23. März 2010 10:51
von topo
Hallo Christian,

das war der entscheidente Tipp. Das Problem war zuvor nicht das ich kein qmake ausgeführt habe, sondern dass in den Unterordnern noch die alten Makefiles existiert haben und diese nicht überschrieben wurden! Warum auch immer, nmake clean brachte auch nichts!? Nachdem ich alle Makefiles in den Unterordnern gelöscht habe und nmake ausführte, hat es auch funktioniert.

Vielen Dank für Deine Hilfe, Du hast mir sehr weitergeholfen :D!

Viele Grüße,
Thomas