flyfire / gmlive

Automatically exported from code.google.com/p/gmlive
GNU General Public License v2.0
0 stars 0 forks source link

0.22.1 compile failed #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile
2. failed
3.

What is the expected output? What do you see instead?
It seems that this error lies in Glib

What version of the product are you using? On what operating system?

Please provide any additional information below.
/usr/include/gtkmm-2.4/gtkmm/builder.h:187: note: candidates are: static
Glib::RefPtr<Gtk::Builder> Gtk::Builder::create_from_file(const
std::string&, const Glib::ustring&)
/usr/include/gtkmm-2.4/gtkmm/builder.h:202: note:                 static
Glib::RefPtr<Gtk::Builder> Gtk::Builder::create_from_file(const
std::string&, const Glib::StringArrayHandle&)
MainWindow.cpp: In constructor ‘MainWindow::MainWindow()’:
MainWindow.cpp:801: error: call of overloaded ‘create_from_file(const char
[37], const char [10])’ is ambiguous
/usr/include/gtkmm-2.4/gtkmm/builder.h:187: note: candidates are: static
Glib::RefPtr<Gtk::Builder> Gtk::Builder::create_from_file(const
std::string&, const Glib::ustring&)
/usr/include/gtkmm-2.4/gtkmm/builder.h:202: note:                 static
Glib::RefPtr<Gtk::Builder> Gtk::Builder::create_from_file(const
std::string&, const Glib::StringArrayHandle&)
make[2]: *** [MainWindow.o] 错误 1
make[2]: Leaving directory `/home/qinyong/temp/gmlive-0.22.1/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/qinyong/temp/gmlive-0.22.1'
make: *** [all] 错误 2

Original issue reported on code.google.com by qinyong....@gmail.com on 1 Sep 2009 at 10:15

GoogleCodeExporter commented 9 years ago
+1

It's a problem of gtkmm, but they've fixed it at 09-03-20, I'm using ubuntu 
8.10 and
libgtkmm-2.4, seems is the latest version, but still got the problem.

I tried changing the args: 
Gtk::Builder::create_from_file(const std::string&, const Glib::ustring&)
to 
Gtk::Builder::create_from_file(const std::string&, const char* object_id)

then it could compile. Of course, I got a linking error later...

Original comment by springri...@gmail.com on 4 Sep 2009 at 7:44

GoogleCodeExporter commented 9 years ago
gtk+版本太低。 可以安装相应gloose版本来降低gtk+版本要求。

Original comment by lero...@gmail.com on 27 Sep 2009 at 5:10