Build loolwsd fails

Hi,

I’m building loolwsd from branch distro/collabora/collabora-online-1-9. I successfully build libreoffice 5.1.4. The config runs ok using this command:

/configure --enable-silent-rules --with-lokit-path=${MASTER}/include --with-lo-path=${MASTER}/instdir --enable-debug

The build fails for ChildSession, see build log.

Any suggestions or pointers? I have some reasonable C++ knowledge but it’s been a time and I didn’t manage to figure out what’s going on here… Thanks!

Best Chris

make  all-recursive
make[1]: Entering directory '/root/libreofficeonline-1.9/loolwsd'
Making all in .

make[2]: Entering directory '/root/libreofficeonline-1.9/loolwsd'
  CXX      Admin.o
  CXX      AdminModel.o
  CXX      Auth.o
  CXX      DocumentBroker.o
  CXX      LOOLWSD.o
  CXX      ClientSession.o
  CXX      FileServer.o
  CXX      PrisonerSession.o
  CXX      Storage.o
  CXX      TileCache.o
  CXX      ChildSession.o
In file included from ChildSession.hpp:20:0,
                 from ChildSession.cpp:10:
LibreOfficeKit.hpp: In member function ‘char* lok::Document::getPartHash(int)’:
LibreOfficeKit.hpp:138:31: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘getPartHas’
         return _pDoc->pClass->getPartHash(_pDoc, nPart);
                               ^
LibreOfficeKit.hpp: In member function ‘void lok::Document::setClientVisibleArea(int, int, int, int)’:
LibreOfficeKit.hpp:383:24: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘setClientVisibleArea’
         _pDoc->pClass->setClientVisibleArea(_pDoc, nX, nY, nWidth, nHeight);
                        ^
LibreOfficeKit.hpp: In member function ‘unsigned char* lok::Document::renderFont(const char*, int*, int*)’:
LibreOfficeKit.hpp:443:31: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘renderFont’
         return _pDoc->pClass->renderFont(_pDoc, pFontName, pFontWidth, pFontHeight);
                               ^
LibreOfficeKit.hpp: In member function ‘void lok::Document::paintPartTile(unsigned char*, int, int, int, int, int, int, int)’:
LibreOfficeKit.hpp:461:31: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘paintPartTile’
         return _pDoc->pClass->paintPartTile(_pDoc, pBuffer, nPart,
                               ^
LibreOfficeKit.hpp:464:68: error: return-statement with a value, in function returning 'void' [-fpermissive]
                                             nTileWidth, nTileHeight);
                                                                    ^
LibreOfficeKit.hpp: In member function ‘void lok::Office::freeError(char*)’:
LibreOfficeKit.hpp:536:27: error: ‘LibreOfficeKitClass {aka struct _LibreOfficeKitClass}’ has no member named ‘freeError’
         _pOffice->pClass->freeError(pFree);
                           ^
LibreOfficeKit.hpp: In member function ‘char* lok::Office::getVersionInfo()’:
LibreOfficeKit.hpp:604:34: error: ‘LibreOfficeKitClass {aka struct _LibreOfficeKitClass}’ has no member named ‘getVersionInfo’
         return _pOffice->pClass->getVersionInfo(_pOffice);
                                  ^
In file included from ChildSession.cpp:21:0:
LOKitHelper.hpp: In function ‘std::__cxx11::string LOKitHelper::kitCallbackTypeToString(int)’:
LOKitHelper.hpp:98:14: error: ‘LOK_CALLBACK_ERROR’ was not declared in this scope
         case LOK_CALLBACK_ERROR:
              ^
LOKitHelper.hpp:100:14: error: ‘LOK_CALLBACK_CONTEXT_MENU’ was not declared in this scope
         case LOK_CALLBACK_CONTEXT_MENU:
              ^
LOKitHelper.hpp:102:14: error: ‘LOK_CALLBACK_INVALIDATE_VIEW_CURSOR’ was not declared in this scope
         case LOK_CALLBACK_INVALIDATE_VIEW_CURSOR:
              ^
LOKitHelper.hpp:104:14: error: ‘LOK_CALLBACK_TEXT_VIEW_SELECTION’ was not declared in this scope
         case LOK_CALLBACK_TEXT_VIEW_SELECTION:
              ^
LOKitHelper.hpp:106:14: error: ‘LOK_CALLBACK_CELL_VIEW_CURSOR’ was not declared in this scope
         case LOK_CALLBACK_CELL_VIEW_CURSOR:
              ^
LOKitHelper.hpp:108:14: error: ‘LOK_CALLBACK_GRAPHIC_VIEW_SELECTION’ was not declared in this scope
         case LOK_CALLBACK_GRAPHIC_VIEW_SELECTION:
              ^
LOKitHelper.hpp:110:14: error: ‘LOK_CALLBACK_VIEW_CURSOR_VISIBLE’ was not declared in this scope
         case LOK_CALLBACK_VIEW_CURSOR_VISIBLE:
              ^
LOKitHelper.hpp:112:14: error: ‘LOK_CALLBACK_VIEW_LOCK’ was not declared in this scope
         case LOK_CALLBACK_VIEW_LOCK:
              ^
LOKitHelper.hpp: In function ‘std::__cxx11::string LOKitHelper::documentStatus(LibreOfficeKitDocument*)’:
LOKitHelper.hpp:153:55: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘getPartHash’
                     ptrValue = loKitDocument->pClass->getPartHash(loKitDocument, i);
                                                       ^
ChildSession.cpp: In member function ‘void ChildSession::loKitCallback(int, const string&)’:
ChildSession.cpp:930:18: error: ‘LOK_CALLBACK_INVALIDATE_VIEW_CURSOR’ was not declared in this scope
         nType == LOK_CALLBACK_INVALIDATE_VIEW_CURSOR ||
                  ^
ChildSession.cpp:931:18: error: ‘LOK_CALLBACK_TEXT_VIEW_SELECTION’ was not declared in this scope
         nType == LOK_CALLBACK_TEXT_VIEW_SELECTION ||
                  ^
ChildSession.cpp:932:18: error: ‘LOK_CALLBACK_CELL_VIEW_CURSOR’ was not declared in this scope
         nType == LOK_CALLBACK_CELL_VIEW_CURSOR ||
                  ^
ChildSession.cpp:933:18: error: ‘LOK_CALLBACK_GRAPHIC_VIEW_SELECTION’ was not declared in this scope
         nType == LOK_CALLBACK_GRAPHIC_VIEW_SELECTION ||
                  ^
ChildSession.cpp:934:18: error: ‘LOK_CALLBACK_VIEW_CURSOR_VISIBLE’ was not declared in this scope
         nType == LOK_CALLBACK_VIEW_CURSOR_VISIBLE ||
                  ^
ChildSession.cpp:935:18: error: ‘LOK_CALLBACK_VIEW_LOCK’ was not declared in this scope
         nType == LOK_CALLBACK_VIEW_LOCK)
                  ^
ChildSession.cpp:1052:10: error: ‘LOK_CALLBACK_ERROR’ was not declared in this scope
     case LOK_CALLBACK_ERROR:
          ^
ChildSession.cpp:1063:10: error: ‘LOK_CALLBACK_CONTEXT_MENU’ was not declared in this scope
     case LOK_CALLBACK_CONTEXT_MENU:
          ^
ChildSession.cpp:1075:10: error: ‘LOK_CALLBACK_INVALIDATE_VIEW_CURSOR’ was not declared in this scope
     case LOK_CALLBACK_INVALIDATE_VIEW_CURSOR:
          ^
ChildSession.cpp:1078:10: error: ‘LOK_CALLBACK_TEXT_VIEW_SELECTION’ was not declared in this scope
     case LOK_CALLBACK_TEXT_VIEW_SELECTION:
          ^
ChildSession.cpp:1081:10: error: ‘LOK_CALLBACK_CELL_VIEW_CURSOR’ was not declared in this scope
     case LOK_CALLBACK_CELL_VIEW_CURSOR:
          ^
ChildSession.cpp:1084:10: error: ‘LOK_CALLBACK_GRAPHIC_VIEW_SELECTION’ was not declared in this scope
     case LOK_CALLBACK_GRAPHIC_VIEW_SELECTION:
          ^
ChildSession.cpp:1087:10: error: ‘LOK_CALLBACK_VIEW_CURSOR_VISIBLE’ was not declared in this scope
     case LOK_CALLBACK_VIEW_CURSOR_VISIBLE:
          ^
ChildSession.cpp:1090:10: error: ‘LOK_CALLBACK_VIEW_LOCK’ was not declared in this scope
     case LOK_CALLBACK_VIEW_LOCK:
          ^
ChildSession.cpp:1093:10: error: ‘LOK_CALLBACK_REDLINE_TABLE_SIZE_CHANGED’ was not declared in this scope
     case LOK_CALLBACK_REDLINE_TABLE_SIZE_CHANGED:
          ^
Makefile:842: recipe for target 'ChildSession.o' failed
make[2]: *** [ChildSession.o] Error 1
make[2]: Leaving directory '/root/libreofficeonline-1.9/loolwsd'
Makefile:923: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/libreofficeonline-1.9/loolwsd'
Makefile:596: recipe for target 'all' failed
make: *** [all] Error 2

Think you should try on developer’s mailing list

faced the exact same problem i checked the paths again and reconfigured it with

./configure --enable-silent-rules --with-lokit-path=${MASTER}/include
–with-lo-path=${MASTER}/instdir --enable-debug
–with-poco-includes=/include
–with-poco-libs=/lib

where ${MASTER} is the location of the libreoffice source tree and
means the poco installation location

[@see online/wsd at master · LibreOffice/online · GitHub]