Hi All,
The latest tqt3 (pulled from git) now fails to build anybody any ideas? The build attempt for me ends like so;
../../include/ntqcommonstyle.h:118:12: note: virtual TQRect TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, TQStyleControlElementData, TQStyle::ControlElementFlags, TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const ../../include/ntqcommonstyle.h:118:12: note: no known conversion for argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ wood.cpp:1241:22: error: no matching function for call to âNorwegianWoodStyle::querySubControlMetrics(TQStyle::ComplexControl&, const TQWidget*&, TQStyle::SubControl&, const TQStyleOption&) constâ wood.cpp:1241:22: note: candidate is: In file included from ../../include/ntqwindowsstyle.h:45:0, from wood.h:22, from wood.cpp:10: ../../include/ntqcommonstyle.h:118:12: note: virtual TQRect TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, TQStyleControlElementData, TQStyle::ControlElementFlags, TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const ../../include/ntqcommonstyle.h:118:12: note: no known conversion for argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ wood.cpp:1248:21: error: no matching function for call to âNorwegianWoodStyle::querySubControlMetrics(TQStyle::ComplexControl&, const TQWidget*&, TQStyle::SubControl&, const TQStyleOption&) constâ wood.cpp:1248:21: note: candidate is: In file included from ../../include/ntqwindowsstyle.h:45:0, from wood.h:22, from wood.cpp:10: ../../include/ntqcommonstyle.h:118:12: note: virtual TQRect TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, TQStyleControlElementData, TQStyle::ControlElementFlags, TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const ../../include/ntqcommonstyle.h:118:12: note: no known conversion for argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ wood.cpp: In member function âvirtual TQRect NorwegianWoodStyle::subRect(TQStyle::SubRect, const TQWidget*) constâ: wood.cpp:1286:42: error: no matching function for call to âNorwegianWoodStyle::subRect(TQStyle::SubRect&, const TQWidget*&) constâ wood.cpp:1286:42: note: candidate is: In file included from wood.h:22:0, from wood.cpp:10: ../../include/ntqwindowsstyle.h:131:12: note: virtual TQRect TQWindowsStyle::subRect(TQStyle::SubRect, TQStyleControlElementData, TQStyle::ControlElementFlags, const TQWidget*) const ../../include/ntqwindowsstyle.h:131:12: note: candidate expects 4 arguments, 2 provided wood.cpp: In member function âvoid NorwegianWoodStyle::drawSemicircleButton(TQPainter*, const TQRect&, int, bool, const TQColorGroup&) constâ: wood.cpp:1365:46: error: no matching function for call to âNorwegianWoodStyle::pixelMetric(TQStyle::PixelMetric) constâ wood.cpp:1365:46: note: candidate is: In file included from wood.h:22:0, from wood.cpp:10: ../../include/ntqwindowsstyle.h:110:9: note: virtual int TQWindowsStyle::pixelMetric(TQStyle::PixelMetric, TQStyleControlElementData, TQStyle::ControlElementFlags, const TQWidget*) const ../../include/ntqwindowsstyle.h:110:9: note: candidate expects 4 arguments, 1 provided make[3]: *** [.obj/debug-shared-mt/wood.o] Error 1 make[3]: Leaving directory `/root/tqt3/examples/themes' make[2]: *** [sub-themes] Error 2 make[2]: Leaving directory `/root/tqt3/examples' make[1]: *** [sub-examples] Error 2 make[1]: Leaving directory `/root/tqt3' make: *** [init] Error 2
There are apparent errors that precede the above snippet but I'll investiage further.
Cheers, Mike.
On 09/08/2012 16:33, Mike Howard wrote:
Hi All,
The latest tqt3 (pulled from git) now fails to build anybody any ideas? The build attempt for me ends like so;
../../include/ntqcommonstyle.h:118:12: note: virtual TQRect TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, TQStyleControlElementData, TQStyle::ControlElementFlags, TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const ../../include/ntqcommonstyle.h:118:12: note: no known conversion for argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ wood.cpp:1241:22: error: no matching function for call to âNorwegianWoodStyle::querySubControlMetrics(TQStyle::ComplexControl&, const TQWidget*&, TQStyle::SubControl&, const TQStyleOption&) constâ wood.cpp:1241:22: note: candidate is: In file included from ../../include/ntqwindowsstyle.h:45:0, from wood.h:22, from wood.cpp:10: ../../include/ntqcommonstyle.h:118:12: note: virtual TQRect TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, TQStyleControlElementData, TQStyle::ControlElementFlags, TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const ../../include/ntqcommonstyle.h:118:12: note: no known conversion for argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ wood.cpp:1248:21: error: no matching function for call to âNorwegianWoodStyle::querySubControlMetrics(TQStyle::ComplexControl&, const TQWidget*&, TQStyle::SubControl&, const TQStyleOption&) constâ wood.cpp:1248:21: note: candidate is: In file included from ../../include/ntqwindowsstyle.h:45:0, from wood.h:22, from wood.cpp:10: ../../include/ntqcommonstyle.h:118:12: note: virtual TQRect TQCommonStyle::querySubControlMetrics(TQStyle::ComplexControl, TQStyleControlElementData, TQStyle::ControlElementFlags, TQStyle::SubControl, const TQStyleOption&, const TQWidget*) const ../../include/ntqcommonstyle.h:118:12: note: no known conversion for argument 2 from âconst TQWidget*â to âTQStyleControlElementDataâ wood.cpp: In member function âvirtual TQRect NorwegianWoodStyle::subRect(TQStyle::SubRect, const TQWidget*) constâ: wood.cpp:1286:42: error: no matching function for call to âNorwegianWoodStyle::subRect(TQStyle::SubRect&, const TQWidget*&) constâ wood.cpp:1286:42: note: candidate is: In file included from wood.h:22:0, from wood.cpp:10: ../../include/ntqwindowsstyle.h:131:12: note: virtual TQRect TQWindowsStyle::subRect(TQStyle::SubRect, TQStyleControlElementData, TQStyle::ControlElementFlags, const TQWidget*) const ../../include/ntqwindowsstyle.h:131:12: note: candidate expects 4 arguments, 2 provided wood.cpp: In member function âvoid NorwegianWoodStyle::drawSemicircleButton(TQPainter*, const TQRect&, int, bool, const TQColorGroup&) constâ: wood.cpp:1365:46: error: no matching function for call to âNorwegianWoodStyle::pixelMetric(TQStyle::PixelMetric) constâ wood.cpp:1365:46: note: candidate is: In file included from wood.h:22:0, from wood.cpp:10: ../../include/ntqwindowsstyle.h:110:9: note: virtual int TQWindowsStyle::pixelMetric(TQStyle::PixelMetric, TQStyleControlElementData, TQStyle::ControlElementFlags, const TQWidget*) const ../../include/ntqwindowsstyle.h:110:9: note: candidate expects 4 arguments, 1 provided make[3]: *** [.obj/debug-shared-mt/wood.o] Error 1 make[3]: Leaving directory `/root/tqt3/examples/themes' make[2]: *** [sub-themes] Error 2 make[2]: Leaving directory `/root/tqt3/examples' make[1]: *** [sub-examples] Error 2 make[1]: Leaving directory `/root/tqt3' make: *** [init] Error 2
There are apparent errors that precede the above snippet but I'll investiage further.
Sorry, that should read "There are _no_ apparent errors" .........
On 09/08/2012 16:55, Mike Howard wrote:
On 09/08/2012 16:33, Mike Howard wrote:
Hi All,
The latest tqt3 (pulled from git) now fails to build anybody any ideas? The build attempt for me ends like so;
Following up my own post, it does build successfully without the examples/tutorials.
Cheers, Mike.
On 09/08/2012 16:55, Mike Howard wrote:
On 09/08/2012 16:33, Mike Howard wrote:
Hi All,
The latest tqt3 (pulled from git) now fails to build anybody any ideas? The build attempt for me ends like so;
Following up my own post, it does build successfully without the examples/tutorials.
Cheers, Mike. -- Any question is easy if you know the answer!
Looks like a bug related to the recent style API change. I did not test build the examples, looks like I should have!
Tim
On 09/08/2012 16:55, Mike Howard wrote:
On 09/08/2012 16:33, Mike Howard wrote:
Hi All,
The latest tqt3 (pulled from git) now fails to build anybody any ideas? The build attempt for me ends like so;
Following up my own post, it does build successfully without the examples/tutorials.
Cheers, Mike. -- Any question is easy if you know the answer!
Looks like a bug related to the recent style API change. I did not test build the examples, looks like I should have!
Tim
This is now fixed in GIT. Please note that the Qt3/TQt3 ABI broke yet again due to this recent change.
Tim