Make Error when compling

Could you please share the path you followed for building?

Your clone of online or LibreOffice core might be out of date or out of sync.

Is github repository will never update?

I only cloned the online.git, not the core.git.

I see. It explains a lot. :slight_smile:

Please follow the instructions here: Build Collabora Online | Collabora Online - Community Page

OK, I’ll try it! Thank you!

1 Like

It still notifies me of errors.

root@mail:~/collabora-online# make check
Making check in .
make[1]: 进入目录“/root/collabora-online”
CXX kit/ChildSession.o
In file included from kit/ChildSession.hpp:19:0,
from kit/ChildSession.cpp:10:
kit/Watermark.hpp: In member function ‘const std::vector* Watermark::getPixmap(int, int)’:
kit/Watermark.hpp:120:107: error: no matching function for call to ‘lok::Document::renderFont(const char*, const char*, int*, int*, int)’
unsigned char* textPixels = loKitDoc->renderFont(font.c_str(), text.c_str(), &width, &height, 0);
^
In file included from kit/ChildSession.hpp:14:0,
from kit/ChildSession.cpp:10:
/usr/include/LibreOfficeKit/LibreOfficeKit.hxx:411:20: note: candidate: unsigned char* lok::Document::renderFont(const char*, const char*, int*, int*)
unsigned char* renderFont(const char *pFontName,
^~~~~~~~~~
/usr/include/LibreOfficeKit/LibreOfficeKit.hxx:411:20: note: candidate expects 4 arguments, 5 provided
In file included from kit/ChildSession.cpp:41:0:
kit/KitHelper.hpp: In function ‘std::__cxx11::string LOKitHelper::documentStatus(LibreOfficeKitDocument*)’:
kit/KitHelper.hpp:70:51: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘getPartInfo’; did you mean ‘getPart ’?
ptrValue = loKitDocument->pClass->getPartInfo(loKitDocument, i);
^~~~~~~~~~~
getParts
In file included from ./common/Session.hpp:21:0,
from kit/ChildSession.hpp:18,
from kit/ChildSession.cpp:10:
kit/ChildSession.cpp: In member function ‘virtual bool ChildSession::handleInput(const char*, int)’:
kit/ChildSession.cpp:163:60: error: ‘lokCallbackTypeToString’ was not declared in this scope
<< lokCallbackTypeToString(event.getType())
^
./common/Log.hpp:288:31: note: in definition of macro ‘LOG_BODY
’
oss
<< std::boolalpha << X;
^
kit/ChildSession.cpp:162:17: note: in expansion of macro ‘LOG_TRC’
LOG_TRC("Replaying missed view event: " << viewPair.first << ’ ’
^~~~~~~
kit/ChildSession.cpp:172:51: error: ‘lokCallbackTypeToString’ was not declared in this scope
LOG_TRC("Replaying missed event: " << lokCallbackTypeToString(event.getType()) << ": "
^
./common/Log.hpp:288:31: note: in definition of macro ‘LOG_BODY
’
oss
<< std::boolalpha << X;
^
kit/ChildSession.cpp:172:13: note: in expansion of macro ‘LOG_TRC’
LOG_TRC("Replaying missed event: " << lokCallbackTypeToString(event.getType()) << ": "
^~~~~~~
kit/ChildSession.cpp:186:21: error: ‘lokCallbackTypeToString’ was not declared in this scope
lokCallbackTypeToString(event.getType()) << ": " << event.getPayload());
^
./common/Log.hpp:288:31: note: in definition of macro ‘LOG_BODY_’
oss_ << std::boolalpha << X;
^
kit/ChildSession.cpp:185:13: note: in expansion of macro ‘LOG_TRC’
LOG_TRC("Replaying missed event (part of sequence): " <<
^~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::outlineState(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:913:25: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘setOutlineState’
getLOKitDocument()->setOutlineState(column, level, index, hidden);
^~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::getTextSelection(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1035:51: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘getSelectionType’; did you mean ‘resetSelection’?
const int selectionType = getLOKitDocument()->getSelectionType();
^~~~~~~~~~~~~~~~
resetSelection
kit/ChildSession.cpp:1036:26: error: ‘LOK_SELTYPE_LARGE_TEXT’ was not declared in this scope
if (selectionType == LOK_SELTYPE_LARGE_TEXT || selectionType == LOK_SELTYPE_COMPLEX ||
^~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1036:26: note: suggested alternative: ‘LOK_DOCTYPE_TEXT’
if (selectionType == LOK_SELTYPE_LARGE_TEXT || selectionType == LOK_SELTYPE_COMPLEX ||
^~~~~~~~~~~~~~~~~~~~~~
LOK_DOCTYPE_TEXT
kit/ChildSession.cpp:1036:69: error: ‘LOK_SELTYPE_COMPLEX’ was not declared in this scope
if (selectionType == LOK_SELTYPE_LARGE_TEXT || selectionType == LOK_SELTYPE_COMPLEX ||
^~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1036:69: note: suggested alternative: ‘LOK_DOCTYPE_OTHER’
if (selectionType == LOK_SELTYPE_LARGE_TEXT || selectionType == LOK_SELTYPE_COMPLEX ||
^~~~~~~~~~~~~~~~~~~
LOK_DOCTYPE_OTHER
kit/ChildSession.cpp: In member function ‘bool ChildSession::getClipboard(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1068:35: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘getClipboard’
success = getLOKitDocument()->getClipboard(pMimeTypes, &nOutCount, &pOutMimeTypes,
^~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::setClipboard(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1136:34: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘setClipboard’
if (!getLOKitDocument()->setClipboard(nInCount, pInMimeTypes, pInSizes, pInStreams))
^~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::extTextInputEvent(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1276:40: error: ‘LOK_EXT_TEXTINPUT’ was not declared in this scope
{{“input”, LOK_EXT_TEXTINPUT}, {“end”, LOK_EXT_TEXTINPUT_END}},
^~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1276:68: error: ‘LOK_EXT_TEXTINPUT_END’ was not declared in this scope
{{“input”, LOK_EXT_TEXTINPUT}, {“end”, LOK_EXT_TEXTINPUT_END}},
^~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1276:68: note: suggested alternative: ‘LOK_SETTEXTSELECTION_END’
{{“input”, LOK_EXT_TEXTINPUT}, {“end”, LOK_EXT_TEXTINPUT_END}},
^~~~~~~~~~~~~~~~~~~~~
LOK_SETTEXTSELECTION_END
kit/ChildSession.cpp:1277:33: error: no matching function for call to ‘getTokenKeyword(std::__cxx11::string, const char [5], , int&)’
type))
^
In file included from ./common/Session.hpp:20:0,
from kit/ChildSession.hpp:18,
from kit/ChildSession.cpp:10:
./common/Protocol.hpp:88:10: note: candidate: bool LOOLProtocol::getTokenKeyword(const string&, const string&, const std::map<std::__cxx11::basic_string, int>&, int&)
bool getTokenKeyword(const std::string& token, const std::string& name, const std::map<std::string, int>& map, int& value);
^~~~~~~~~~~~~~~
./common/Protocol.hpp:88:10: note: no known conversion for argument 3 from ‘’ to ‘const std::map<std::__cxx11::basic_string, int>&’
In file included from ./common/Session.hpp:20:0,
from kit/ChildSession.hpp:18,
from kit/ChildSession.cpp:10:
./common/Protocol.hpp:90:10: note: candidate: bool LOOLProtocol::getTokenKeyword(const StringVector&, const string&, const std::map<std::__cxx11::basic_string, int>&, int&)
bool getTokenKeyword(const StringVector& tokens, const std::string& name, const std::map<std::string, int>& map, int& value);
^~~~~~~~~~~~~~~
./common/Protocol.hpp:90:10: note: no known conversion for argument 1 from ‘std::__cxx11::string {aka std::__cxx11::basic_string}’ to ‘const StringVector&’
kit/ChildSession.cpp:1294:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindowExtTextInputEvent’
getLOKitDocument()->postWindowExtTextInputEvent(id, type, decodedText.c_str());
^~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1297:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindowExtTextInputEvent’
getLOKitDocument()->postWindowExtTextInputEvent(id, LOK_EXT_TEXTINPUT, decodedText.c_str());
^~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1297:61: error: ‘LOK_EXT_TEXTINPUT’ was not declared in this scope
getLOKitDocument()->postWindowExtTextInputEvent(id, LOK_EXT_TEXTINPUT, decodedText.c_str());
^~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1298:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindowExtTextInputEvent’
getLOKitDocument()->postWindowExtTextInputEvent(id, LOK_EXT_TEXTINPUT_END, decodedText.c_str());
^~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1298:61: error: ‘LOK_EXT_TEXTINPUT_END’ was not declared in this scope
getLOKitDocument()->postWindowExtTextInputEvent(id, LOK_EXT_TEXTINPUT_END, decodedText.c_str());
^~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1298:61: note: suggested alternative: ‘LOK_SETTEXTSELECTION_END’
getLOKitDocument()->postWindowExtTextInputEvent(id, LOK_EXT_TEXTINPUT_END, decodedText.c_str());
^~~~~~~~~~~~~~~~~~~~~
LOK_SETTEXTSELECTION_END
kit/ChildSession.cpp: In member function ‘bool ChildSession::keyEvent(const char*, int, const StringVector&, LokEventTargetEnum)’:
kit/ChildSession.cpp:1356:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindowKeyEvent’; did you mean ‘postKeyEvent’?
getLOKitDocument()->postWindowKeyEvent(winId, type, charcode, keycode);
^~~~~~~~~~~~~~~~~~
postKeyEvent
kit/ChildSession.cpp: In member function ‘bool ChildSession::gestureEvent(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1393:25: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindowGestureEvent’; did you mean ‘postMouseEvent’?
getLOKitDocument()->postWindowGestureEvent(windowID, type.c_str(), x, y, offset);
^~~~~~~~~~~~~~~~~~~~~~
postMouseEvent
kit/ChildSession.cpp: In member function ‘bool ChildSession::mouseEvent(const char*, int, const StringVector&, LokEventTargetEnum)’:
kit/ChildSession.cpp:1461:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindowMouseEvent’; did you mean ‘postMouseEvent’?
getLOKitDocument()->postWindowMouseEvent(winId, type, x, y, count, buttons, modifier);
^~~~~~~~~~~~~~~~~~~~
postMouseEvent
kit/ChildSession.cpp: In member function ‘bool ChildSession::dialogEvent(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1482:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘sendDialogEvent’
getLOKitDocument()->sendDialogEvent(nLOKWindowId,
^~~~~~~~~~~~~~~
kit/ChildSession.cpp:1487:21: error: ‘using element_type = class lok::Office {aka class lok::Office}’ has no member named ‘sendDialogEvent’
getLOKit()->sendDialogEvent(nLOKWindowId, tokens.cat(’ ', 2).c_str());
^~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::formFieldEvent(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1505:25: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘sendFormFieldEvent’
getLOKitDocument()->sendFormFieldEvent(sArguments.c_str());
^~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::completeFunction(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1524:25: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘completeFunction’
getLOKitDocument()->completeFunction(functionName.c_str());
^~~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::selectText(const char*, int, const StringVector&, LokEventTargetEnum)’:
kit/ChildSession.cpp:1610:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘setWindowTextSelection’; did you mean ‘setTextSelection’?
getLOKitDocument()->setWindowTextSelection(winId, swap == “true”, x, y);
^~~~~~~~~~~~~~~~~~~~~~
setTextSelection
kit/ChildSession.cpp: In member function ‘bool ChildSession::renderWindow(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1656:25: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘paintWindow’; did you mean ‘paintTile’?
getLOKitDocument()->paintWindow(winId, pixmap.data(), startX, startY, width, height, dpiScale,
^~~~~~~~~~~
paintTile
kit/ChildSession.cpp: In member function ‘bool ChildSession::resizeWindow(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1772:33: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘resizeWindow’
getLOKitDocument()->resizeWindow(winId, sizeParts[0], sizeParts[1]);
^~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::sendWindowCommand(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1788:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindow’
getLOKitDocument()->postWindow(winId, LOK_WINDOW_CLOSE, nullptr);
^~~~~~~~~~
kit/ChildSession.cpp:1788:47: error: ‘LOK_WINDOW_CLOSE’ was not declared in this scope
getLOKitDocument()->postWindow(winId, LOK_WINDOW_CLOSE, nullptr);
^~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1788:47: note: suggested alternative: ‘TCP_WINDOW_CLAMP’
getLOKitDocument()->postWindow(winId, LOK_WINDOW_CLOSE, nullptr);
^~~~~~~~~~~~~~~~
TCP_WINDOW_CLAMP
kit/ChildSession.cpp:1790:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘postWindow’
getLOKitDocument()->postWindow(winId, LOK_WINDOW_PASTE, tokens[3].c_str());
^~~~~~~~~~
kit/ChildSession.cpp:1790:47: error: ‘LOK_WINDOW_PASTE’ was not declared in this scope
getLOKitDocument()->postWindow(winId, LOK_WINDOW_PASTE, tokens[3].c_str());
^~~~~~~~~~~~~~~~
kit/ChildSession.cpp:1790:47: note: suggested alternative: ‘PNG_INFO_PLTE’
getLOKitDocument()->postWindow(winId, LOK_WINDOW_PASTE, tokens[3].c_str());
^~~~~~~~~~~~~~~~
PNG_INFO_PLTE
kit/ChildSession.cpp: In member function ‘bool ChildSession::signDocumentContent(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1862:39: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘addCertificate’
bResult = getLOKitDocument()->addCertificate(
^~~~~~~~~~~~~~
kit/ChildSession.cpp:1876:35: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘insertCertificate’
bResult = getLOKitDocument()->insertCertificate(
^~~~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::exportSignAndUploadDocument(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:1943:39: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘addCertificate’
bResult = getLOKitDocument()->addCertificate(
^~~~~~~~~~~~~~
kit/ChildSession.cpp:1967:44: error: ‘using element_type = class lok::Office {aka class lok::Office}’ has no member named ‘signDocument’
bResult = _docManager->getLOKit()->signDocument(aTempDocumentURL.c_str(),
^~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::askSignatureStatus(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:2073:43: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘addCertificate’
bResult = getLOKitDocument()->addCertificate(
^~~~~~~~~~~~~~
kit/ChildSession.cpp:2082:39: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘getSignatureState’
int nStatus = getLOKitDocument()->getSignatureState();
^~~~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::selectClientPart(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:2269:33: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘selectPart’; did you mean ‘setPar ’?
getLOKitDocument()->selectPart(nPart, nSelect);
^~~~~~~~~~
setPart
kit/ChildSession.cpp: In member function ‘bool ChildSession::moveSelectedClientParts(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:2299:29: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘moveSelectedParts’
getLOKitDocument()->moveSelectedParts(nPosition, false); // Move, don’t duplicate.
^~~~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘bool ChildSession::renderShapeSelection(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:2344:57: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘renderShapeSelection’; did you mean ‘resetSelection’?
const std::size_t nOutputSize = getLOKitDocument()->renderShapeSelection(&pOutput);
^~~~~~~~~~~~~~~~~~~~
resetSelection
kit/ChildSession.cpp: In member function ‘bool ChildSession::removeTextContext(const char*, int, const StringVector&)’:
kit/ChildSession.cpp:2380:25: error: ‘using element_type = class lok::Document {aka class lok::Document}’ has no member named ‘removeTextContext’
getLOKitDocument()->removeTextContext(id, before, after);
^~~~~~~~~~~~~~~~~
kit/ChildSession.cpp: In member function ‘void ChildSession::rememberEventsForInactiveUser(int, const string&)’:
kit/ChildSession.cpp:2404:22: error: ‘LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY’ was not declared in this scope
type == LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2404:22: note: suggested alternative: ‘LOK_CALLBACK_INVALIDATE_HEADER’
type == LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_INVALIDATE_HEADER
kit/ChildSession.cpp:2406:22: error: ‘LOK_CALLBACK_REFERENCE_MARKS’ was not declared in this scope
type == LOK_CALLBACK_REFERENCE_MARKS)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2406:22: note: suggested alternative: ‘LOK_CALLBACK_RULER_UPDATE’
type == LOK_CALLBACK_REFERENCE_MARKS)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_RULER_UPDATE
kit/ChildSession.cpp: In member function ‘void ChildSession::loKitCallback(int, const string&)’:
kit/ChildSession.cpp:2469:34: error: ‘lokCallbackTypeToString’ was not declared in this scope
const char* const typeName = lokCallbackTypeToString(type);
^~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2680:10: error: ‘LOK_CALLBACK_WINDOW’ was not declared in this scope
case LOK_CALLBACK_WINDOW:
^~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2680:10: note: suggested alternative: ‘LOK_CALLBACK_ERROR’
case LOK_CALLBACK_WINDOW:
^~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_ERROR
kit/ChildSession.cpp:2683:10: error: ‘LOK_CALLBACK_VALIDITY_LIST_BUTTON’ was not declared in this scope
case LOK_CALLBACK_VALIDITY_LIST_BUTTON:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2683:10: note: suggested alternative: ‘LOK_CALLBACK_INVALIDATE_VIEW_CURSOR’
case LOK_CALLBACK_VALIDITY_LIST_BUTTON:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_INVALIDATE_VIEW_CURSOR
kit/ChildSession.cpp:2686:10: error: ‘LOK_CALLBACK_VALIDITY_INPUT_HELP’ was not declared in this scope
case LOK_CALLBACK_VALIDITY_INPUT_HELP:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2686:10: note: suggested alternative: ‘LOK_CALLBACK_INVALIDATE_TILES’
case LOK_CALLBACK_VALIDITY_INPUT_HELP:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_INVALIDATE_TILES
kit/ChildSession.cpp:2689:10: error: ‘LOK_CALLBACK_CLIPBOARD_CHANGED’ was not declared in this scope
case LOK_CALLBACK_CLIPBOARD_CHANGED:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2689:10: note: suggested alternative: ‘LOK_CALLBACK_STATE_CHANGED’
case LOK_CALLBACK_CLIPBOARD_CHANGED:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_STATE_CHANGED
kit/ChildSession.cpp:2702:10: error: ‘LOK_CALLBACK_CONTEXT_CHANGED’ was not declared in this scope
case LOK_CALLBACK_CONTEXT_CHANGED:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2702:10: note: suggested alternative: ‘LOK_CALLBACK_STATE_CHANGED’
case LOK_CALLBACK_CONTEXT_CHANGED:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_STATE_CHANGED
kit/ChildSession.cpp:2705:10: error: ‘LOK_CALLBACK_SIGNATURE_STATUS’ was not declared in this scope
case LOK_CALLBACK_SIGNATURE_STATUS:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2705:10: note: suggested alternative: ‘LOK_CALLBACK_STATE_CHANGED’
case LOK_CALLBACK_SIGNATURE_STATUS:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_STATE_CHANGED
kit/ChildSession.cpp:2709:10: error: ‘LOK_CALLBACK_PROFILE_FRAME’ was not declared in this scope
case LOK_CALLBACK_PROFILE_FRAME:
^~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2709:10: note: suggested alternative: ‘LOK_CALLBACK_RULER_UPDATE’
case LOK_CALLBACK_PROFILE_FRAME:
^~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_RULER_UPDATE
kit/ChildSession.cpp:2714:10: error: ‘LOK_CALLBACK_CELL_SELECTION_AREA’ was not declared in this scope
case LOK_CALLBACK_CELL_SELECTION_AREA:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2714:10: note: suggested alternative: ‘LOK_CALLBACK_TEXT_SELECTION_END’
case LOK_CALLBACK_CELL_SELECTION_AREA:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_TEXT_SELECTION_END
kit/ChildSession.cpp:2717:10: error: ‘LOK_CALLBACK_CELL_AUTO_FILL_AREA’ was not declared in this scope
case LOK_CALLBACK_CELL_AUTO_FILL_AREA:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2717:10: note: suggested alternative: ‘LOK_CALLBACK_CELL_FORMULA’
case LOK_CALLBACK_CELL_AUTO_FILL_AREA:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_CELL_FORMULA
kit/ChildSession.cpp:2720:10: error: ‘LOK_CALLBACK_TABLE_SELECTED’ was not declared in this scope
case LOK_CALLBACK_TABLE_SELECTED:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2720:10: note: suggested alternative: ‘LOK_CALLBACK_TEXT_SELECTION’
case LOK_CALLBACK_TABLE_SELECTED:
^~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_TEXT_SELECTION
kit/ChildSession.cpp:2723:10: error: ‘LOK_CALLBACK_REFERENCE_MARKS’ was not declared in this scope
case LOK_CALLBACK_REFERENCE_MARKS:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2723:10: note: suggested alternative: ‘LOK_CALLBACK_RULER_UPDATE’
case LOK_CALLBACK_REFERENCE_MARKS:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_RULER_UPDATE
kit/ChildSession.cpp:2726:10: error: ‘LOK_CALLBACK_JSDIALOG’ was not declared in this scope
case LOK_CALLBACK_JSDIALOG:
^~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2726:10: note: suggested alternative: ‘LOK_CALLBACK_VIEW_LOCK’
case LOK_CALLBACK_JSDIALOG:
^~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_VIEW_LOCK
kit/ChildSession.cpp:2729:10: error: ‘LOK_CALLBACK_CALC_FUNCTION_LIST’ was not declared in this scope
case LOK_CALLBACK_CALC_FUNCTION_LIST:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2729:10: note: suggested alternative: ‘LOK_CALLBACK_TEXT_SELECTION_END’
case LOK_CALLBACK_CALC_FUNCTION_LIST:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_TEXT_SELECTION_END
kit/ChildSession.cpp:2732:10: error: ‘LOK_CALLBACK_TAB_STOP_LIST’ was not declared in this scope
case LOK_CALLBACK_TAB_STOP_LIST:
^~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2732:10: note: suggested alternative: ‘LOK_CALLBACK_SET_PART’
case LOK_CALLBACK_TAB_STOP_LIST:
^~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_SET_PART
kit/ChildSession.cpp:2735:10: error: ‘LOK_CALLBACK_FORM_FIELD_BUTTON’ was not declared in this scope
case LOK_CALLBACK_FORM_FIELD_BUTTON:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2735:10: note: suggested alternative: ‘LOK_CALLBACK_CELL_VIEW_CURSOR’
case LOK_CALLBACK_FORM_FIELD_BUTTON:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_CELL_VIEW_CURSOR
kit/ChildSession.cpp:2738:10: error: ‘LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY’ was not declared in this scope
case LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kit/ChildSession.cpp:2738:10: note: suggested alternative: ‘LOK_CALLBACK_INVALIDATE_HEADER’
case LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOK_CALLBACK_INVALIDATE_HEADER
Makefile:1888: recipe for target ‘kit/ChildSession.o’ failed
make[1]: *** [kit/ChildSession.o] Error 1
make[1]: 离开目录“/root/collabora-online”
Makefile:3741: recipe for target ‘check-recursive’ failed
make: *** [check-recursive] Error 1

Which set of instructions have you followed (which OS/diistro)? Could you please share the details of what you did? (Commands, downloads, installations etc.)

My OS is Ubuntu 18.04 with no graphical desktop. Only ssh connection
./autogen.sh

All the compiling dependency was installed as the newest version. Then next
./configure --with-lo-path=/usr/lib/libreoffice/program

From what I see, I understand that you are referencing a local installation of LibreOffice in your configure command, which is most probably the source of issues you are having. You need to use the correct/matching version of Collabora Online together with Collabora Office (not LibreOffice). (Collabora Office is LibreOffice-based but not exactly the same.)

Try to follow the instructions precisely, and you should be fine. :wink:

Did you mean the branch “Online” under CollaboraOnline ?
image

I’ve solved this by following the Development guide docs.

1 Like