当前位置: 技术问答>linux和unix
编译 firefox-3.6,遇到 undefined reference to FcPatternAddFTFace
来源: 互联网 发布时间:2016-09-07
本文导语: c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG...
c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions -fPIC -shared -Wl,-z,defs -Wl,-h,libxul.so -o libxul.so nsStaticXULComponents.o nsUnicharUtils.o nsCompressedCharMap.o nsBidiUtils.o nsRDFResource.o -lpthread -Wl,-rpath-link,/opt/src/mozilla-1.9.2/dist/bin -Wl,-rpath-link,/opt/lib -Wl,--whole-archive ../../embedding/browser/gtk/src/libgtkembedmoz.a ../../toolkit/xre/libxulapp_s.a ../../staticlib/components/libxpconnect.a ../../staticlib/components/libnecko.a ../../staticlib/components/libuconv.a ../../staticlib/components/libi18n.a ../../staticlib/components/libchardet.a ../../staticlib/components/libjar50.a ../../staticlib/components/libpref.a ../../staticlib/components/libcaps.a ../../staticlib/components/libhtmlpars.a ../../staticlib/components/libimglib2.a ../../staticlib/components/libgklayout.a ../../staticlib/components/libdocshell.a ../../staticlib/components/libembedcomponents.a ../../staticlib/components/libwebbrwsr.a ../../staticlib/components/libnsappshell.a ../../staticlib/components/libtxmgr.a ../../staticlib/components/libchrome.a ../../staticlib/components/libcommandlines.a ../../staticlib/components/libtoolkitcomps.a ../../staticlib/components/libpipboot.a ../../staticlib/components/libpipnss.a ../../staticlib/components/libjsctypes.a ../../staticlib/components/libgkplugin.a ../../staticlib/components/libmozfind.a ../../staticlib/components/libappcomps.a ../../staticlib/components/libunixproxy.a ../../staticlib/components/libxpinstall.a ../../staticlib/components/libjsd.a ../../staticlib/components/libautoconfig.a ../../staticlib/components/libauth.a ../../staticlib/components/libcookie.a ../../staticlib/components/libpermissions.a ../../staticlib/components/libuniversalchardet.a ../../staticlib/components/libcomposer.a ../../staticlib/components/librdf.a ../../staticlib/components/libwindowds.a ../../staticlib/components/libintlapp.a ../../staticlib/components/libfileview.a ../../staticlib/components/libstoragecomps.a ../../staticlib/components/libplaces.a ../../staticlib/components/libtkautocomplete.a ../../staticlib/components/libsatchel.a ../../staticlib/components/libpippki.a ../../staticlib/components/libucvmath.a ../../staticlib/components/libwidget_gtk2.a ../../staticlib/components/libsystem-pref.a ../../staticlib/components/libgkgfxthebes.a ../../staticlib/components/libaccessibility.a ../../staticlib/components/libremoteservice.a ../../staticlib/components/libspellchecker.a ../../staticlib/components/libzipwriter.a ../../staticlib/libxpcom_core.a ../../staticlib/libucvutil_s.a ../../staticlib/libgkgfx.a ../../staticlib/libmozreg_s.a ../../staticlib/libmorkreader_s.a ../../staticlib/libgtkxtbin.a ../../staticlib/libgfxpsshar.a ../../staticlib/libthebes.a -Wl,--no-whole-archive -L../../dist/lib -lsqlite3 -L../../dist/bin -L../../dist/lib -L../../dist/bin -L../../dist/lib -L../../jpeg -lmozjpeg -L../../modules/libimg/png -lmozpng ../../gfx/qcms/libmozqcms.a -L/opt/src/mozilla-1.9.2/dist/bin -lmozjs -L../../dist/bin -L../../dist/lib -lcrmf -lsmime3 -lssl3 -lnss3 -lnssutil3 ../../gfx/cairo/cairo/src/libmozcairo.a ../../gfx/cairo/libpixman/src/libmozlibpixman.a -L/usr/X11R6/lib -lXrender -lfreetype -lfontconfig -L../../modules/zlib/src -lmozz -L/opt/src/mozilla-1.9.2/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L/opt/lib -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -L/usr/X11R6/lib -lX11 -lXext -L/opt/lib -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/opt/lib -L/usr/X11R6/lib -lgtk-x11-2.0 -latk-1.0 -lcairo -lXrender -lX11 -lXext -lpng12 -lfreetype -lz -lfontconfig -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lXt -lgthread-2.0 -lfreetype -lz -lasound -ldl -lm
../../staticlib/libthebes.a(gfxPangoFonts.o)(.text+0x2503): In function `gfxDownloadedFcFontEntry::InitPattern()':
gfxPangoFonts.cpp: undefined reference to `FcPatternAddFTFace(_FcPattern*, char const*, FT_FaceRec_*)'
../../staticlib/libthebes.a(gfxPangoFonts.o)(.text+0x25a2):gfxPangoFonts.cpp: undefined reference to `FcFreeTypeCharSet(FT_FaceRec_*, _FcBlanks*)'
../../staticlib/libthebes.a(gfxFT2Utils.o)(.text+0x7b): In function `gfxFT2LockedFace::GetGlyph(unsigned int)':
gfxFT2Utils.cpp: undefined reference to `FcFreeTypeCharIndex(FT_FaceRec_*, unsigned int)'
collect2: ld returned 1 exit status
make[3]: *** [libxul.so] Error 1
make[3]: Leaving directory `/opt/src/mozilla-1.9.2/toolkit/library'
make[2]: *** [libs_tier_toolkit] Error 2
make[2]: Leaving directory `/opt/src/mozilla-1.9.2'
make[1]: *** [tier_toolkit] Error 2
make[1]: Leaving directory `/opt/src/mozilla-1.9.2'
make: *** [default] Error 2
[root@localhost mozilla-1.9.2]#
已经想过很多方法,其中之一在/opt/src/mozilla-1.9.2/toolkit/library/Makefile,
+EXTRA_DSO_LDOPTS += -lexpat -lfreetype $(FT2_LIBS)
但都不奏效.最好是编译成功提供一下思路.
../../staticlib/libthebes.a(gfxPangoFonts.o)(.text+0x2503): In function `gfxDownloadedFcFontEntry::InitPattern()':
gfxPangoFonts.cpp: undefined reference to `FcPatternAddFTFace(_FcPattern*, char const*, FT_FaceRec_*)'
../../staticlib/libthebes.a(gfxPangoFonts.o)(.text+0x25a2):gfxPangoFonts.cpp: undefined reference to `FcFreeTypeCharSet(FT_FaceRec_*, _FcBlanks*)'
../../staticlib/libthebes.a(gfxFT2Utils.o)(.text+0x7b): In function `gfxFT2LockedFace::GetGlyph(unsigned int)':
gfxFT2Utils.cpp: undefined reference to `FcFreeTypeCharIndex(FT_FaceRec_*, unsigned int)'
collect2: ld returned 1 exit status
make[3]: *** [libxul.so] Error 1
make[3]: Leaving directory `/opt/src/mozilla-1.9.2/toolkit/library'
make[2]: *** [libs_tier_toolkit] Error 2
make[2]: Leaving directory `/opt/src/mozilla-1.9.2'
make[1]: *** [tier_toolkit] Error 2
make[1]: Leaving directory `/opt/src/mozilla-1.9.2'
make: *** [default] Error 2
[root@localhost mozilla-1.9.2]#
已经想过很多方法,其中之一在/opt/src/mozilla-1.9.2/toolkit/library/Makefile,
+EXTRA_DSO_LDOPTS += -lexpat -lfreetype $(FT2_LIBS)
但都不奏效.最好是编译成功提供一下思路.
|
undefined reference to `FcFreeTypeCharIndex(FT_FaceRec_*, unsigned int)'
还是说缺程序库的问题
链接的时候才报的错
安装libfontconfig相关的库试试
还真的没有自己编译软件包,rpm习惯了
还是说缺程序库的问题
链接的时候才报的错
安装libfontconfig相关的库试试
还真的没有自己编译软件包,rpm习惯了
|
这个······
只有编译过了的同志才知晓。
|
没有从源码按过这个东西
如果可能的话 通过rpm包 或则yum等等这些方式安装吧
如果可能的话 通过rpm包 或则yum等等这些方式安装吧
|
没编译过,不敢打妄语
|
firefox 不是java写的吗?
可能之用到了那3个函数在静态库中。
|
没准那3个函数是新出来的