Libreoffice build error[for android]

di liu disco.liu at gmail.com
Thu Mar 3 15:08:01 UTC 2022


the build environment is linux(centos 7) which installed in vmware (my host
system is macOS) this is my autogen.input content
--with-distro=LibreOfficeAndroid
--with-android-sdk=/home/disco/Documents/dev_env/android_sdk
--with-android-ndk=/home/disco/Documents/dev_env/android_sdk/ndk/20.1.5948944
--with-ant-home=/home/disco/Documents/dev_env/apache-ant-1.10.12 everything
is ok when execute: ./autogen.sh But when I execute: make the error is
happened:

di liu <disco.liu at gmail.com> 于2022年3月3日周四 18:50写道:

> Hi,
> There has a link error when I build Libreoffice for android(
> https://wiki.documentfoundation.org/Development/BuildingForAndroid)
>
> below is the error message
>
> [build ALL] All modules but instset: chart2 canvas cppcanvas dbaccess
> accessibility winaccessibility UnoControls animations apple_remote avmedia
> basctl basegfx basic bean binaryurp bridges cli_ure codemaker comphelper
> configmgr connectivity cppu cppuhelper cpputools cui desktop drawinglayer
> editeng embeddedobj embedserv emfio eventattacher extensions external
> beanshell boost box2d cairo coinmp cuckoo curl dragonbox dtoa epoxy expat
> fontconfig freetype glm graphite harfbuzz hsqldb hunspell hyphen icu lcms2
> libabw libcdr libcmis libebook libepubgen libetonyek libexttextcat
> libfreehand libjpeg-turbo liblangtag libmspub libmwaw libnumbertext
> libodfgen liborcus libpagemaker libpng libqxp librevenge libstaroffice
> libvisio libwebp libwpd libwpg libwps libxml2 libxslt libzmf mdds
> more_fonts mythes nss openssl pdfium redland rhino ucpp xmlsec zxing extras
> filter forms formula framework hwpfilter i18nlangtag i18npool i18nutil idl
> io javaunohelper jurt jvmaccess jvmfwk libreofficekit lingucomponent
> linguistic lotuswordpro o3tl offapi officecfg onlineupdate oovbaapi oox
> package pch postprocess readlicense_oo registry remotebridges reportbuilder
> reportdesign ridljar sal salhelper sax sc scaddins sccomp scripting sd
> sdext sfx2 shell slideshow smoketest solenv soltools sot starmath stoc
> store svgio svl svtools svx sw swext sysui test testtools toolkit tools ucb
> ucbhelper udkapi unodevtools unoidl unoil unotest unotools unoxml ure uui
> vbahelper vcl wizards writerfilter writerperfect xmerge xmloff xmlreader
> xmlscript xmlsecurity
> [build MAK] CustomTarget/android/source/done
> Linking
> /home/disco/Documents/res/libreoffice/android/obj/local/armeabi-v7a/liblo-native-code.so
> /home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
> cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString const&,
> rtl::OUString const&, rtl::OUString const&, rtl::OUString const&,
> rtl::OUString const&,
> com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
> const&, std::__ndk1::function<com::sun::star::uno::XInterface*
> (com::sun::star::uno::XComponentContext*,
> com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&)>*,
> com::sun::star::uno::Reference<com::sun::star::uno::XInterface>*): error:
> undefined reference to 'lo_get_constructor_map'
> /home/disco/Documents/res/libreoffice/instdir/program/libuno_cppuhelpergcc3.a(shlib.o):shlib.cxx:function
> cppuhelper::detail::loadSharedLibComponentFactory(rtl::OUString const&,
> rtl::OUString const&, rtl::OUString const&, rtl::OUString const&,
> rtl::OUString const&,
> com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
> const&, std::__ndk1::function<com::sun::star::uno::XInterface*
> (com::sun::star::uno::XComponentContext*,
> com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&)>*,
> com::sun::star::uno::Reference<com::sun::star::uno::XInterface>*): error:
> undefined reference to 'lo_get_factory_map'
> /home/disco/Documents/res/libreoffice/instdir/program/libvcllo.a(builder.o):builder.cxx:function
> (anonymous namespace)::GetCustomMakeWidget(rtl::OString const&): error:
> undefined reference to 'lo_get_custom_widget_func'
> clang++: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: ***
> [/home/disco/Documents/res/libreoffice/android/obj/local/armeabi-v7a/liblo-native-code.so]
> Error 1
> make[1]: ***
> [/home/disco/Documents/res/libreoffice/workdir/CustomTarget/android/source/done]
> Error 2
> make: *** [build] Error 2
>
> Could you give me some suggestions
> tsk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20220303/b8f9d207/attachment.htm>


More information about the LibreOffice mailing list