there is a bug: https://bugreports.qt-project.org/browse/QTBUG-22829 in Qt moc compiler and, as far I see, OpenCS will not compile with boost 1.53 (and probably other versions >= 1.48 as mentioned in bugreport) and Qt 4.8.4 (it's fixed in Qt 5.0).
Forcing the use of newer Qt is not an option. I guess we could fix it by locating all includes for that boost library (and all includes for headers that include that boost library) and put them in #ifndef Q_MOC_RUN and #endif.
I think this workaround is nicer (assuming that it is possible from within CMake):
Passing the following to moc will prevent it from parsing through the portion of boost that it is having problems with:
-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
scrawl wrote:I think this workaround is nicer (assuming that it is possible from within CMake):
Passing the following to moc will prevent it from parsing through the portion of boost that it is having problems with:
-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
I've just added this near line 309 in CMakeLists.txt (where gcc parameters are set) but unfortunately this didn't solve the problem. I will try with #ifndefs Q_MOC_RUN.