Author Topic: Chess Engine/frontend  (Read 5782 times)

pungipungi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://members.cheese.at/woody/zaurus
Chess Engine/frontend
« on: August 19, 2005, 06:31:16 pm »
I wondered if anyone uses a chess engine under gpe. So far I didn't find any hint  ...

After two weeks setting up my bitbake/compile environment and getting the first gpe program compiled, I've seen that also the fltk lib is available.

For personal tests I did a little port of my old agenda frontend  and recompiled gnuchess for the zaurus.

[img]http://members.cheese.at/woody/fltk-chess/fltk-chess-small.png\" border=\"0\" class=\"linked-image\" /]
click to enlarge

Beware the colours are much nicer on the zaurus ....

If there is any interest I will publish the sources ....
SL5500G OZ3.5.3 (GPE) , SD 1G,   D-Link air 660 wlan
C1000 pdaXrom, SD 256, D-Link air 660 wlan
Suse 9.3
My Zaurus Page

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Chess Engine/frontend
« Reply #1 on: August 22, 2005, 06:27:43 am »
How simple is the compile? Put together a .bb file for it and add it to OE,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

pungipungi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://members.cheese.at/woody/zaurus
Chess Engine/frontend
« Reply #2 on: August 23, 2005, 10:39:12 am »
It's based on the fltk-lib as provided by the 3.5.3 development tree.

The GUI is very simple. It's only one simple make file, one source code file,  a header file , some pixmaps ...

The only pitty is that I'm not used to writing bb files. I've tried one very simple for gnuchess (without patches) and it seems to work. I will try to write another one for the frontend soon ...

By the way, in older versions there was a gnuchess package available. But I can't find a bb file. Is this caused by switching to oe?

At the moment I've transfered an ipkg to my webpage. It includes an extra set of X libraries since my production for 3.5.3 complains for a missing symbol when using it with the standard X11 lib delivered with 3.5.3.
I haven't checked yet if my X11 libs can be used with all the other gpe and X11 stuff delivered with 3.5.3.
SL5500G OZ3.5.3 (GPE) , SD 1G,   D-Link air 660 wlan
C1000 pdaXrom, SD 256, D-Link air 660 wlan
Suse 9.3
My Zaurus Page

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Chess Engine/frontend
« Reply #3 on: August 23, 2005, 11:58:14 am »
Quote
By the way, in older versions there was a gnuchess
package available. But I can't find a bb file. Is this caused
by switching to oe?

In older versions of what? OpenZaurus? If you mean that gnuchess was available before OE was used, then perhaps it simply a case of no-one having added it. There are a couple of chess programs in there already - phalanx and knights, though it looks like both are for Opie.

Quote
It includes an extra set of X libraries since my
production for 3.5.3 complains for a missing symbol when using
it with the standard X11 lib delivered with 3.5.3.

Hmm, this is an fltk error I assume? I think this is because 3.5.3 uses diet-x11 by default. I ran into this problem when I was messing about with Giac. If you specify that you want to use the full-fat version of the X11 libs then this will go away. A more long term solution is to see what fltk needs the full-fat libs for and see if it can be patched to remove the requirement and allow it to use diet-x11.


Si
« Last Edit: August 23, 2005, 11:58:55 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

pungipungi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://members.cheese.at/woody/zaurus
Chess Engine/frontend
« Reply #4 on: August 23, 2005, 12:32:40 pm »
Quote
In older versions of what? OpenZaurus? If you mean that gnuchess was available before OE was used, then perhaps it simply a case of no-one having added it. There are a couple of chess programs in there already - phalanx and knights, though it looks like both are for Opie.

Yes openzaurus but don't know which version ...
knights is definitive a qt application.
phalanx defines as section opie/libs but I'm not sure if it is really a qt application since it's also used as chess engine for knights (which acts as frontend).

Quote
Hmm, this is an fltk error I assume? I think this is because 3.5.3 uses diet-x11 by default. I ran into this problem when I was messing about with Giac. If you specify that you want to use the full-fat version of the X11 libs then this will go away. A more long term solution is to see what fltk needs the full-fat libs for and see if it can be patched to remove the requirement and allow it to use diet-x11.

Uuups ... good point I have to check which libraries fltk-chess uses at the moment ...
(at least I was glad to have a running bitbake based building environment after struggling around two weeks with to less memory, wrong bitbake versions, missing archives, .... )

Good news concerning bb files. I've managed to make a very raw dirty version for gnuchess and another for my fltk-chess frontend. So I'm on the way ...
SL5500G OZ3.5.3 (GPE) , SD 1G,   D-Link air 660 wlan
C1000 pdaXrom, SD 256, D-Link air 660 wlan
Suse 9.3
My Zaurus Page

pungipungi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://members.cheese.at/woody/zaurus
Chess Engine/frontend
« Reply #5 on: August 27, 2005, 03:58:58 am »
I've placed 2 archives and the bb files for gnuchess and the fltk-chess frontend on my Webpage.

Not sure if the bb files are already correct. They worked in my local configuration (with archives loaded to ~/sources). Maybe somebody can try it .....


I edited your post as the URL was wrong - Lardman
Thanks ...
« Last Edit: August 27, 2005, 12:38:21 pm by pungipungi »
SL5500G OZ3.5.3 (GPE) , SD 1G,   D-Link air 660 wlan
C1000 pdaXrom, SD 256, D-Link air 660 wlan
Suse 9.3
My Zaurus Page

pungipungi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://members.cheese.at/woody/zaurus
Chess Engine/frontend
« Reply #6 on: October 16, 2005, 05:22:16 pm »
Quote
Hmm, this is an fltk error I assume? I think this is because 3.5.3 uses diet-x11 by default. I ran into this problem when I was messing about with Giac. If you specify that you want to use the full-fat version of the X11 libs then this will go away. A more long term solution is to see what fltk needs the full-fat libs for and see if it can be patched to remove the requirement and allow it to use diet-x11.

You were right. I've changed fltk a bit to make it run also with the diet-X11 libs. Therefore I've eliminated the XOpenIM call which is not part of diet-x11. But it works nevertheless ...
I've placed the result (based on koen's feed on)
http://members.kabsi.at/woody/feed/
SL5500G OZ3.5.3 (GPE) , SD 1G,   D-Link air 660 wlan
C1000 pdaXrom, SD 256, D-Link air 660 wlan
Suse 9.3
My Zaurus Page

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Chess Engine/frontend
« Reply #7 on: October 17, 2005, 06:02:16 am »
Have they been added in? (not at uni so I can't look at my dev machine atm)

If not, and you're happy to maintain them, create a bug on the bug-tracker and set the type as 'enhancement' and give an explanantion of what you're providing & attach the .bbs


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Chess Engine/frontend
« Reply #8 on: October 17, 2005, 07:35:47 am »
I changed the .bbs a bit and put them at http://dominion.kabel.utwente.nl/koen/OE/
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Chess Engine/frontend
« Reply #9 on: October 17, 2005, 07:45:55 am »
Quote
You were right. I've changed fltk a bit to make it run also with the diet-X11 libs. Therefore I've eliminated the XOpenIM call which is not part of diet-x11. But it works nevertheless ...

[div align=\"right\"][a href=\"index.php?act=findpost&pid=99614\"][{POST_SNAPBACK}][/a][/div]

Do you have a patch for fltk? I think that would be a good addition to the fltk in OE
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

pungipungi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://members.cheese.at/woody/zaurus
Chess Engine/frontend
« Reply #10 on: October 17, 2005, 12:35:10 pm »
Quote
Do you have a patch for fltk? I think that would be a good addition to the fltk in OE

http://members.cheese.at/woody/patches/
SL5500G OZ3.5.3 (GPE) , SD 1G,   D-Link air 660 wlan
C1000 pdaXrom, SD 256, D-Link air 660 wlan
Suse 9.3
My Zaurus Page