# to find all the source code files in the current folder, or Set command Set all the files to a variable
The FILE (GLOB CPP_FILES "*. CPP")
# for the same reason, to find all the header files in the current folder
FILE (GLOB HEAD_FILES *. "h")
# for the same reason, to find all of the UI files in the current folder
The FILE (GLOB UI_FILES "*. The UI")
The FILE (GLOB TS_FILES "* ts")
# through the Ui files are generated the corresponding header file, be sure to add
Qt5_wrap_ui (WRAP_FILES ${UI_FILES})
Qt5_create_translation (Translate ${CMAKE_SOURCE_DIR} ${TS_FILES}) # ${UI_FILES} ${CPP_FILES}
The message (WARNING ${TS_FILES})
Compile results lupdate update fails, path exist. Ts file,
I want to know why fail? Where is the path to the set wrong? I use qmake project can set up normal updates,
Use command invocation can be successful, through the QT menu call. How can you get to lupdate exe parameters?
The following output information:
Starting external tool "E: \ QT5\5.14.2 \ mingw73_32 \ bin \ lupdate exe E:/QT5project/Manager/CMakeLists. TXT"
Running E: \ tools \ CMake \ CMake - 3.18.2 - win64 - x64 \ bin \ CMake exe E:/QT5project/Manager "- GCodeBlocks - MinGW Makefiles" in E: \ QT5project \ build - Manager - Desktop_Qt_5_14_2_MinGW_32_bit - Debug.
lupdate warning: no TS files specified. Only diagnostics will be produced.
"E: \ QT5\5.14.2 \ mingw73_32 \ bin \ lupdate exe" finished
CMake Warning at CMakeLists. TXT: 36 (the message) :
E:/QT5project/Manager/manager_chs tsE:/QT5project/Manager/manager_cht tsE:/QT5project/Manager/manager_eng ts
CodePudding user response:
This is likely to be lupdate command line parameter error, method is to create a new empty call lupdate exe engineering, and then, put it in the main function of each parameter is printed, output to stderr or save as a log, compile time soon know what is going on,CodePudding user response:
Use your lupdate temporarily replace the qt, completes the backup, or cmake compile time, take out your specific commands and have a look