当我意识到它正在处理 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
目录中的所有文件都具有相同的权限,我只是不想在这里列出它们。