GTK2.Gnome2Canvas not available

classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

GTK2.Gnome2Canvas not available

Chris Angelico
Does the Gnome2Canvas* set of classes have an additional dependency
beyond what's needed for GTK2? I'm playing around with some ideas for
a scrollable text display - more or less a console window - and wanted
to try the Canvas, but it's not available either in the precompiled
7.8.352 Windows binary, nor in my built-from-source 7.9. The latter
says the following at the end of 'make reconfigure':

GTK1................ no (dependencies failed)
GTK1.GlArea......... no (dependencies failed)
GTK1.GladeXML....... no (dependencies failed)
GTK2................ yes
Gdbm................ no (dependencies failed)

which I interpret to mean that all of GTK2 should be available; but
none of the Gnome2* names come up in indices(GTK2). What do I need to
set up to get this to work?

Thanks in advance!

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

larcky
Chris Angelico wrote
Does the Gnome2Canvas* set of classes have an additional dependency
beyond what's needed for GTK2? I'm playing around with some ideas for
a scrollable text display - more or less a console window - and wanted
to try the Canvas, but it's not available either in the precompiled
7.8.352 Windows binary, nor in my built-from-source 7.9. The latter
says the following at the end of 'make reconfigure':

GTK1................ no (dependencies failed)
GTK1.GlArea......... no (dependencies failed)
GTK1.GladeXML....... no (dependencies failed)
GTK2................ yes
Gdbm................ no (dependencies failed)

which I interpret to mean that all of GTK2 should be available; but
none of the Gnome2* names come up in indices(GTK2). What do I need to
set up to get this to work?

Thanks in advance!

ChrisA
The Gnome development libraries, specifically libgnomecanvas2-dev or whatever its Windows equivalent is.
Or you could wait till I learn how to write Pike modules and port Cairo (- though that might take about 10 years ).
Regards, larcky
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
On Sat, Oct 15, 2011 at 8:17 AM, larcky <[hidden email]> wrote:
>
> The Gnome development libraries, specifically /libgnomecanvas2-dev/ or
> whatever its Windows equivalent is.
> Or you could wait till I learn how to write Pike modules and port Cairo (-
> though that might take about 10 years ).

Writing Pike modules isn't hard, actually. Assuming that Cairo has C
bindings, all you're doing is writing glue (not porting), and it's
fairly straightforward. However, I don't know Cairo at all, so I can't
write glue for it.

All I need is different-colored text; it'll all use the same font
(although it'd be nice to be able to dynamically change the font,
which might mean repositioning text if the size changes). Ideally, I'd
like this to work out-of-the-box on multiple Pike systems, such that I
can tell people "Download my program, and download the Pike
interpreter from -here-" and it'll work.

Okay, so I sudo apt-got libgnomecanvas2-dev and did the usual make
reconfigure/make/sudo make install, and there's still no 'canvas'
entries... Ah! Have to do a full 'make clean' to get it to work. Now,
to figure out how to make it work on Windows... if possible.

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Lance Dillon-2




----- Original Message ----

> From: Chris Angelico <[hidden email]>
> To: [hidden email]
> Sent: Fri, October 14, 2011 6:18:43 PM
> Subject: Re: GTK2.Gnome2Canvas not available
>
> On Sat, Oct 15, 2011 at 8:17 AM, larcky <[hidden email]>  wrote:
> >
> > The Gnome development libraries, specifically  /libgnomecanvas2-dev/ or
> > whatever its Windows equivalent is.
> > Or  you could wait till I learn how to write Pike modules and port Cairo (-
> >  though that might take about 10 years ).
>
> Writing Pike modules isn't hard,  actually. Assuming that Cairo has C
> bindings, all you're doing is writing  glue (not porting), and it's
> fairly straightforward. However, I don't know  Cairo at all, so I can't
> write glue for it.
>
> All I need is  different-colored text; it'll all use the same font
> (although it'd be nice to  be able to dynamically change the font,
> which might mean repositioning text  if the size changes). Ideally, I'd
> like this to work out-of-the-box on  multiple Pike systems, such that I
> can tell people "Download my program, and  download the Pike
> interpreter from -here-" and it'll work.
>
> Okay, so I  sudo apt-got libgnomecanvas2-dev and did the usual make
> reconfigure/make/sudo  make install, and there's still no 'canvas'
> entries... Ah! Have to do a full  'make clean' to get it to work. Now,
> to figure out how to make it work on  Windows... if possible.
>
> ChrisA
>
>

Actually, some time ago someone else wrote a pike cairo module.  I don't
remember who it was (it might be in the comments of the code), and I'm pretty
sure nothing has been done with it since then.  I still have the code saved
away.  It was picairo-0.9.tar.gz.

It looks like it was by someone named David Vest ([hidden email]).  The date on
it looks to be 2006-02-03.  The latest date of any of the files is Mar 28 2006.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
On Sat, Oct 15, 2011 at 9:33 AM, Lance Dillon <[hidden email]> wrote:
> Actually, some time ago someone else wrote a pike cairo module.  I don't
> remember who it was (it might be in the comments of the code), and I'm pretty
> sure nothing has been done with it since then.  I still have the code saved
> away.  It was picairo-0.9.tar.gz.
>
> It looks like it was by someone named David Vest ([hidden email]).  The date on
> it looks to be 2006-02-03.  The latest date of any of the files is Mar 28 2006.

If the license on that permits it, can you shoot me a copy please?
Googling the file name produces nothing, and www.davve.net seems to be
an empty Blogger site. I'm currently wrestling with the Gnome2Canvas
and unable to find any decent examples, plus the Canvas appears to
have limited life [1] [2] in GTK itself.

ChrisA
[1] http://developer.gnome.org/libgnomecanvas/
[2] http://mail.gnome.org/archives/release-team/2009-July/msg00044.html

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Lance Dillon-2

> If the license on that permits it, can you shoot me a copy  please?
> Googling the file name produces nothing, and www.davve.net seems to be
> an empty Blogger  site. I'm currently wrestling with the Gnome2Canvas
> and unable to find any  decent examples, plus the Canvas appears to
> have limited life [1] [2] in GTK  itself.
>
> ChrisA
> [1] http://developer.gnome.org/libgnomecanvas/
> [2]  http://mail.gnome.org/archives/release-team/2009-July/msg00044.html
>
>
It says GPL/MPL, so let me see if I can email to the list.  If something
prevents me, I will make it available on a web server.

picairo-0.9.tar.gz (842K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
In reply to this post by Lance Dillon-2
On Sat, Oct 15, 2011 at 9:33 AM, Lance Dillon <[hidden email]> wrote:
> Actually, some time ago someone else wrote a pike cairo module.  I don't
> remember who it was (it might be in the comments of the code), and I'm pretty
> sure nothing has been done with it since then.  I still have the code saved
> away.  It was picairo-0.9.tar.gz.

Coming back to this one. I extracted the archive and ran 'pike -x
module'; it said that it was an old-style module. Compilation appeared
to work, and a .so file made, but attempting to load the module into
Pike raised an 'undefined symbol' error for "generic_error_offset".
Poking around with other code using generic_error_program suggests
that this offset isn't needed; removing it from the source caused
another error on 'throw_severity'. This symbol appears to be used in
the Pike sources, so my guess is that something's wrong in either the
compile or the install.

The only method of compiling that's been at all successful is 'pike -x
module'; is there a "compatibility mode" for older modules?

For installing, I used:
$ sudo pike -x module install
$ sudo make install
$ pike
> (program)"module.so";

and a few others. Doesn't appear to have any effect on the errors returned.

Has anyone successfully compiled PiCairo against the latest Pike
(7.9.5 from git)?

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Lance Dillon-2


> Coming back to this  one. I extracted the archive and ran 'pike -x
> module'; it said that it was an  old-style module. Compilation appeared
> to work, and a .so file made, but  attempting to load the module into
> Pike raised an 'undefined symbol' error  for "generic_error_offset".
> Poking around with other code using  generic_error_program suggests
> that this offset isn't needed; removing it  from the source caused
> another error on 'throw_severity'. This symbol appears  to be used in
> the Pike sources, so my guess is that something's wrong in  either the
> compile or the install.
>
> The only method of compiling that's  been at all successful is 'pike -x
> module'; is there a "compatibility mode"  for older modules?
>
> For installing, I used:
> $ sudo pike -x module  install
> $ sudo make install
> $ pike
> >  (program)"module.so";
>
> and a few others. Doesn't appear to have any effect  on the errors returned.
>
> Has anyone successfully compiled PiCairo against  the latest Pike
> (7.9.5 from git)?
>
> ChrisA
>
>

As I mentioned, it is an old module, possibly from 7.6 (before GTK2 was included
in 7.8).  It will probably need some modifications.  Let me take some time and
look at it and see what I can do.

lsd

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
On Sun, Nov 6, 2011 at 11:53 PM, Lance Dillon <[hidden email]> wrote:
>
> As I mentioned, it is an old module, possibly from 7.6 (before GTK2 was included
> in 7.8).  It will probably need some modifications.  Let me take some time and
> look at it and see what I can do.

Picking this up again.

I've managed to make picairo compile successfully using "pike -x
module" from current Pike, with only a few slight changes. A few more
make the examples work. Code's now up on github for convenience:

https://github.com/Rosuav/PiCairo

Is this something worth integrating into the Pike trunk, or should it
be kept separate?

NOTE: Tested only on Linux. I don't have a Windows build environment
at the moment.

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Arne Goedeke


On Mon, 28 Nov 2011, Chris Angelico wrote:

> On Sun, Nov 6, 2011 at 11:53 PM, Lance Dillon <[hidden email]> wrote:
>>
>> As I mentioned, it is an old module, possibly from 7.6 (before GTK2 was included
>> in 7.8).  It will probably need some modifications.  Let me take some time and
>> look at it and see what I can do.
>
> Picking this up again.
>
> I've managed to make picairo compile successfully using "pike -x
> module" from current Pike, with only a few slight changes. A few more
> make the examples work. Code's now up on github for convenience:
>
> https://github.com/Rosuav/PiCairo
>
> Is this something worth integrating into the Pike trunk, or should it
> be kept separate?
I think the general agreement is that things should get into main Pike.
Also, any particular reason not to use the cmod api to define programs?

arne
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
On Mon, Nov 28, 2011 at 7:31 AM, Arne Goedeke <[hidden email]> wrote:
>
> I think the general agreement is that things should get into main Pike.
> Also, any particular reason not to use the cmod api to define programs?

Only because the code already existed. I've done minimal changes so
far - just enough to get it to compile on Linux, not even testing it
on other platforms (since I don't have a build env for Windows, and I
don't have any other platforms to test on). Also, I'm not truly
competent with both APIs; I've done some very basic fiddling around
with cmod, and that's about it. If I can convince my boss that this is
important to the company, I'll explore it during this week; but I
doubt it is, since we don't do much graphical work (our primary
interface is the web browser).

Chris Angelico

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Arne Goedeke


On Mon, 28 Nov 2011, Chris Angelico wrote:

> On Mon, Nov 28, 2011 at 7:31 AM, Arne Goedeke <[hidden email]> wrote:
>>
>> I think the general agreement is that things should get into main Pike.
>> Also, any particular reason not to use the cmod api to define programs?
>
> Only because the code already existed. I've done minimal changes so
> far - just enough to get it to compile on Linux, not even testing it
> on other platforms (since I don't have a build env for Windows, and I
> don't have any other platforms to test on). Also, I'm not truly
> competent with both APIs; I've done some very basic fiddling around
> with cmod, and that's about it. If I can convince my boss that this is
> important to the company, I'll explore it during this week; but I
> doubt it is, since we don't do much graphical work (our primary
> interface is the web browser).

Yes, thats fine. Its not at all necessary to use that api, its imho
simply more convenient. You might get some more pull requests from me on
github.

arne

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Tobias S. Josefowitz
In reply to this post by Chris Angelico
On Sun, Nov 27, 2011 at 3:22 PM, Chris Angelico <[hidden email]> wrote:
> Is this something worth integrating into the Pike trunk, or should it
> be kept separate?

From http://pike.ida.liu.se/development/git/policies.xml:
"GPL code, for instance, can not be added to Pike, unless you also
happen to own it or have a copy under a license that allows you to do
so."
LGPL and MPL should be unsuitable, too, because "we consider all
contributions to Pike donations and claim copyright for the entire
Pike repository", which would go strongly against both LGPL and MPL.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
On Mon, Nov 28, 2011 at 8:17 AM, Tobias S. Josefowitz
<[hidden email]> wrote:

> On Sun, Nov 27, 2011 at 3:22 PM, Chris Angelico <[hidden email]> wrote:
>> Is this something worth integrating into the Pike trunk, or should it
>> be kept separate?
>
> From http://pike.ida.liu.se/development/git/policies.xml:
> "GPL code, for instance, can not be added to Pike, unless you also
> happen to own it or have a copy under a license that allows you to do
> so."
> LGPL and MPL should be unsuitable, too, because "we consider all
> contributions to Pike donations and claim copyright for the entire
> Pike repository", which would go strongly against both LGPL and MPL.
>

Ah. Forgot about that copyright transfer. So it'd have to be fully rewritten :(

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
On Mon, Nov 28, 2011 at 8:24 AM, Tobias S. Josefowitz
<[hidden email]> wrote:
> On Sun, Nov 27, 2011 at 10:20 PM, Chris Angelico <[hidden email]> wrote:
>> Ah. Forgot about that copyright transfer. So it'd have to be fully rewritten :(
>
> Or maybe, we could ask Dave Vest if he'd be so nice as to 'donate' his code...
>
> Do you know him by any chance, or did you just find picairo-0.9.tar.gz
> somewhere?
>

The code was emailed to me by Lance on this list (Oct 15, this
thread). That's all I know.

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Lance Dillon-2




----- Original Message ----

> From: Chris Angelico <[hidden email]>
> To: Pike mailinglist <[hidden email]>
> Sent: Sun, November 27, 2011 4:26:23 PM
> Subject: Re: GTK2.Gnome2Canvas not available
>
> On Mon, Nov 28, 2011 at 8:24 AM, Tobias S. Josefowitz
> <[hidden email]>  wrote:
> > On Sun, Nov 27, 2011 at 10:20 PM, Chris Angelico <[hidden email]> wrote:
> >> Ah.  Forgot about that copyright transfer. So it'd have to be fully
>rewritten  :(
> >
> > Or maybe, we could ask Dave Vest if he'd be so nice as to  'donate' his
>code...
> >
> > Do you know him by any chance, or did you  just find picairo-0.9.tar.gz
> > somewhere?
> >
>
> The code was  emailed to me by Lance on this list (Oct 15, this
> thread). That's all I  know.
>
> ChrisA
>
>

I still have the original emails that were sent to the list, on March 28 and 29
of 2006.  The site referenced in the email doesn't exist anymore, so this may be
the only copy.  I could forward them to the list, or it may be able to be
referenced from a list archive somewhere.

http://lists.lysator.liu.se/pipermail/pike-devel/2006-March/009722.html

That is the original announcement, and you can follow the thread for more
information.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Bill Welliver-2
If this is the same module as:

http://modules.gotpike.org/module_info.html?module_id=45

it's listed as GPL/LGPL/MPL, though that really doesn't help on the assignment of copyright front. If someone else wants to take over that module's listing, I can add them as developers on the module. Just let me know, though it'd be good if someone dropped David a note about it (assuming that someone hasn't already done so).

Bill

On Nov 27, 2011, at 4:47 PM, Lance Dillon wrote:

>
>
>
>
> ----- Original Message ----
>> From: Chris Angelico <[hidden email]>
>> To: Pike mailinglist <[hidden email]>
>> Sent: Sun, November 27, 2011 4:26:23 PM
>> Subject: Re: GTK2.Gnome2Canvas not available
>>
>> On Mon, Nov 28, 2011 at 8:24 AM, Tobias S. Josefowitz
>> <[hidden email]>  wrote:
>>> On Sun, Nov 27, 2011 at 10:20 PM, Chris Angelico <[hidden email]> wrote:
>>>> Ah.  Forgot about that copyright transfer. So it'd have to be fully
>> rewritten  :(
>>>
>>> Or maybe, we could ask Dave Vest if he'd be so nice as to  'donate' his
>> code...
>>>
>>> Do you know him by any chance, or did you  just find picairo-0.9.tar.gz
>>> somewhere?
>>>
>>
>> The code was  emailed to me by Lance on this list (Oct 15, this
>> thread). That's all I  know.
>>
>> ChrisA
>>
>>
>
> I still have the original emails that were sent to the list, on March 28 and 29
> of 2006.  The site referenced in the email doesn't exist anymore, so this may be
> the only copy.  I could forward them to the list, or it may be able to be
> referenced from a list archive somewhere.
>
> http://lists.lysator.liu.se/pipermail/pike-devel/2006-March/009722.html
>
> That is the original announcement, and you can follow the thread for more
> information.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
On Mon, Nov 28, 2011 at 9:08 AM, H. William Welliver III
<[hidden email]> wrote:
> If this is the same module as:
>
> http://modules.gotpike.org/module_info.html?module_id=45
>
> it's listed as GPL/LGPL/MPL, though that really doesn't help on the assignment of copyright front. If someone else wants to take over that module's listing, I can add them as developers on the module. Just let me know, though it'd be good if someone dropped David a note about it (assuming that someone hasn't already done so).

That looks like the same one. I'll check when I get home and see if
there's newer code than the version I have.

I'm happy to become a developer. Have never worked with gotpike, will
have to study up on that.

I sent an email to the original address (davve), and it didn't bounce,
so I'm hopeful.

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Chris Angelico
In reply to this post by Chris Angelico
On Mon, Nov 28, 2011 at 8:58 AM, Chris Angelico <[hidden email]> wrote:
> On Mon, Nov 28, 2011 at 8:36 AM, Tobias S. Josefowitz
> <[hidden email]> wrote:
>> As Cairo would certainly be a nice addition to Pike, I'm tempted to
>> mail Dave and ask his opinion on this. Unless you prefer to do it, of
>> course.
>
> I'll try emailing him, but his web site is just a blank blog (as it
> was back in Oct when I first checked).

He's still around, and has stated that he's happy for his code to be
merged into the Pike trunk according to the license terms. Is there
anything more formal to be done?

I'll tidy stuff up and put together a patch to add it as a module.
Does this belong in src/modules or src/post_modules? I've never really
understood the rule on what needs to go where.

ChrisA

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: GTK2.Gnome2Canvas not available

Martin Bähr
On Mon, Nov 28, 2011 at 07:38:08PM +1100, Chris Angelico wrote:
> >> As Cairo would certainly be a nice addition to Pike, I'm tempted to
> >> mail Dave and ask his opinion on this. Unless you prefer to do it, of
> >> course.
> > I'll try emailing him, but his web site is just a blank blog (as it
> > was back in Oct when I first checked).
> He's still around, and has stated that he's happy for his code to be
> merged into the Pike trunk according to the license terms. Is there
> anything more formal to be done?

great. i think it would be helpful if he could email the list directly,
with the code attached, or a clear indication which code is being talked
about, so that we have his statement on record. otherwise we'd have to
take your word for it, which i'd sure do, but some lawyers in the future
might not.

greetings, martin.
--
cooperative communication with sTeam      -     caudium, pike, roxen and unix
services:   debugging, programming, training, linux sysadmin, web development
--
pike programmer      working in china                   community.gotpike.org
foresight developer  (open-steam|caudium).org              foresightlinux.org
unix sysadmin        iaeste.at                                     realss.com
Martin Bähr          http://www.iaeste.at/~mbaehr/               is.schon.org

12
Loading...