Build error, something with the font: [ 88%] Building CXX object client/CMakeFiles/vcmiclientcommon.dir/renderSDL/CTrueTypeFont.cpp.o
In file included from /home/michaldybczak/.build/vcmi/src/vcmi-1.6.2/client/renderSDL/CTrueTypeFont.cpp:23:
/usr/include/SDL2/SDL_ttf.h:165:16: error: using typedef-name ‘using TTF_Font = struct _TTF_Font’ after ‘struct’
165 | typedef struct TTF_Font TTF_Font;
| ^
~
In file included from /home/michaldybczak/.build/vcmi/src/vcmi-1.6.2/client/renderSDL/CTrueTypeFont.cpp:11:
/home/michaldybczak/.build/vcmi/src/vcmi-1.6.2/client/renderSDL/CTrueTypeFont.h:20:7: note: ‘using TTF_Font = struct _TTF_Font’ has a previous declaration here
20 | using TTF_Font = struct _TTF_Font;
| ^~
/usr/include/SDL2/SDL_ttf.h:165:25: error: conflicting declaration ‘typedef int TTF_Font’
165 | typedef struct TTF_Font TTF_Font;
| ^~
/home/michaldybczak/.build/vcmi/src/vcmi-1.6.2/client/renderSDL/CTrueTypeFont.h:20:7: note: previous declaration as ‘using TTF_Font = struct _TTF_Font’
20 | using TTF_Font = struct _TTF_Font;
| ^~
make[2]: *** [client/CMakeFiles/vcmiclientcommon.dir/build.make:1472: client/CMakeFiles/vcmiclientcommon.dir/renderSDL/CTrueTypeFont.cpp.o] Error 1
make[2]: *** Waiting for the unfinished tasks....
make[1]: *** [CMakeFiles/Makefile2:1248: client/CMakeFiles/vcmiclientcommon.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: Error in build().
Aborting...
By the way, what type of markings (code?) I have to use to make the output not be clamped together, like others did below?
Pinned Comments
Gigas002 commented on 2024-05-29 15:08 (UTC)
PKGBUILD
tweaksIf you want to build with
clang
, add this part tocmake
flags:If you want to use bundled
fuzzylite
:If you want to use
innoextract
(system-wide installation won't work since vcmi has a temporary? fork ofinnoextract
for now):