[Qgis-developer] Build error with qgscontexthelp_texts.cpp
Rainer Hurling
rhurlin at gwdg.de
Fri Jul 3 12:57:41 PDT 2015
Hello list,
I am one of the guys, who prepare ports of QGIS for other operating
systems. In my case, it is for the FreeBSD OS [1]. I am in the process
of porting QGIS 2.10.0 at the moment, probably only one last bigger
problem exists.
For some weeks now, when I try to build QGIS from sources, it often but
not always fails with an error about src/core/qgscontexthelp_texts.cpp
[2]. Creating this file on FreeBSD gives an unrecognizable
character(string) in l11:88. This differs from build to build. Here are
some examples for line 11 from several builds:
gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate(
"context_help", "^\n"
gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate(
"context_help", "¸`ô\n"
gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate(
"context_help", "(\n"
gContextHelpTexts.insert( "CMakeFiles", QCoreApplication::translate(
"context_help", "w½\n"
It seems, there is an internationalization problem? This happens at
least with locale en_US.UTF-8 and de_DE.UTF-8.
Unfortunately, I have no clue, if this is an upstream related problem or
more likely, with the FreeBSD toolchain :(
Any help is really appreciated. Please, let me know if I should give
more information, thanks.
Best regards,
Rainer Hurling
[1] https://www.freshports.org/graphics/qgis
[2] part of the build log:
[..snip..]
[ 13%] Building CXX object
src/core/CMakeFiles/qgis_core.dir/qgscoordinatetransform.cpp.o
[ 13%] Building CXX object
src/core/CMakeFiles/qgis_core.dir/qgscredentials.cpp.o
/usr/ports/graphics/qgis/work/QGIS-5cd8d08/src/core/qgscontexthelp_texts.cpp:11:88:
warning:
missing terminating '"' character [-Winvalid-pp-token]
..."CMakeFiles", QCoreApplication::translate( "context_help", "[4<D8>
^
/usr/ports/graphics/qgis/work/QGIS-5cd8d08/src/core/qgscontexthelp_texts.cpp:11:88:
error:
expected expression
/usr/ports/graphics/qgis/work/QGIS-5cd8d08/src/core/qgscontexthelp_texts.cpp:12:4:
warning:
missing terminating '"' character [-Winvalid-pp-token]
<U+000C>\n"
^
2 warnings and 1 error generated.
src/core/CMakeFiles/qgis_core.dir/build.make:2144: recipe for target
'src/core/CMakeFiles/qgis_core.dir/qgscontexthelp_texts.cpp.o' failed
gmake[4]: ***
[src/core/CMakeFiles/qgis_core.dir/qgscontexthelp_texts.cpp.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory '/usr/ports/graphics/qgis/work/QGIS-5cd8d08'
CMakeFiles/Makefile2:1116: recipe for target
'src/core/CMakeFiles/qgis_core.dir/all' failed
gmake[3]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
gmake[3]: Leaving directory '/usr/ports/graphics/qgis/work/QGIS-5cd8d08'
Makefile:146: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/usr/ports/graphics/qgis/work/QGIS-5cd8d08'
===> Compilation failed unexpectedly.
More information about the Qgis-developer
mailing list