Build loolwsd fails

asked 2016-09-10 10:07:25 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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 ...
(more)
edit retag flag offensive close merge delete

Comments

Think you should try on developer's mailing list

Kruno gravatar imageKruno ( 2016-09-10 11:18:46 +0200 )edit

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=<pocoinst>/include --with-poco-libs=<pocoinst>/lib

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

[@see https://github.com/LibreOffice/online...]

Tobias gravatar imageTobias ( 2017-09-12 12:56:29 +0200 )edit