Plugins 编译Ethos框架时出错

Plugins 编译Ethos框架时出错,plugins,frameworks,gtk,automake,Plugins,Frameworks,Gtk,Automake,我正在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 sui

我正在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

如何修复它?

经过以下修改后,我发现Ethos可以安装在Mac OS X 10.7上:

1) 编辑文件:etos_dir/etos/etos_manager.c(:194):

发件人:

致:

2) 禁用制作:ethos目录/测试, Makefile.am中的更改

发件人:

致:

这是必要的,因为在制作过程中,它找不到libetos

while (NULL != (filename = g_dir_read_name (dir))) {
  if (g_str_has_suffix (filename, "." G_MODULE_SUFFIX)) {
    abspath = g_build_filename (loaders_dir, filename, NULL);
    loader = ethos_manager_create_plugin_loader (manager, abspath);
    if (loader != NULL)
       loaders = g_list_prepend (loaders, loader);
    g_free (abspath);
  }
}
while (NULL != (filename = g_dir_read_name (dir))) {
#ifdef __APPLE__
   gchar* suffix = "dylib"; // to able find ethos-plugin-loader
#else
   gchar* suffix = ("." G_MODULE_SUFFIX);
#endif
   if (g_str_has_suffix (filename, suffix)) {
     abspath = g_build_filename (loaders_dir, filename, NULL);
     loader = ethos_manager_create_plugin_loader (manager, abspath);
     if (loader != NULL)
       loaders = g_list_prepend (loaders, loader);
     g_free (abspath);
   }
}
line#: contents 
02: SUBDIRS = c-plugins manager-dep
30: manager_sources = manager.c
31: plugin_info_sources = plugin-info.c
02: #SUBDIRS = c-plugins manager-dep
30: #manager_sources = manager.c
31: #plugin_info_sources = plugin-info.c