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

Qt 5.12.0 include js file into source cause cannot compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.12.0
    • None
    • Qt for windows and Qt for linux.
    • All

    Description

      my english is poor, when i choose debug,Qt can compile very well,but when i choose release,Qt auto include the js file into the sourse,that cause cannot compile the project,i try the version 5.9.7,it can compile,then i try creator 4.8.0,and choose the 5.12.0 in creator 4.8.0,it can not work.

      My project is build on QtWebEngine and javascript and qrc,i compile the js file into the exe file.

      By the way,i have tried both windwos and linux platform.

       

      Before compile the project,the information is “

      Cannot open E:/Documents/QTProjects/KTSewageSystemReader/build-KTSewageSystemReader-Desktop_Qt_5_12_0_MSVC2017_32bit-Release/ui_qmlcache.qrc for writing.

      If i buildthe project,then will show the error as below:"

      Error compiling js file: ..\js\element.index.js:140:8: error: Unexpected token `;'

      ..\js\element.index.js:180:8: error: Unexpected token `;'

      jom: E:\Documents\QTProjects\KTSewageSystemReader\build-KTSewageSystemReader-Desktop_Qt_5_12_0_MSVC2017_32bit-Release\Makefile.Release [release\js_element.index_js.cpp] Error 1

      D:\Qt\Qt5.12\5.12.0\msvc2017\bin\qmlcachegen.exe --resource=E:/Documents/QTProjects/KTSewageSystemReader/ui.qrc -o release\js_vue2_5_17_js.cpp ..\js\vue2_5_17.js

      jom: E:\Documents\QTProjects\KTSewageSystemReader\build-KTSewageSystemReader-Desktop_Qt_5_12_0_MSVC2017_32bit-Release\Makefile [release] Error 2

      15:39:36: process"D:\Qt\Qt5.12\Tools\QtCreator\bin\jom.exe"exit error 2 。"

       

       

      Thank you very much.

      Thank Qt very much.

      I like Qt.

      Attachments

        1. a_project_view.png
          a_project_view.png
          10 kB
        2. building error.png
          building error.png
          32 kB
        3. debug_success.png
          debug_success.png
          88 kB
        4. error info.png
          error info.png
          3 kB
        5. Qt12Test.zip
          352 kB
        6. release_failed.png
          release_failed.png
          86 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            dream Dreambool Kingder
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes