[CMake] QT4_CREATE_TRANSLATION cannont fill my *.ts files
Sergio Vera
sergio.vera at alma3d.com
Mon May 26 11:57:48 EDT 2014
o/
Just for the record, I solved the issue: if there are empty *.ts files
lupdate will fail to populate them.
Regards
On Fri, May 23, 2014 at 2:25 PM, Sergio Vera <sergio.vera at alma3d.com> wrote:
>
> 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
>
--
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/20140526/441418d4/attachment-0001.html>
More information about the CMake
mailing list