<div dir="ltr"><div><div><div><div><div><div><br clear="all"></div>Hello fellow CMakers<br><br></div>I'm following the CMake guide to Qt based internationalization of my app: <a href="http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software">http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software</a><br>
<br></div>However, After many attempts I cannot generate the proper files:<br></div>Here is an digest of my CMakeLists.txt<br><br><span style="font-family:courier new,monospace">FILE(GLOB INCLUDE_FILES *.h)<br>FILE(GLOB SOURCE_FILES  *.txx *.cpp * cxx)<br>
FILE(GLOB UI_FILES  *.ui)<br>#...<br>SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${INCLUDE_FILES} ${UI_FILES} ${SOURCE_FILES})<br>FILE (GLOB TRANSLATIONS_FILES *.ts)<br>QT4_CREATE_TRANSLATION(QM_FILES ${FILES_TO_TRANSLATE} ${TRANSLATIONS_FILES})</span><br>
<br></div>I have created two empty ts files in my source dir: CoreApp_es.ts and CoreApp_en.ts<br><br></div><div>When I compile the project, Qt's lupdate tries to populate the ts files with the literals from my files:<br>
</div><div><div><br><span style="font-family:courier new,monospace">Generating /home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/CoreApp_es.ts<br>Generating /home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/CoreApp_en.ts<br>
Scanning directory '/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Reporting'...<br>Scanning directory '/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/images'...<br></span><br>
<br></div><div>although it seems to analyze as well my boost header files.<br></div><div><br><span style="font-family:courier new,monospace">/usr/include/boost/thread/future.hpp:3385: Unbalanced opening parenthesis in C++ code (or abuse of the C++ preprocessor)<br>
/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Scene.cxx:41: Discarding unconsumed meta data</span><br><br><br></div><div>However, at the end, the ts files are still empty and 0 size so when lrelase attempts to compile the translations it complains: <br>
<span style="font-family:courier new,monospace"><br>/usr/include/boost/thread/future.hpp:3385: Unbalanced opening parenthesis in C++ code (or abuse of the C++ preprocessor)<br>/home/sergio/src/alma/HEAR-EU/hear-eu-planner/HiResViewer/CoreApp/Scene.cxx:41: Discarding unconsumed meta data</span><br>
</div><div><br><br></div><div>I'm out of ideas ny now. Any help would be kidnly appreciated<br></div><div><div><div><div><div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br>
 T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a>
</div></div></div></div></div></div></div>