- 论坛徽章:
- 1
|
我在交叉编译的时候出现如下问题
warning: libffi.so.6, needed by ./.libs/libgobject-2.0.so, not found (try using -rpath or -rpath-link)
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_double'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_pointer'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_sint64'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_void'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_sint32'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_uint64'
./.libs/libgobject-2.0.so: undefined reference to `ffi_call'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_uint32'
./.libs/libgobject-2.0.so: undefined reference to `ffi_prep_cif'
./.libs/libgobject-2.0.so: undefined reference to `ffi_type_float'
collect2: error: ld returned 1 exit status
make[4]: *** [gobject-query] Error 1
遇到同样的问题,我把头文件和库路径都指定到了,
LIBFFI_LIBS=-L$CUR_PATH'/../libffi/usr/lib -lffi'
LIBFFI_CFLAGS=-I$CUR_PATH'/../libffi/usr/include'
我这样指定好的,但为什么还会出现这样的问题啊?
makefile中的LIBFFI_CFLAGS和LIBFFI_LIBS路径都指的路径是对的。网上搜了好多,但是还是没有解决问题。
|
|