【问题标题】:compiling libjingle, expat error编译 libjingle,expat 错误
【发布时间】:2012-05-29 19:07:26
【问题描述】:

在安装 libjingle 时,由于缺少 xmlparse.c,安装停止

这是安装的错误部分... 我在第三方/expat-2.0.1/lib/xmlparse.c 中有 xmlparse.c, 知道有什么问题吗?

File "./../../swtoolkit/site_scons/site_init.py", line 203, in BuildEnvironmentSConscripts
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o] Source`third_party/expat-2.0.1/lib/xmlparse.c' not found, needed by target `build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o'.
scons: building terminated because of errors.
root@den-pc:~/tejesh/libjingle-0.6.14/talk# 

【问题讨论】:

  • 疯狂猜测:你缺少 xmlparse.c
  • 哈哈.. :p 我在 '/third_party/expat-2.0.1/lib/xmlparse.c' 的同一目录中有 xmlparse .c
  • 听起来你对 libjingle 很感兴趣 :)
  • 是的 :p 很有趣 :p... 感谢您帮助我解决最后几个问题 :D

标签: swt scons expat-parser libjingle


【解决方案1】:

当我意识到它正在处理 p2p 时,我实际上下载了 libjingle,因为我在类似的领域工作并想查看它。

我下载了expat lib,复制到第三方目录下编译,没有出现这样的问题:

# ../../swtoolkit/hammer.sh expat

结果如下:

scons: Reading SConscript files ...
scons: warning: The build_dir keyword has been deprecated; use the variant_dir keyword instead.
File "<myPath>/swtoolkit/site_scons/site_init.py", line 203, in BuildEnvironmentSConscripts
scons: done reading SConscript files.
scons: Building targets ...
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlparse.o
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmlrole.o
________Compiling build/dbg/obj/third_party/expat-2.0.1/lib/xmltok.o
________Creating library build/dbg/obj/libexpat.a
________Indexing build/dbg/obj/libexpat.a
Install file: "build/dbg/obj/libexpat.a" as "build/dbg/lib/libexpat.a"
scons: done building targets.

能不能像目录权限这么简单?

这是我所拥有的:

# ls -al third_party/
...
drwxr-xr-x 12 notroot notroot   4096 2012-05-30 02:14 expat-2.0.1
...

# ls -al third_party/expat-2.0.1/
...
drwxr-xr-x 2 notroot notroot   4096 2012-05-30 02:09 lib
...

# ls -al third_party/expat-2.0.1/lib
...
-rwxr-xr-x 1 notroot notroot 193934 2012-05-30 02:09 xmlparse.c
...

其实third_party/expat-2.0.1/lib目录下的所有文件都有相同的权限,我只是不想在这里一一列举。

【讨论】:

    【解决方案2】:

    安装 expat-2.1.0 时安装正在搜索 expat-2.0.1,猜测 README 未完全更新.....编译继续将目录重命名为 expat-2.0.1。

    【讨论】:

    • 如果它最能回答您的问题,您可能应该接受这个:)
    猜你喜欢
    • 2012-06-03
    • 2023-03-13
    • 1970-01-01
    • 2013-02-06
    • 2011-07-11
    • 2012-06-30
    • 2011-05-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多