1. Small problems with EuGTK and Eu 4.0
- Posted by RStowasser Nov 10, 2008
- 1185 views
Hello to the development team,
I modified Irv Mullins EuGTK library which is updated by Michael J. Sabal for version GTK 2.10 to run for Windows Vista and Eu4.0. Most of the time it was necessary to change the keywords label to Label, entry to Entry, insert to Insert etc.
I am using Gtk+ 2.12.9 Runtime Environment Revision 2 which should run with Win2000, XP and VISTA. The link for this I found here:
http://gladewin32.sourceforge.net/
The problem now is that the demos (some of them are intended to run with Linux and I did not check them further) will run very fine with Euphoria 3.11 but they will not run at all with Eu 4.0 rev 1227.
I do not know if there is a problem with Euphoria 4.0 or if I might have forgotten something in converting to Eu4.0, but I would like to show the differences:
The first error message is about resolving:
D:\Euphoria\gtk2Win\demos\alignment.exw:65
Errors resolving the following references:
C:\EUPHORIA\include\gtk2/hscale.gtk (60): Register
C:\EUPHORIA\include\gtk2/vscale.gtk (60): Register
etc
C:\EUPHORIA\include\gtk2/message_dialog.gtk (65): Register
Register(MESSAGEDIALOG, dialog:properties)
^
Press Enter
Register is declared in method.gtk which is included in controls.gtk which is included in wrapper.e. Eu 3.11 does not complain about missing Register.
After adding the include method.gtk statement in the above files I get other error messages coming from vbox.gtk, hbox.gtk and globals.gtk e.g.
C:\EUPHORIA\include\gtk2/vbox.gtk:44 in function vbox()
A machine-level exception occurred during execution of this statement
... called from D:\Euphoria\gtk2Win\demos\alignment.exw:28
> See ex.err
Press Enter...
If I try to run eu.ex I get errors like this:
C:\EUPHORIA\SOURCE40>exwc eu.ex
Euphoria Interpreter 4.0 (development) for 32-bit Windows.
SVN Revision 1227
Copyright (c) Rapid Deployment Software 2008
See http://www.RapidEuphoria.com/License.txt
file name to execute? d:\euphoria\gtk2win\demos\alignment.exw
C:\EUPHORIA\include\gtk2/vbox.gtk:42 in function vbox()
type_check error
spacing is -1.295837196e+307
... called from d:\euphoria\gtk2win\demos\alignment.exw:28
> see ex.err
Press Enter...
The statement in line 28 of alignment.exw is:
panel = vbox(0,0)
so spacing should be 0.
Could I send the modified EuGtk zip file to someone of the developers to see if I missed something by converting the .gtk files or if there could be a hidden bug in Eu40? (rev 1227) As I did nothing special with the library and demo files the problems should arise with Linux too?
Roland
2. Re: Small problems with EuGTK and Eu 4.0
- Posted by mattlewis (admin) Nov 10, 2008
- 1189 views
Hello to the development team,
I modified Irv Mullins EuGTK library which is updated by Michael J. Sabal for version GTK 2.10 to run for Windows Vista and Eu4.0. Most of the time it was necessary to change the keywords label to Label, entry to Entry, insert to Insert etc.
I think you may be using an older version of Irv's library. He's been updating it lately. The latest version (4.0.6) was updated on Oct 22 2008, and supposedly running with r1217:
http://etcwebspace.com/users/irvm/
Matt
3. Re: Small problems with EuGTK and Eu 4.0
- Posted by irv Nov 10, 2008
- 1112 views
Be aware that the new version (also available from RDS user contributions page) is only for Linux. I have neither the time nor any interest in getting it to work on Windows. Anyone who wants to try is welcome to do so, the new version is much simpler and easier to understand.