- 论坛徽章:
- 0
|
hiphop-php 需要 cmake 来编译 , 但是在编译过程中:
- [root@sys-test-02 hiphop-php]# make
- [ 1%] Built target timelib
- [ 2%] Built target xhp
- [ 14%] Built target mbfl
- [ 14%] Built target sqlite3
- [ 14%] Built target afdt
- [ 75%] Built target hphp_runtime_static
- [ 87%] Built target hphp_analysis
- Linking CXX executable hphp
- ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
- `HPHP::_php_iconv_strlen(unsigned int*, char const*, unsigned long,
- char const*)':
- ext_iconv.cpp:(.text+0x1dc): undefined reference to `libiconv_open'
- ext_iconv.cpp:(.text+0x272): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x2ca): undefined reference to `libiconv_close'
- ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
- `HPHP::php_iconv_string(char const*, unsigned long, char**, unsigned
- long*, char const*, char const*)':
- ext_iconv.cpp:(.text+0x336): undefined reference to `libiconv_open'
- ext_iconv.cpp:(.text+0x423): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x482): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x495): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x4a5): undefined reference to `libiconv_close'
- ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
- `HPHP::_php_iconv_strpos(unsigned int*, char const*, unsigned long,
- char const*, unsigned long, int, char const*)':
- ext_iconv.cpp:(.text+0x5cf): undefined reference to `libiconv_open'
- ext_iconv.cpp:(.text+0x67b): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x73b): undefined reference to `libiconv_close'
- ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
- `HPHP::_php_iconv_appendl(HPHP::StringBuffer&, char const*, unsigned
- long, void*)':
- ext_iconv.cpp:(.text+0xa00): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0xadb): undefined reference to `libiconv'
- ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
- `HPHP::_php_iconv_mime_decode(HPHP::StringBuffer&, char const*,
- unsigned long, char const*, char const**, int)':
- ext_iconv.cpp:(.text+0xced): undefined reference to `libiconv_open'
- ext_iconv.cpp:(.text+0x11e2): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x11ee): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x153f): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x1552): undefined reference to `libiconv_open'
- ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
- `HPHP::f_iconv_substr(HPHP::String const&, int, int, HPHP::String
- const&)':
- ext_iconv.cpp:(.text+0x2981): undefined reference to `libiconv_open'
- ext_iconv.cpp:(.text+0x2a51): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x2aef): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x2b09): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x2bd1): undefined reference to `libiconv_open'
- ../../bin/libhphp_runtime.a(ext_iconv.cpp.o): In function
- `HPHP::f_iconv_mime_encode(HPHP::String const&, HPHP::String const&,
- HPHP::Variant const&)':
- ext_iconv.cpp:(.text+0x3cda): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x3dd0): undefined reference to `libiconv_open'
- ext_iconv.cpp:(.text+0x3e0f): undefined reference to `libiconv_open'
- ext_iconv.cpp:(.text+0x45d0): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x45fb): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x4624): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x46a0): undefined reference to `libiconv_close'
- ext_iconv.cpp:(.text+0x495e): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x4982): undefined reference to `libiconv'
- ext_iconv.cpp:(.text+0x4b80): undefined reference to `libiconv'
复制代码 google 一下 "undefined reference to `libiconv_open'", 所以答案都是: " add '-liconv' to EXTRA_LIBS=... or
LDFLAGS=... " , 但我死活 找不着 "EXTRA_LIBS LDFLAGS" 这俩参数:
用这条命令查找 没有结果 。- [root@sys-test-02 hiphop-php]# find . -type f -exec grep -Hni --col "EXTRA_LIBS" {} \;
复制代码 ibiconv 应该是装的了- locate libiconv |head
- /home/okooo/apps/php/include/php/ext/iconv/php_have_libiconv.h
- /home/okooo/src/php-5.2.6/ext/iconv/php_have_libiconv.h
- /usr/local/lib/libiconv.la
- /usr/local/lib/libiconv.so
- /usr/local/lib/libiconv.so.2
- /usr/local/lib/libiconv.so.2.4.0
- /usr/local/lib/preloadable_libiconv.so
复制代码 请问 Cmake 怎么设置 库参数 啊? |
|