Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.0 Beta 3
-
None
Description
This is similar to: QTBUG-60034 . It seems that this happens on most platforms, if not all.
Use the following example:
https://doc.qt.io/qt-5/qtcanvas3d-threejs-planets-example.html
While using MSVC compilers and with Qt Quick Compiler enabled I get compiling errors like these:
\5.9\winrt_x64_msvc2015\include\QtCore\5.9.0\QtCore -Irelease -IC:\Qt\5.9\winrt_x64_msvc2015\mkspecs\winrt-x64-msvc2015 -Forelease\ @C:\Users\Adrian\AppData\Local\Temp\.._.._3rdparty_three_js.obj.5092.2625.jom .._.._3rdparty_three_js.cpp .qtquickcompiler\.._.._3rdparty_three_js.cpp(47575): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(47588): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(47602): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(48004): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(48037): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(48070): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(114653): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(114788): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(115431): error C2064: term does not evaluate to a function taking 1 arguments .qtquickcompiler\.._.._3rdparty_three_js.cpp(115553): error C2064: term does not evaluate to a function taking 1 arguments
On Android I get
\android-g++ -o .._.._3rdparty_three_js.obj .qtquickcompiler\.._.._3rdparty_three_js.cpp .qtquickcompiler\.._.._3rdparty_three_js.cpp: In function 'QV4::ReturnedValue {anonymous}::jsfunction_37(QV4::ExecutionEngine*)': .qtquickcompiler\.._.._3rdparty_three_js.cpp:47575:64: error: 'doubleToInt' cannot be used as a function temp_int_0 = (int)engine->runtime.doubleToInt(temp_double_1); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp:47588:64: error: 'doubleToInt' cannot be used as a function temp_int_0 = (int)engine->runtime.doubleToInt(temp_double_2); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp:47602:64: error: 'doubleToInt' cannot be used as a function temp_int_1 = (int)engine->runtime.doubleToInt(temp_double_2); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp: In function 'QV4::ReturnedValue {anonymous}::jsfunction_40(QV4::ExecutionEngine*)': .qtquickcompiler\.._.._3rdparty_three_js.cpp:48004:64: error: 'doubleToInt' cannot be used as a function temp_int_1 = (int)engine->runtime.doubleToInt(temp_double_2); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp:48037:64: error: 'doubleToInt' cannot be used as a function temp_int_0 = (int)engine->runtime.doubleToInt(temp_double_2); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp:48070:64: error: 'doubleToInt' cannot be used as a function temp_int_0 = (int)engine->runtime.doubleToInt(temp_double_2); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp: In function 'QV4::ReturnedValue {anonymous}::jsfunction_495(QV4::ExecutionEngine*)': .qtquickcompiler\.._.._3rdparty_three_js.cpp:114653:64: error: 'doubleToInt' cannot be used as a function temp_int_1 = (int)engine->runtime.doubleToInt(temp_double_0); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp:114788:64: error: 'doubleToInt' cannot be used as a function temp_int_3 = (int)engine->runtime.doubleToInt(temp_double_2); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp: In function 'QV4::ReturnedValue {anonymous}::jsfunction_509(QV4::ExecutionEngine*)': .qtquickcompiler\.._.._3rdparty_three_js.cpp:115431:64: error: 'doubleToInt' cannot be used as a function temp_int_3 = (int)engine->runtime.doubleToInt(temp_double_2); ^ .qtquickcompiler\.._.._3rdparty_three_js.cpp: In function 'QV4::ReturnedValue {anonymous}::jsfunction_511(QV4::ExecutionEngine*)': .qtquickcompiler\.._.._3rdparty_three_js.cpp:115553:64: error: 'doubleToInt' cannot be used as a function temp_int_1 = (int)engine->runtime.doubleToInt(temp_double_0);
Something like this happened on macOS when I tried Qt 5.9 Beta 1. I haven't checked what happens with the Beta3, but I assume that the issue is still there.