Wednesday, May 25, 2016

Error "std::std' has not been declared" Pada Saat Kompile Libreoffice

Saat saya  mengkompilasi libreoffice di linux from scratch untuk pemasangan dengan mengikuti panduan disini
,ternyata error yang berbunyi "std::std' has not been declared" pada file "~/extract/libreoffice-5.1.
0.3/xmloff/source/draw/ximp3dscene.cxx"yang mengakibatkan file "~/extract/libreoffice-5.1.0.3/workdir/CxxObject/xmloff/source/draw/ximp3dscene.o" tidak terkompilasi dan ini detail errornya :
/home/lfs/
extract/libreoffice-5.1.0.3/xmloff/source/draw/ximp3dscene.cxx: In constructor 'SdXML3DLightContext::SdXML3DLightContext(SvXMLImport&, sal_uInt16, const rtl::OUString&, const com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>&)':
/home/lfs/extract/libreoffice-5.1.0.3/xmloff/source/draw/ximp3dscene.cxx:69:27: error: 'std::std' has not been declared
if (!std::std::isnan(aVal.getX()) && !std::std::isnan(aVal.getY()) && !std::std::isnan(aVal.getZ()))
^
/home/lfs/extract/libreoffice-5.1.0.3/xmloff/source/draw/ximp3dscene.cxx:69:60: error: 'std::std' has not been declared
if (!std::std::isnan(aVal.getX()) && !std::std::isnan(aVal.getY()) && !std::std::isnan(aVal.getZ()))
^
/home/lfs/extract/libreoffice-5.1.0.3/xmloff/source/draw/ximp3dscene.cxx:69:93: error: 'std::std' has not been declared
if (!std::std::isn
an(aVal.getX()) && !std::std::isnan(aVal.getY()) && !std::std::isnan(aVal.getZ()))
^
/home/lfs/extract/libreoffice-5.1.0.3/solenv/gbuild/LinkTarget.mk:189: recipe for target '/home/lfs/extract/libreoffice-5.1.0.3/workdir/CxxObject/xmloff/source/draw/ximp3dscene.o' failed
make[1]: *** [/home/lfs/extract/libreoffice-5.1.0.3/workdir/CxxObject/xmloff/source/draw/ximp3dscene.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:244: recipe for target 'build' failed
make: *** [build] Error 2
lfs [ ~/extract/libreoffice-5.1.0.3 ]$
* Saya mengunakan ~/extract untuk tempat memasang libreoffice

Nah,dah tau kan penyebabnya,sekarang solusinya :
Solusinya simpel sekali,tinggal ubah ./auto-gen.sh saat konfigurasi libreoffice ke ./configure (konfigurasi anda)

No comments:

Post a Comment