Thread: GUI glade not found.
hello guys,i running program of messaging,everytime run it,i error gui/gui.glade not found. far have researched gmp missing,i have installed it. dont know why gmp not found. can tell me shall can find other programs also. link gmp :- http://gmplib.org/
because of getting error.kindly let me know guys. pasting catch statement of code.
#include <gtkmm/main.h>
#include <gtkmm/builder.h>
#include <gtkmm/messagedialog.h>
#include <iostream>
#include <boost/lexical_cast.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "setupwindow.h"
#include "chatwindow.h"
#include "chatapplication.h"
chatapplication::chatapplication() : network(this)
{
setupwindow = null;
chatwindow = null;
}
chatapplication::~chatapplication()
{
if(null != setupwindow) delete setupwindow;
if(null != chatwindow) delete chatwindow;
}
int chatapplication::run()
{
glib::refptr<gtk::builder> builder;
std::string guifile = "gui/gui.glade";
try
{
builder = gtk::builder::create_from_file(guifile);
} catch (glib::fileerror fe)
{
std::cerr << "could not load gui file: " << fe.what() << std::endl;
return 1;
} catch (gtk::buildererror be)
{
std::cerr << "error while parsing gui file: " << be.what() << std::endl;
return 1;
} catch (glib::markuperror me)
{
std::cerr << "error while loading gui file: " << me.what() << std::endl;
return 1;
there file named glade.gui present,i thought program cant find it,so placed in many places in different folders.still,no luck
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk GUI glade not found.
Ubuntu
Comments
Post a Comment