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 <[email protected]> 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
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
