In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about how Facebook Open Platform compiles FAQ, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
1: download source code: http://developers.facebook.com/fbopen/
2: download the software needed by fbml to the dependencies directory according to the instructions of readme
The compilation of 3:fbml 's php extension has a script of its own, but in general it cannot be successfully compiled through that script.
Error prompt 1:
Gconvert.c:48:2: error: # error GNU libiconv not in use but included iconv.h is from libiconv
Solution:
Modify build-all.py
'glib-2.14.6.tar.gz': (". / configure", "make", "sudo make install")
Change to
'glib-2.14.6.tar.gz': (". / configure-- with-libiconv=gnu", "make", "sudo make install")
Error Tip 2:
Nspr4-lpthread-ldl-L../../dist/bin-lmozjs-L/usr/local/lib-lgtk-x11-2.0-lgdk-x11-2.0-latk-1.0-lgdk_pixbuf-2.0-lm-lpangocairo-1.0-lpango-1.0-lcairo-lgobject-2.0-lgmodule-2.0-ldl-lglib-2.0-L/usr/local/lib-lcairo-Wl,--version-script-Wl .. / build/unix/gnu-ld-scripts/components-version-script-Wl,-Bsymbolic-ldl-lm
.. /.. / dist/lib/libgkconcvs_s.a (nsCanvasRenderingContext2D.o) (.text + 0xa47): In function `nsCanvasRenderingContext2D::Destroy ()':
: undefined reference to `XFreePixmap'
.. /.. / dist/lib/libgkconcvs_s.a (nsCanvasRenderingContext2D.o) (.text + 0x141a): In function `nsCanvasRenderingContext2D::SetDimensions (int, int)':
: undefined reference to `XRenderFindStandardFormat'
.. /.. / dist/lib/libgkconcvs_s.a (nsCanvasRenderingContext2D.o) (.text + 0x1440): In function `nsCanvasRenderingContext2D::SetDimensions (int, int)':
: undefined reference to `XListPixmapFormats'
.. /.. / dist/lib/libgkconcvs_s.a (nsCanvasRenderingContext2D.o) (.text + 0x1467): In function `nsCanvasRenderingContext2D::SetDimensions (int, int)':
: undefined reference to `XFree'
.. /.. / dist/lib/libgkconcvs_s.a (nsCanvasRenderingContext2D.o) (.text + 0x149d): In function `nsCanvasRenderingContext2D::SetDimensions (int, int)':
: undefined reference to `XCreatePixmap'
Collect2: ld returned 1 exit status
Gmake [3]: * * [libgklayout.so] Error 1
Gmake [3]: Leaving directory `/ usr/home/yunfeng/facebook/facebook/fb-open-platform/libfbml-1.2.0/dependencies/mozilla/layout/build'
Gmake [2]: * * [libs] Error 2
Gmake [2]: Leaving directory `/ usr/home/yunfeng/facebook/facebook/fb-open-platform/libfbml-1.2.0/dependencies/mozilla/layout'
Gmake [1]: * * [tier_9] Error 2
Gmake [1]: Leaving directory `/ usr/home/yunfeng/facebook/facebook/fb-open-platform/libfbml-1.2.0/dependencies/mozilla'
Make: * * [default] Error 2
Solution:
Modify dependencies/mozilla/layout/build/Makefile.inifdef
MOZ_ENABLE_GTK2EXTRA_DSO_LDOPTS + = $(MOZ_GTK2_LIBS)\ $(NULL)
Change it to ifdef MOZ_ENABLE_GTK2EXTRA_DSO_LDOPTS + = $(MOZ_GTK2_LIBS)\-L/usr/X11R6/lib-lX11-lXrender\ $(NULL)
This error usually occurs when firefox compiles. I usually extract the firefox software manually, then modify the Makefile.in, and then extract the firefox statement in build-all.py.
Error Tip 3:
In file included from js/jsarena.c:49:
Js/jsbit.h:173: error: size of array 'js_static_assert_line_173' is negative
Make [1]: * * [js/jsarena.o] Error 1
Make: * * [src] Error 2
Solution:
Modify line 173 of src/js/jsbit.h
S_STATIC_ASSERT (sizeof (unsigned long long) = = sizeof (JSUword))
Change to
S_STATIC_ASSERT (sizeof (unsigned long) = = sizeof (JSUword))
This error occurs during the compilation of fbml after the successful compilation of firefox. If you do not want to do the previous compilation with build-all.py, you can block the previous compilation according to the script.
This is how Facebook Open Platform compiles FAQ. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.