1
1
12rbah2020-07-30 09:28:25
C++ / C#
12rbah, 2020-07-30 09:28:25

Why does it give an error when building a project from github?

I'm trying to build https://github.com/LibreOffice/libvisio , I'm building according to the guide https://wiki.documentfoundation.org/DLP/Libraries/... , but when I execute make, it gives an error, which can cause this be, I collect under ubuntu.

spoiler

CXX VSDXMLTokenMap.lo
VSDXMLTokenMap.cpp: In static member function ‘static int libvisio::VSDXMLTokenMap::getTokenId(const xmlChar*)’:
VSDXMLTokenMap.cpp:23:9: error: ‘xmltoken’ does not name a type; did you mean ‘xmlStrlen’?
const xmltoken *token = Perfect_Hash::in_word_set((const char *)name, xmlStrlen(name));
^~~~~~~~
xmlStrlen
VSDXMLTokenMap.cpp:24:7: error: ‘token’ was not declared in this scope
if (token)
^~~~~
VSDXMLTokenMap.cpp:24:7: note: suggested alternative: ‘strlen’
if (token)
^~~~~
strlen
VSDXMLTokenMap.cpp:21:57: warning: unused parameter ‘name’ [-Wunused-parameter]
int libvisio::VSDXMLTokenMap::getTokenId(const xmlChar *name)
^~~~
Makefile:629: recipe for target 'VSDXMLTokenMap.lo' failed
make[3]: *** [VSDXMLTokenMap.lo] Error 1
make[3]: Leaving directory '/home/sl/Downloads/libvisio/src/lib'
Makefile:725: recipe for target 'check' failed
make[2]: *** [check] Error 2
make[2]: Leaving directory '/home/sl/Downloads/libvisio/src/lib'
Makefile:396: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/home/sl/Downloads/libvisio/src'
Makefile:501: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
12rbah, 2020-07-30
@12rbah

The problem was that I did not install gperf, after installation everything compiled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question