<div dir="ltr"><div><div>Hi<br><br>>> LOKit path /root/libreoffice-5.2.1.2/<wbr>include<br><br>Please, compile LO with master branch, and try again.<br><br></div>Regards<br></div>Henry<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-23 18:24 GMT-04:00 Christoph Schäfer <span dir="ltr"><<a href="mailto:schaefer@vcomtec.com" target="_blank">schaefer@vcomtec.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
trying to get a libreofficeonline dev environment up for the first time. Environment:<br>
- Ubuntu 16.04 LTS<br>
- poco-1.7.5<br>
- libreofficeonline 1.9.2<br>
<br>
Proceeded like described here: <a href="https://github.com/LibreOffice/online/tree/master/loolwsd" rel="noreferrer" target="_blank">https://github.com/<wbr>LibreOffice/online/tree/<wbr>master/loolwsd</a><br>
<br>
After starting the build of loolwsd I get the error below. Seems like some libs/ headers don’t match but I can’t figure out. Thanks for any pointers.<br>
<br>
Best<br>
Chris<br>
<br>
—— CONFIGURE ——<br>
./configure --enable-silent-rules --with-lokit-path=${MASTER}/<wbr>include --with-lo-path=${MASTER}/<wbr>instdir --enable-debug<br>
checking build system type... x86_64-pc-linux-gnu<br>
checking host system type... x86_64-pc-linux-gnu<br>
checking how to print strings... printf<br>
checking for gcc... gcc<br>
checking whether the C compiler works... yes<br>
checking for C compiler default output file name... a.out<br>
checking for suffix of executables...<br>
checking whether we are cross compiling... no<br>
checking for suffix of object files... o<br>
checking whether we are using the GNU C compiler... yes<br>
checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ISO C89... none needed<br>
checking whether gcc understands -c and -o together... yes<br>
checking for a sed that does not truncate output... /bin/sed<br>
checking for grep that handles long lines and -e... /bin/grep<br>
checking for egrep... /bin/grep -E<br>
checking for fgrep... /bin/grep -F<br>
checking for ld used by gcc... /usr/bin/ld<br>
checking if the linker (/usr/bin/ld) is GNU ld... yes<br>
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B<br>
checking the name lister (/usr/bin/nm -B) interface... BSD nm<br>
checking whether ln -s works... yes<br>
checking the maximum length of command line arguments... 1966080<br>
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop<br>
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop<br>
checking for /usr/bin/ld option to reload object files... -r<br>
checking for objdump... objdump<br>
checking how to recognize dependent libraries... pass_all<br>
checking for dlltool... no<br>
checking how to associate runtime and link libraries... printf %s\n<br>
checking for ar... ar<br>
checking for archiver @FILE support... @<br>
checking for strip... strip<br>
checking for ranlib... ranlib<br>
checking for gawk... gawk<br>
checking command to parse /usr/bin/nm -B output from gcc object... ok<br>
checking for sysroot... no<br>
checking for a working dd... /bin/dd<br>
checking how to truncate binary pipes... /bin/dd bs=4096 count=1<br>
checking for mt... mt<br>
checking if mt is a manifest tool... no<br>
checking how to run the C preprocessor... gcc -E<br>
checking for ANSI C header files... yes<br>
checking for sys/types.h... yes<br>
checking for sys/stat.h... yes<br>
checking for stdlib.h... yes<br>
checking for string.h... yes<br>
checking for memory.h... yes<br>
checking for strings.h... yes<br>
checking for inttypes.h... yes<br>
checking for stdint.h... yes<br>
checking for unistd.h... yes<br>
checking for dlfcn.h... yes<br>
checking for objdir... .libs<br>
checking if gcc supports -fno-rtti -fno-exceptions... no<br>
checking for gcc option to produce PIC... -fPIC -DPIC<br>
checking if gcc PIC flag -fPIC -DPIC works... yes<br>
checking if gcc static flag -static works... yes<br>
checking if gcc supports -c -o file.o... yes<br>
checking if gcc supports -c -o file.o... (cached) yes<br>
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes<br>
checking whether -lc should be explicitly linked in... no<br>
checking dynamic linker characteristics... GNU/Linux ld.so<br>
checking how to hardcode library paths into programs... immediate<br>
checking for shl_load... no<br>
checking for shl_load in -ldld... no<br>
checking for dlopen... no<br>
checking for dlopen in -ldl... yes<br>
checking whether a program can dlopen itself... yes<br>
checking whether a statically linked program can dlopen itself... no<br>
checking whether stripping libraries is possible... yes<br>
checking if libtool supports shared libraries... yes<br>
checking whether to build shared libraries... yes<br>
checking whether to build static libraries... no<br>
checking for a BSD-compatible install... /usr/bin/install -c<br>
checking whether build environment is sane... yes<br>
checking for a thread-safe mkdir -p... /bin/mkdir -p<br>
checking whether make sets $(MAKE)... yes<br>
checking for style of include used by make... GNU<br>
checking whether make supports nested variables... yes<br>
checking dependency style of gcc... gcc3<br>
checking for g++... g++<br>
checking whether we are using the GNU C++ compiler... yes<br>
checking whether g++ accepts -g... yes<br>
checking how to run the C++ preprocessor... g++ -E<br>
checking for ld used by g++... /usr/bin/ld -m elf_x86_64<br>
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes<br>
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes<br>
checking for g++ option to produce PIC... -fPIC -DPIC<br>
checking if g++ PIC flag -fPIC -DPIC works... yes<br>
checking if g++ static flag -static works... yes<br>
checking if g++ supports -c -o file.o... yes<br>
checking if g++ supports -c -o file.o... (cached) yes<br>
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes<br>
checking dynamic linker characteristics... (cached) GNU/Linux ld.so<br>
checking how to hardcode library paths into programs... immediate<br>
checking dependency style of g++... gcc3<br>
checking for gcc... (cached) gcc<br>
checking whether we are using the GNU C compiler... (cached) yes<br>
checking whether gcc accepts -g... (cached) yes<br>
checking for gcc option to accept ISO C89... (cached) none needed<br>
checking whether gcc understands -c and -o together... (cached) yes<br>
checking for setcap... /sbin/setcap<br>
checking whether to run tests against a LibreOffice... yes<br>
checking for library containing dlopen... -ldl<br>
checking for library containing png_create_write_struct... -lpng<br>
checking for library containing cap_get_proc... -lcap<br>
checking for pkg-config... /usr/bin/pkg-config<br>
checking pkg-config is at least version 0.9.0... yes<br>
checking for CPPUNIT... yes<br>
checking LibreOfficeKit/LibreOfficeKit.<wbr>h usability... yes<br>
checking LibreOfficeKit/LibreOfficeKit.<wbr>h presence... yes<br>
checking for LibreOfficeKit/LibreOfficeKit.<wbr>h... yes<br>
checking Poco/Net/WebSocket.h usability... yes<br>
checking Poco/Net/WebSocket.h presence... yes<br>
checking for Poco/Net/WebSocket.h... yes<br>
checking POCO version... OK<br>
checking If we need to link with -lpcre... Yes<br>
checking that generated files are newer than configure... done<br>
configure: creating ./config.status<br>
config.status: creating Makefile<br>
config.status: creating test/Makefile<br>
config.status: creating loolwsd.spec<br>
config.status: creating loolwsd.xml<br>
config.status: creating maketarballfordeb.sh<br>
config.status: creating test/run_unit.sh<br>
config.status: creating config.h<br>
config.status: executing libtool commands<br>
config.status: executing depfiles commands<br>
<br>
Configuration:<br>
LOKit path /root/libreoffice-5.2.1.2/<wbr>include<br>
LO integration tests test against /root/libreoffice-5.2.1.2/<wbr>instdir<br>
SSL support ssl enabled<br>
Debug & low security low security debugging mode<br>
<br>
$ make # to compile<br>
$ make run # to start loolwsd<br>
<br>
—— MAKE ——<br>
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /root/libreofficeonline/<wbr>loolwsd/missing autoheader)<br>
rm -f stamp-h1<br>
touch <a href="http://config.h.in" rel="noreferrer" target="_blank">config.h.in</a><br>
cd . && /bin/bash ./config.status config.h<br>
config.status: creating config.h<br>
config.status: config.h is unchanged<br>
make all-recursive<br>
make[1]: Entering directory '/root/libreofficeonline/<wbr>loolwsd'<br>
Making all in .<br>
make[2]: Entering directory '/root/libreofficeonline/<wbr>loolwsd'<br>
CXX Admin.o<br>
CXX AdminModel.o<br>
CXX Auth.o<br>
CXX DocumentBroker.o<br>
CXX LOOLWSD.o<br>
CXX ClientSession.o<br>
CXX FileServer.o<br>
CXX PrisonerSession.o<br>
CXX Storage.o<br>
CXX TileCache.o<br>
CXX ChildSession.o<br>
In file included from ChildSession.hpp:20:0,<br>
from ChildSession.cpp:10:<br>
LibreOfficeKit.hpp: In member function ‘int lok::Document::getViewsCount()<wbr>’:<br>
LibreOfficeKit.hpp:432:31: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘getViewsCount’<br>
return _pDoc->pClass->getViewsCount(_<wbr>pDoc);<br>
^<br>
LibreOfficeKit.hpp: In member function ‘int lok::Document::getViewIds(int*<wbr>, size_t)’:<br>
LibreOfficeKit.hpp:447:31: error: ‘LibreOfficeKitDocumentClass {aka struct _LibreOfficeKitDocumentClass}’ has no member named ‘getViewIds’<br>
return _pDoc->pClass->getViewIds(_<wbr>pDoc, pArray, nSize);<br>
^<br>
LibreOfficeKit.hpp: In member function ‘char* lok::Office::getVersionInfo()’<wbr>:<br>
LibreOfficeKit.hpp:619:34: error: ‘LibreOfficeKitClass {aka struct _LibreOfficeKitClass}’ has no member named ‘getVersionInfo’<br>
return _pOffice->pClass-><wbr>getVersionInfo(_pOffice);<br>
^<br>
In file included from ChildSession.cpp:21:0:<br>
LOKitHelper.hpp: In function ‘std::__cxx11::string LOKitHelper::<wbr>kitCallbackTypeToString(int)’:<br>
LOKitHelper.hpp:102:14: error: ‘LOK_CALLBACK_INVALIDATE_VIEW_<wbr>CURSOR’ was not declared in this scope<br>
case LOK_CALLBACK_INVALIDATE_VIEW_<wbr>CURSOR:<br>
^<br>
LOKitHelper.hpp:104:14: error: ‘LOK_CALLBACK_TEXT_VIEW_<wbr>SELECTION’ was not declared in this scope<br>
case LOK_CALLBACK_TEXT_VIEW_<wbr>SELECTION:<br>
^<br>
LOKitHelper.hpp:106:14: error: ‘LOK_CALLBACK_CELL_VIEW_<wbr>CURSOR’ was not declared in this scope<br>
case LOK_CALLBACK_CELL_VIEW_CURSOR:<br>
^<br>
LOKitHelper.hpp:108:14: error: ‘LOK_CALLBACK_GRAPHIC_VIEW_<wbr>SELECTION’ was not declared in this scope<br>
case LOK_CALLBACK_GRAPHIC_VIEW_<wbr>SELECTION:<br>
^<br>
LOKitHelper.hpp:110:14: error: ‘LOK_CALLBACK_VIEW_CURSOR_<wbr>VISIBLE’ was not declared in this scope<br>
case LOK_CALLBACK_VIEW_CURSOR_<wbr>VISIBLE:<br>
^<br>
LOKitHelper.hpp:112:14: error: ‘LOK_CALLBACK_VIEW_LOCK’ was not declared in this scope<br>
case LOK_CALLBACK_VIEW_LOCK:<br>
^<br>
ChildSession.cpp: In member function ‘void ChildSession::loKitCallback(<wbr>int, const string&)’:<br>
ChildSession.cpp:886:18: error: ‘LOK_CALLBACK_INVALIDATE_VIEW_<wbr>CURSOR’ was not declared in this scope<br>
nType == LOK_CALLBACK_INVALIDATE_VIEW_<wbr>CURSOR ||<br>
^<br>
ChildSession.cpp:887:18: error: ‘LOK_CALLBACK_TEXT_VIEW_<wbr>SELECTION’ was not declared in this scope<br>
nType == LOK_CALLBACK_TEXT_VIEW_<wbr>SELECTION ||<br>
^<br>
ChildSession.cpp:888:18: error: ‘LOK_CALLBACK_CELL_VIEW_<wbr>CURSOR’ was not declared in this scope<br>
nType == LOK_CALLBACK_CELL_VIEW_CURSOR ||<br>
^<br>
ChildSession.cpp:889:18: error: ‘LOK_CALLBACK_GRAPHIC_VIEW_<wbr>SELECTION’ was not declared in this scope<br>
nType == LOK_CALLBACK_GRAPHIC_VIEW_<wbr>SELECTION ||<br>
^<br>
ChildSession.cpp:890:18: error: ‘LOK_CALLBACK_VIEW_CURSOR_<wbr>VISIBLE’ was not declared in this scope<br>
nType == LOK_CALLBACK_VIEW_CURSOR_<wbr>VISIBLE ||<br>
^<br>
ChildSession.cpp:891:18: error: ‘LOK_CALLBACK_VIEW_LOCK’ was not declared in this scope<br>
nType == LOK_CALLBACK_VIEW_LOCK)<br>
^<br>
ChildSession.cpp:1031:10: error: ‘LOK_CALLBACK_INVALIDATE_VIEW_<wbr>CURSOR’ was not declared in this scope<br>
case LOK_CALLBACK_INVALIDATE_VIEW_<wbr>CURSOR:<br>
^<br>
ChildSession.cpp:1034:10: error: ‘LOK_CALLBACK_TEXT_VIEW_<wbr>SELECTION’ was not declared in this scope<br>
case LOK_CALLBACK_TEXT_VIEW_<wbr>SELECTION:<br>
^<br>
ChildSession.cpp:1037:10: error: ‘LOK_CALLBACK_CELL_VIEW_<wbr>CURSOR’ was not declared in this scope<br>
case LOK_CALLBACK_CELL_VIEW_CURSOR:<br>
^<br>
ChildSession.cpp:1040:10: error: ‘LOK_CALLBACK_GRAPHIC_VIEW_<wbr>SELECTION’ was not declared in this scope<br>
case LOK_CALLBACK_GRAPHIC_VIEW_<wbr>SELECTION:<br>
^<br>
ChildSession.cpp:1043:10: error: ‘LOK_CALLBACK_VIEW_CURSOR_<wbr>VISIBLE’ was not declared in this scope<br>
case LOK_CALLBACK_VIEW_CURSOR_<wbr>VISIBLE:<br>
^<br>
ChildSession.cpp:1046:10: error: ‘LOK_CALLBACK_VIEW_LOCK’ was not declared in this scope<br>
case LOK_CALLBACK_VIEW_LOCK:<br>
^<br>
ChildSession.cpp:1049:10: error: ‘LOK_CALLBACK_REDLINE_TABLE_<wbr>SIZE_CHANGED’ was not declared in this scope<br>
case LOK_CALLBACK_REDLINE_TABLE_<wbr>SIZE_CHANGED:<br>
^<br>
ChildSession.cpp:1052:10: error: ‘LOK_CALLBACK_REDLINE_TABLE_<wbr>ENTRY_MODIFIED’ was not declared in this scope<br>
case LOK_CALLBACK_REDLINE_TABLE_<wbr>ENTRY_MODIFIED:<br>
^<br>
Makefile:845: recipe for target 'ChildSession.o' failed<br>
make[2]: *** [ChildSession.o] Error 1<br>
make[2]: Leaving directory '/root/libreofficeonline/<wbr>loolwsd'<br>
Makefile:954: recipe for target 'all-recursive' failed<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory '/root/libreofficeonline/<wbr>loolwsd'<br>
Makefile:598: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
<br>______________________________<wbr>_________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libreoffice" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/libreoffice</a><br>
<br></blockquote></div><br></div>