Chinaunix首页 | 论坛 | 博客
  • 博客访问: 809081
  • 博文数量: 489
  • 博客积分: 475
  • 博客等级: 下士
  • 技术积分: 3087
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-08 16:28
文章分类

全部博文(489)

文章存档

2013年(7)

2012年(301)

2011年(181)

分类: LINUX

2012-06-19 19:53:11

新开源项目Hybrid开发手记 http://basiccoder.com/new-opensource-project-hybrid-dev-note.html#comment-2428

代码:  levin108-hybrid-f5bd234.tar.gz

$cd levin108-hybrid-f5bd234
$mkdir -p build
$cd build
$cmake ..
$make
#make install

ubuntu10.04下make编译失败解决方法

src/preference.c:421: undefined reference to "gtk_table_get_size"
solution:添加如下函数

vim ../src/preference.c 421行所在的函数上面增加如下:

/**
 * gtk_table_get_size:
 * @table: a #GtkTable
 * @rows: (allow-none): (out): return location for the number of
 *   rows, or %NULL
 * @columns: (allow-none): (out): return location for the number
 *   of columns, or %NULL
 *
 * Returns the number of rows and columns in the table.
 *
 * Since: 2.22
 **/
void gtk_table_get_size (GtkTable *table, guint *rows, guint *columns)
{
    g_return_if_fail (GTK_IS_TABLE (table));
    if (rows)
    *rows = table->nrows;
    if (columns)
    *columns = table->ncols;
}
重新make下

参考:

阅读(850) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~