2013-08-06 84 views
1

我嘗試在我的Ubuntu 10.04上使用cmd,ninja -v -C out/Debug chrome構建Chromium。 但我得到這個錯誤,並沒有發現任何搜索相關的信息。在Ubuntu 10.04上編譯Chromium時出現關於libgio的錯誤

我在構建之前按照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. 

回答

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. 生成使用忍者-C輸出/調試鉻