在Ubuntu 10.04上使用有关libgio的错误构建Chromium

时间:2013-08-06 06:08:46

标签: build chromium

我尝试使用cmd,ninja -v -C out / Debug chrome在我的Ubuntu 10.04上构建Chromium。 但我得到了这个错误,并通过谷歌搜索相关信息找不到任何东西。

在构建之前,我已按照http://code.google.com/p/chromium/wiki/LinuxBuildInstructions上的说明进行操作。 如果你知道如何解决这个问题,有人可以帮助我吗?非常感谢。

In file included from obj/build/linux/gio.gen/libgio_loader.cc:4:
../../out/Debug/gen/library_loaders/libgio.h:28: error: ‘::g_settings_new’ has not been declared
../../out/Debug/gen/library_loaders/libgio.h:29: error: ‘::g_settings_get_child’ has not been declared
../../out/Debug/gen/library_loaders/libgio.h:30: error: ‘::g_settings_get_string’ has not been declared
../../out/Debug/gen/library_loaders/libgio.h:31: error: ‘::g_settings_get_boolean’ has not been declared
../../out/Debug/gen/library_loaders/libgio.h:32: error: ‘::g_settings_get_int’ has not been declared
../../out/Debug/gen/library_loaders/libgio.h:33: error: ‘::g_settings_get_strv’ has not been declared
../../out/Debug/gen/library_loaders/libgio.h:34: error: ‘::g_settings_list_schemas’ has not been declared
obj/build/linux/gio.gen/libgio_loader.cc: In member function ‘bool LibGioLoader::Load(const std::string&)’:
obj/build/linux/gio.gen/libgio_loader.cc:42: error: cast from ‘void*’ to ‘int’ loses precision
obj/build/linux/gio.gen/libgio_loader.cc:56: error: cast from ‘void*’ to ‘int’ loses precision
obj/build/linux/gio.gen/libgio_loader.cc:70: error: cast from ‘void*’ to ‘int’ loses precision
obj/build/linux/gio.gen/libgio_loader.cc:84: error: cast from ‘void*’ to ‘int’ loses precision
obj/build/linux/gio.gen/libgio_loader.cc:98: error: cast from ‘void*’ to ‘int’ loses precision
obj/build/linux/gio.gen/libgio_loader.cc:112: error: cast from ‘void*’ to ‘int’ loses precision
obj/build/linux/gio.gen/libgio_loader.cc:126: error: cast from ‘void*’ to ‘int’ loses precision
ninja: build stopped: subcommand failed.

2 个答案:

答案 0 :(得分:1)

https://codereview.chromium.org/21687002

现在我们正在使用Ubuntu Precise删除捆绑的gsettings标头。你可以用12.04构建

答案 1 :(得分:0)

我也面临同样的问题。进一步挖掘,我发现最新版本的GTK没有上述API。请按照以下步骤在Ubuntu 10.04上构建Chromium:

  1. 下载旧版GTK,例如。来自http://ftp.gnome.org/pub/gnome/sources/glib/2.38/glib-2.38.2.tar.xz
  2. 提取,配置,编译和安装。
  3. 重新生成您的铬项目
  4. 使用ninja -C out / Debug chrome再次构建