[CMake] QT4_CREATE_TRANSLATION cannont fill my *.ts files
Sergio Vera
sergio.vera at alma3d.com
Fri May 23 08:25:16 EDT 2014
Hello fellow CMakers
I'm following the CMake guide to Qt based internationalization of my app:
http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software
However, After many attempts I cannot generate the proper files:
Here is an digest of my CMakeLists.txt
FILE(GLOB INCLUDE_FILES *.h)
FILE(GLOB SOURCE_FILES *.txx *.cpp * cxx)
FILE(GLOB UI_FILES *.ui)
#...
SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${INCLUDE_FILES} ${UI_FILES}
${SOURCE_FILES})
FILE (GLOB TRANSLATIONS_FILES *.ts)
QT4_CREATE_TRANSLATION(QM_FILES ${FILES_TO_TRANSLATE} ${TRANSLATIONS_FILES})
I have created two empty ts files in my source dir: CoreApp_es.ts and
CoreApp_en.ts
When I compile the project, Qt's lupdate tries to populate the ts files
with the literals from my files:
Generating
/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/CoreApp_es.ts
Generating
/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/CoreApp_en.ts
Scanning directory
'/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Reporting'...
Scanning directory
'/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/images'...
although it seems to analyze as well my boost header files.
/usr/include/boost/thread/future.hpp:3385: Unbalanced opening parenthesis
in C++ code (or abuse of the C++ preprocessor)
/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Scene.cxx:41:
Discarding unconsumed meta data
However, at the end, the ts files are still empty and 0 size so when
lrelase attempts to compile the translations it complains:
/usr/include/boost/thread/future.hpp:3385: Unbalanced opening parenthesis
in C++ code (or abuse of the C++ preprocessor)
/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Scene.cxx:41:
Discarding unconsumed meta data
I'm out of ideas ny now. Any help would be kidnly appreciated
--
Sergio Vera
Alma IT Systems
C/ Vilana, 4B, 4º 1ª
08022 Barcelona
T. (+34) 932 380 592
www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140523/9e4bd6b0/attachment.html>
More information about the CMake
mailing list