GTK+中文社区(gtk.awaysoft.com)

 找回密码
 马上加入

QQ登录

只需一步,快速开始

查看: 4421|回复: 1

求助:交叉编译 gobject-introspection出错

[复制链接]

该用户从未签到

发表于 2011-12-19 11:22:12 | 显示全部楼层 |阅读模式
大家好
为了给开发板安装gtk3.0的动态库,需要在host上先交叉编译gtk3.0及其所依赖的软件包,其中有一个gobjection-introspection 在交叉编译时出现下面错误,现在我排查出 **/.libs/目录中已生成了_giscanner.so动态库,但是_giscanner.la并没有成功安装,该文件内如下,所以请问大家有没有解决问题的方法或思路,现在卡在这块了。。非常感谢。。。。
# _giscanner.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='_giscanner.so'

# Names of this library.
library_names='_giscanner.so _giscanner.so _giscanner.so'

# The name of the static archive.
old_library='_giscanner.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=' -pthread'

# Libraries that this one depends upon.
dependency_libs=' -L/usr/local/lib /usr/local/lib/libgobject-2.0.la /usr/local/lib/libffi.la /usr/local/lib/libgthread-2.0.la -lpthread /usr/local/lib/libglib-2.0.la -lrt -ldl'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for _giscanner.
current=0
age=0
revision=0

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules?
shouldnotlink=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/local/lib/gobject-introspection/giscanner'




make gobjection-instrospection出现的error:
root@tft-Lenovo:/usr/local/src/gobject-introspection-1.31.0# make
make all-recursive
make[1]: Entering directory `/usr/local/src/gobject-introspection-1.31.0'
Making all in .
make[2]: Entering directory `/usr/local/src/gobject-introspection-1.31.0'
GISCAN GLib-2.0.gir
Traceback (most recent call last):
File "./g-ir-scanner", line 44, in <module>
from giscanner.scannermain import scanner_main
File "./giscanner/scannermain.py", line 34, in <module>
from giscanner.dumper import compile_introspection_binary
File "./giscanner/dumper.py", line 28, in <module>
from .gdumpparser import IntrospectionBinary
File "./giscanner/gdumpparser.py", line 31, in <module>
from .transformer import TransformerException
File "./giscanner/transformer.py", line 27, in <module>
from .girparser import GIRParser
File "./giscanner/girparser.py", line 26, in <module>
from .girwriter import COMPATIBLE_GIR_VERSION
File "./giscanner/girwriter.py", line 25, in <module>
from .xmlwriter import XMLWriter
File "./giscanner/xmlwriter.py", line 74, in <module>
from _giscanner import collect_attributes
File "./giscanner/libtoolimporter.py", line 66, in load_module
mod = imp.load_module(name, open(realpath), realpath, (extension, 'rb', 3))
ImportError: ./.libs/_giscanner.so: cannot open shared object file: No such file or directory
make[2]: *** [GLib-2.0.gir] Error 1
make[2]: Leaving directory `/usr/local/src/gobject-introspection-1.31.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gobject-introspection-1.31.0'
Hansenwang 该用户已被删除
发表于 2014-5-8 15:05:48 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
*滑块验证:
您需要登录后才可以回帖 登录 | 马上加入

本版积分规则

申请友链|Archiver|小黑屋|手机版|GTK+中文社区 ( 粤ICP备13080851号 )

我要啦免费统计

GMT+8, 2024-4-29 13:39 , Processed in 0.932927 second(s), 8 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表