Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60535

Unable to compile with Qt Quick Compiler enabled ( Qt 5.9 Beta 3 )

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            adrian.gabureanu Adrian Gabureanu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes