Re: [Chicken-users] qt & dbus eggs

2010-04-07 Thread Andrei Barbu
Ah, you're right. I made chicken-qt depend on just libqt4-maemo5-core,
I'll add in the other packages as well.

This will do the trick (it's overkill, but they're optified so it
doesn't really matter; I'll figure out which subset is actually
required):
apt-get install libqt4-appdownloader-comm libqt4-assistant libqt4-core
libqt4-dbus libqt4-designer libqt4-gui libqt4-help libqt4-maemo5-core
libqt4-maemo5-dbus libqt4-maemo5-gui libqt4-maemo5-maemo5
libqt4-maemo5-network libqt4-maemo5-opengl libqt4-maemo5-script
libqt4-maemo5-svg libqt4-maemo5-test libqt4-maemo5-xml libqt4-network
libqt4-opengl libqt4-phonon libqt4-script libqt4-sql libqt4-sql-sqlite
libqt4-svg libqt4-test libqt4-webkit libqt4-xml libqt4-xmlpatterns



Andrei

On Thu, Apr 8, 2010 at 02:18, Matthew Welland  wrote:
>
> I need to update something on the n900?
>
> Error: (load) unable to load compiled module
> "/usr/lib/chicken/5/qt.so"
> "libQtMaemo5.so.4: cannot open shared object file: No such file or directory"
>
>        Call history:
>
>                        (##core#begin (##sys#load-library (quote
> utils) #f))
>                        (##sys#load-library (quote utils) #f)
>                        (quote utils)
>                        (##core#begin (##core#begin
> (##core#undefined)) (##core#undefined))
>                        (##core#begin (##core#undefined))
>                        (##core#undefined)
>                        (##core#undefined)
>                  (##sys#require (quote qt))      <--
>
> On Wednesday 07 April 2010 10:08:54 pm Andrei Barbu wrote:
>> On Wed, Apr 7, 2010 at 23:33, Matthew Welland  wrote:
>> > On Wednesday 07 April 2010 01:23:16 pm Andrei Barbu wrote:
>> >> Hi,
>> >>
>> >> I'm working on getting chicken into shape for writing applications on
>> >> the Nokia N900. I've made a lot of changes to the qt egg over the past
>> >> few weeks if anyone is interested in a upgraded version.
>> >
>> > Yes, very interested! Me and my n900 thank you profusely. Trying it out
>> > now. Any chance at getting sqlite? How do you plan to handle other
>> > eggs?
>>
>> Sure, it's in the binary mirrors along with its dependencies. You can
>> just do an apt-get update; apt-get install chicken-sqlite3 . The tests
>> included in the egg all passed on my n900.
>>
>> I haven't had a need to make a long term plan for other eggs yet.
>> Obviously pulling them into my repository is a really bad idea, since
>> the vast majority won't need any changes. The procedure for creating
>> new eggs is really easy though, cd to the repository, chicken-install
>> -r name, debianize-egg/debianize-egg name, if that fails see what
>> dependency caused it to fail, rise and repeat, and you end up with a
>> bunch of debs.
>> I think I'll write a quick script tomorrow to automate the recursive
>> fetching and pushing into the deb repository, that should pretty much
>> do it for most of the eggs, and it'll let me purge a few of them from
>> my source repository.
>>
>>
>>
>> Andrei
>
>


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] qt & dbus eggs

2010-04-07 Thread Andrei Barbu
On Wed, Apr 7, 2010 at 23:33, Matthew Welland  wrote:
> On Wednesday 07 April 2010 01:23:16 pm Andrei Barbu wrote:
>> Hi,
>>
>> I'm working on getting chicken into shape for writing applications on
>> the Nokia N900. I've made a lot of changes to the qt egg over the past
>> few weeks if anyone is interested in a upgraded version.
>
> Yes, very interested! Me and my n900 thank you profusely. Trying it out now.
> Any chance at getting sqlite? How do you plan to handle other eggs?
>

Sure, it's in the binary mirrors along with its dependencies. You can
just do an apt-get update; apt-get install chicken-sqlite3 . The tests
included in the egg all passed on my n900.

I haven't had a need to make a long term plan for other eggs yet.
Obviously pulling them into my repository is a really bad idea, since
the vast majority won't need any changes. The procedure for creating
new eggs is really easy though, cd to the repository, chicken-install
-r name, debianize-egg/debianize-egg name, if that fails see what
dependency caused it to fail, rise and repeat, and you end up with a
bunch of debs.
I think I'll write a quick script tomorrow to automate the recursive
fetching and pushing into the deb repository, that should pretty much
do it for most of the eggs, and it'll let me purge a few of them from
my source repository.



Andrei


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] qt & dbus eggs

2010-04-07 Thread Matthew Welland
On Wednesday 07 April 2010 01:23:16 pm Andrei Barbu wrote:
> Hi,
>
> I'm working on getting chicken into shape for writing applications on
> the Nokia N900. I've made a lot of changes to the qt egg over the past
> few weeks if anyone is interested in a upgraded version.

Yes, very interested! Me and my n900 thank you profusely. Trying it out now. 
Any chance at getting sqlite? How do you plan to handle other eggs? 

> Some highlights:
>  - support for qobject attributes
>  - qvariantlist and qvariant are supported so interfacing with qt is a
>lot more natural
>  - removed the simple receiver and replaced it with an object that
>crafts the correct slot on request
>  - arbitrary number of arguments to slots and support for some common
>argument types (although notably pointers aren't yet handled)
>  - invoking arbitrary qt methods/signals/slots
>  - support for qt-maemo (stackable windows and various information boxes)
>  - it now builds in c++ so that making bindings is faster
>  - qt-dbus is now supported so that polling isn't required, it too
>works with an arbitrary number of arguments and provides all of the
>basic capabilities: receiving/sending dbus signals, method
>invocation, and exposing methods over dbus
>  - 0% cpu usage when idle so it's battery-friendly
>  - it's debianized along with its dependencies so that it can be
>deployed to the n900
>  - ported the dbus egg to version 4
>
> qt-networking support should be in later today/tomorrow.
>
> The updated qt & dbus eggs along with debianized versions of their
> dependencies (easyffi, foreigners, matchable, miscmacros, protobj,
> silex, and test) are at: http://0xab.com/code/n900-chicken.git
> There's also a tiny script for quickly debianizing eggs with correct
> dependencies, perhaps someone is interested in reviving the
> debianization effort.
>
> The qt egg is still a work in progress and there's a lot that needs to
> change. It's stable and runs all of the examples (modulo api
> changes) from the svn egg, it has a superset of the features, as well
> as a new test suite. If there's any interest I can submit patches
> against the svn version (for qt and/or dbus).
>
> I'm new to low-level hacking with chicken, I'd appreciate any comments
> if I've abused the ffi/gc in some horrendous/unsafe way.
>
> If anyone else that has an n900 and wants to play with chicken, it's
> easy. Take a look at http://0xab.com/n900 . I have a debian repository
> with optified versions of chicken, chicken-qt and friends, along with
> some example programs for it that show off things like stackable
> windows and screen rotation.
>
> As soon as I figure out how you document eggs these days I'll put up
> some docs as well.
>
>
>
> Andrei
>
>
> ___
> Chicken-users mailing list
> Chicken-users@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/chicken-users



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread John Cowan
Ivan Raikov scripsit:

>   I use the pyffi library to call the UNO functions of OpenOffice from
> Scheme. It works ok since Python is well integrated with C. I am not
> familiar with the C interface of FreeBasic, but you can take a look at
> pyffi to see how it is structured.

FreeBasic uses the gcc toolchain, except that it generates x86 assembly
language suitable for gas(1) rather than C.  It can therefore generate
compatible shared libraries.  Name mangling is compatible with the
C++ ABI if you use Extern "C++" ... End Extern.

So there should be no barriers.

-- 
By Elbereth and Luthien the Fair, you shall co...@ccil.org
have neither the Ring nor me!  --Frodo  http://www.ccil.org/~cowan


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Ivan Raikov

Hello,

  I use the pyffi library to call the UNO functions of OpenOffice from
Scheme. It works ok since Python is well integrated with C. I am not
familiar with the C interface of FreeBasic, but you can take a look at
pyffi to see how it is structured.

   -Ivan

Karl Winterling  writes:

> Hi,
>
> I sort of wanted to know if anyone uses Chicken with systems languages
> other than C and C++, like, say, FreeBasic. It might be neat to have
> an egg for gfxlib.
>
> ---Karl


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Karl Winterling
Chicken -> C -> FreeBasic -> C -> Chicken

On Wed, Apr 7, 2010 at 5:27 PM, Stephen Eilert  wrote:
> On Wed, Apr 7, 2010 at 5:47 PM, Karl Winterling  wrote:
>> Hi,
>>
>> I sort of wanted to know if anyone uses Chicken with systems languages
>> other than C and C++, like, say, FreeBasic. It might be neat to have
>> an egg for gfxlib.
>>
>> ---Karl
>>
>>
>
> How would this interface be accomplished?
>
>
> --Stephen
>
> programmer, n:
>        A red eyed, mumbling mammal capable of conversing with
> inanimate monsters.
>


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Stephen Eilert
On Wed, Apr 7, 2010 at 5:47 PM, Karl Winterling  wrote:
> Hi,
>
> I sort of wanted to know if anyone uses Chicken with systems languages
> other than C and C++, like, say, FreeBasic. It might be neat to have
> an egg for gfxlib.
>
> ---Karl
>
>

How would this interface be accomplished?


--Stephen

programmer, n:
A red eyed, mumbling mammal capable of conversing with
inanimate monsters.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Interfacing to Non-C Languages

2010-04-07 Thread Karl Winterling
Hi,

I sort of wanted to know if anyone uses Chicken with systems languages
other than C and C++, like, say, FreeBasic. It might be neat to have
an egg for gfxlib.

---Karl


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] qt & dbus eggs

2010-04-07 Thread Andrei Barbu
Hi,

I'm working on getting chicken into shape for writing applications on
the Nokia N900. I've made a lot of changes to the qt egg over the past
few weeks if anyone is interested in a upgraded version.

Some highlights:
 - support for qobject attributes
 - qvariantlist and qvariant are supported so interfacing with qt is a
   lot more natural
 - removed the simple receiver and replaced it with an object that
   crafts the correct slot on request
 - arbitrary number of arguments to slots and support for some common
   argument types (although notably pointers aren't yet handled)
 - invoking arbitrary qt methods/signals/slots
 - support for qt-maemo (stackable windows and various information boxes)
 - it now builds in c++ so that making bindings is faster
 - qt-dbus is now supported so that polling isn't required, it too
   works with an arbitrary number of arguments and provides all of the
   basic capabilities: receiving/sending dbus signals, method
   invocation, and exposing methods over dbus
 - 0% cpu usage when idle so it's battery-friendly
 - it's debianized along with its dependencies so that it can be
   deployed to the n900
 - ported the dbus egg to version 4

qt-networking support should be in later today/tomorrow.

The updated qt & dbus eggs along with debianized versions of their
dependencies (easyffi, foreigners, matchable, miscmacros, protobj,
silex, and test) are at: http://0xab.com/code/n900-chicken.git
There's also a tiny script for quickly debianizing eggs with correct
dependencies, perhaps someone is interested in reviving the
debianization effort.

The qt egg is still a work in progress and there's a lot that needs to
change. It's stable and runs all of the examples (modulo api
changes) from the svn egg, it has a superset of the features, as well
as a new test suite. If there's any interest I can submit patches
against the svn version (for qt and/or dbus).

I'm new to low-level hacking with chicken, I'd appreciate any comments
if I've abused the ffi/gc in some horrendous/unsafe way.

If anyone else that has an n900 and wants to play with chicken, it's
easy. Take a look at http://0xab.com/n900 . I have a debian repository
with optified versions of chicken, chicken-qt and friends, along with
some example programs for it that show off things like stackable
windows and screen rotation.

As soon as I figure out how you document eggs these days I'll put up
some docs as well.



Andrei


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Documentation problem (eggs tutorial and Extensions section from the manual)

2010-04-07 Thread felix

Jeronimo Pellegrini schrieb:

On Mon, Apr 05, 2010 at 02:16:24PM +0200, Peter Bex wrote:

It might have not been updated properly.  It's a good idea to add some
instructions on providing a module to the tutorial.  Feel free to add it.


OK, I added instructions on how to create modules exporting syntax
(for lack of a nicer example I used a "prog1" macro plus a silly
procedure). I also changed the basic hello.scm example to
REQUIRE-LIBRARY instead of REQUIRE-EXTENSION.

I don't know if my explanation is OK; it would be nice if someone could
review it.


Very good. Thanks, Jernonimo! I have made a few trivial changes, which I
hope you can agree with.


cheers,
felix



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] xsvnwiki-discuss

2010-04-07 Thread felix

Hello!


Sometimes I get "xsvnwiki-discuss" directories when checking out the
wiki from svn. The filenames used in these directories can not be
checked out on Windows machines, so I'll nuke these files
ruthlessly. Just in case someone wonders.


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] chicken-install from behind a proxy

2010-04-07 Thread Paul Romanchenko
Hmm, when trying to repeat the problem gone.
Either it was fixed on server side or proxy.

On Wed, Apr 7, 2010 at 1:47 PM, felix
 wrote:
> Paul Romanchenko schrieb:
>>
>> Hi, I have the following problem when trying to install egg being behind
>> proxy:
>> chicken-install -proxy proxy:2270 base64
>> mapped (base64) to (base64)
>> retrieving ...
>> connecting to host "chicken.kitten-technologies.co.uk", port 80 (via
>> proxy:2270) ...
>> requesting "/henrietta.cgi?name=base64" ...
>> reading response ...
>> HTTP/1.1 200 OK
>> Date: Tue, 06 Apr 2010 10:47:13 GMT
>> Server: Apache
>> Content-Type: text/plain
>> Content-length: 24412
>> Connection: close
>> X-WIZOR-Request: p...@30998428
>> reading files ...
>>  ./base64-test.scm
>>
>> Error: invalid file name - possibly corrupt transmission:
>> |\|#|
>>
>>
>> Seems like I'm not alone:
>> http://lists.gnu.org/archive/html/chicken-users/2009-11/msg00049.html
>> Any news?
>>
>
> Paul, can you use netcat or telnet and send me the complete
> HTTP response you get from the proxy?
>
>
> cheers,
> felix
>
>



-- 
rmrfchik.


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] chicken-install from behind a proxy

2010-04-07 Thread felix

Paul Romanchenko schrieb:

Hi, I have the following problem when trying to install egg being behind proxy:
chicken-install -proxy proxy:2270 base64
mapped (base64) to (base64)
retrieving ...
connecting to host "chicken.kitten-technologies.co.uk", port 80 (via
proxy:2270) ...
requesting "/henrietta.cgi?name=base64" ...
reading response ...
HTTP/1.1 200 OK
Date: Tue, 06 Apr 2010 10:47:13 GMT
Server: Apache
Content-Type: text/plain
Content-length: 24412
Connection: close
X-WIZOR-Request: p...@30998428
reading files ...
  ./base64-test.scm

Error: invalid file name - possibly corrupt transmission: |\|#|


Seems like I'm not alone:
http://lists.gnu.org/archive/html/chicken-users/2009-11/msg00049.html
Any news?



Paul, can you use netcat or telnet and send me the complete
HTTP response you get from the proxy?


cheers,
felix



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Bounty for an egg or two.

2010-04-07 Thread felix

Matthew Welland schrieb:
Thanks Ivan and Felix for taking a look. 

FastGEO looks promising, I'll dig a little deeper into it. Can you comment 
on how tough creating an interface to gpc would be? I see that it has 
Haskell, Java, Lua, Octave, Perl, Python etc. bindings which might indicate 
it is a bit easier to interface to than cgal.


GPC has a quite small API - it should be very easy to write a wrapper
for it. Note that is only free for non-commercial use.


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users