编译 Ethos 框架时出错
我正在尝试在 Mac OS Lion 上制作 Ethos 框架。 git://git.dronelabs.com/ethos
这是 ./configure 的结果:
Ethos 0.2.3
Prefix...................: /usr/local
Debug level..............: minimum
Maintainer Compiler flags: no
Build API reference......: no
Enable test suite........: yes
Bindings
GObject Introspection....: no
Vala Bindings............: no
Python Bindings..........: no
Javascript Bindings......: no
Now type `make' to compile ethos
然后我执行 sudo make,编译时出现错误:
Making all in c-plugins
CC libsample.so
Undefined symbols for architecture x86_64:
"_ethos_plugin_get_type", referenced from:
_my_plugin_get_type in cc3gPLKS.o
_my_plugin_class_init in cc3gPLKS.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [libsample.so] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
如何修复它?
I'm trying make Ethos framework on Mac OS Lion.
git://git.dronelabs.com/ethos
Here result of ./configure:
Ethos 0.2.3
Prefix...................: /usr/local
Debug level..............: minimum
Maintainer Compiler flags: no
Build API reference......: no
Enable test suite........: yes
Bindings
GObject Introspection....: no
Vala Bindings............: no
Python Bindings..........: no
Javascript Bindings......: no
Now type `make' to compile ethos
Then I do sudo make, and while compiling arise an error:
Making all in c-plugins
CC libsample.so
Undefined symbols for architecture x86_64:
"_ethos_plugin_get_type", referenced from:
_my_plugin_get_type in cc3gPLKS.o
_my_plugin_class_init in cc3gPLKS.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[3]: *** [libsample.so] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
How can I fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现经过以下修改后,Ethos可以安装在Mac OS X 10.7上:
1)编辑文件:ethos_dir/ethos/ethos_manager.c (:194):
FROM:
TO:
2)禁用make for:ethos-dir/tests,
将 Makefile.am 更改
为:
TO:
这是必要的,因为在制作过程中找不到 libethos。
I found that Ethos can be installed on Mac OS X 10.7 after the following modifications:
1)Edit file: ethos_dir/ethos/ethos_manager.c (:194):
FROM:
TO:
2)Disable making for: ethos-dir/tests,
Change in Makefile.am
FROM:
TO:
This is necessary because, while making process it cannot find libethos.