Re: Term widget



On Tue, 2009-03-03 at 17:18 +1100, Grizzly(Francis Smit) wrote:
> Grizzly(Francis Smit) wrote:
> > Grizzly(Francis Smit) wrote:
> >   
> >> Krzesimir Nowak wrote:
> >>   
> >>     
> >>> On Mon, 2009-03-02 at 22:33 +1100, Grizzly(Francis Smit) wrote:
> >>>   
> >>>     
> >>>       
> >>>> Hi
> >>>>    many programs like anjuta embed a terminal in a GUI app, 
> >>>> my question is is there a gnome-terminal widget or similar,
> >>>> and if so has it been wrapped for C++
> >>>>
> >>>>     
> >>>>       
> >>>>         
> >>> That widget is vte and there's no official C++ wrapper for it. I made a
> >>> wrapper for vte 0.16.14 and you can download sources from
> >>> http://wips.pl/~kudi . Now I'm working on documentation to be
> >>> installable, and after making it work I plan to wrap 0.17.4 version of
> >>> vte.
> >>>
> >>> I'll have to put it on sourceforge or somewhere, so anybody could
> >>> checkout sources instead of downloading them from a low-bandwith server.
> >>>
> >>> Sorry from double posting, used wrong mail in previous one.
> >>>
> >>> Krzesimir Nowak
> >>>   
> >>>     
> >>>       
> >> thank you very much, by the way could you give me some sample code of it
> >> in use and or
> >> point me to some documentation thanks in advance
> >>
> >>   
> >>     
> > I  tried the following
> > m_term = Gtk::manage(new Vte::Terminal());
> > //m_term = new Vte::Terminal();
> > m_vpaned1->add2(*dynamic_cast<Gtk::Widget*>(m_term));
> > and I get the following error:
> >
> >
> >   36: undefined reference to `Vte::Terminal::Terminal()'
> >
> >
> >   
> I've worked out that this is a link error how do I tell anjuta/configure
> etc. where to find the .so file
> 
> 
> 

Heh, I'm still not using Anjuta, but I'll have to. Set somewhere your
cflags to `pkg-config --cflags libvtemm-1.0` and libadd to `pkg-config
--libs libvtemm-1.0` (including backticks). Or if Anjuta have builtin
suuport for pkg-config, tell it to use pkg-config on libvtemm-1.0.

I checked Anjuta and maybe that will work:
Project->Properties->Packages->(your module)->Add Package>(there should
be libvtemm-1.0 on a list if you installed a library correctly)

Krzesimir Nowak



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]