Wesnoth 1.17.7 pango build error
Moderator: Forum Moderators
Wesnoth 1.17.7 pango build error
When I build the 1.17.7 version from the source, I have the error :
Change 'pango_layout_set_line_spacing' in 'pango_layout_set_spacing' makes the error disappear, and the game seems to work well.
I use the 1.42.4-8~deb10u1 of libpango1.0-dev.
For the complete log : https://c.gmx.com/@1091385412309489919/ ... Z65SrCVxxQ
Code: Select all
[ 96%] Building CXX object src/CMakeFiles/wesnoth-client.dir/font/text.cpp.o
/home/pi/wesnoth-1.17.7/src/font/text.cpp: In constructor ‘font::pango_text::pango_text()’:
/home/pi/wesnoth-1.17.7/src/font/text.cpp:100:2: error: ‘pango_layout_set_line_spacing’ was not declared in this scope
pango_layout_set_line_spacing(layout_.get(), 1.3f);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/wesnoth-1.17.7/src/font/text.cpp:100:2: note: suggested alternative: ‘pango_layout_set_spacing’
pango_layout_set_line_spacing(layout_.get(), 1.3f);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pango_layout_set_spacing
make[2]: *** [src/CMakeFiles/wesnoth-client.dir/build.make:5892: src/CMakeFiles/wesnoth-client.dir/font/text.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1247: src/CMakeFiles/wesnoth-client.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
I use the 1.42.4-8~deb10u1 of libpango1.0-dev.
For the complete log : https://c.gmx.com/@1091385412309489919/ ... Z65SrCVxxQ
« Hacker vaillant, rien d’impossible ! »
- Pentarctagon
- Project Manager
- Posts: 5599
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Wesnoth 1.17.7 pango build error
The minimum requirement for pango was increased to 1.44 - it looks like this was updated in
INSTALL.md
but not in the actual cmake/scons scripts.99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Wesnoth 1.17.7 pango build error
Thank you. I have upgrade pango and the build works.
« Hacker vaillant, rien d’impossible ! »