1. wxEuphoria

Hi all
I gave up the SVGA thing a while ago when I discovered WxEuphoria. Installed it
on my Mandriva box
and it worked perfectly. Not quite satisfied with Mandriva I installed Ubuntu
and reinstalled
Euphoria/wxEuphoria. No problems with Euphoria but wxEuphoria will not work.
Error message
is "can't open wxeu.so", even tried with open_dll in a short program but it
couldn't
open the lib. I have seen some messages about this but I am not sure if you
found any solution.
Grateful for any help
John

new topic     » topic index » view message » categorize

2. Re: wxEuphoria

John Rebert wrote:
> 
> Hi all
> I gave up the SVGA thing a while ago when I discovered WxEuphoria. Installed
> it on
> my Mandriva box
> and it worked perfectly. Not quite satisfied with Mandriva I installed Ubuntu
> and reinstalled
> Euphoria/wxEuphoria. No problems with Euphoria but wxEuphoria will not work.
> Error
> message
> is "can't open wxeu.so", even tried with open_dll in a short program but it
> couldn't
> open the lib. I have seen some messages about this but I am not sure if you
> found any
> solution. 
> Grateful for any help
> John
> 


I haven't used Ubuntu, but it sounds like there is some binary incompatibility
going on, and the .so may need to be recompiled locally.  This basically 
boils down to getting the wxWidgets (v2.4.2) source, doing (see the 
install.txt that comes with the source for more details):

$ ./configure --with-gtk

...apply my patches, and...

$ make

...then copy the libwxgtk_2.4.so.0.0.1 (or whatever the actual file name is)
to /usr/lib/wxeu.so

And make sure you have a fair amount of spare time.  You may also need to 
install dome dev packages for things like gtk in order to build the library.
If you're able to get this to work, I'd be interested in posting a copy of
your binary so that other people with similar problems could use it.

Let me know if you have any questions.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

3. wxEuphoria

Matt,

Does wxEuphoria/wxWidgets have a provision for 2D graphics? In particular,
I'm wondering if a tile-based 2D game would work unmodified on all wxWidgets
platforms.

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxEuphoria

cklester wrote:
> 
> Matt,
> 
> Does wxEuphoria/wxWidgets have a provision for 2D graphics? In particular,
> I'm wondering if a tile-based 2D game would work unmodified on all wxWidgets
> platforms.

I'm not sure what you're looking for.  It can do simple things (take a look
at the mines.exw or freecell.exw demos).  If you're looking for something
more complex, you might try using SDL with wxEuphoria.  I'm about the
opposite of a graphics expert, though.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

5. wxEuphoria

OK, I've reupdated the file, downloaded it, and it appears to be good.

Chris, thanks for the advice on how to deal with the lib.  I'll probably do
something like that for the next release.

Matt Lewis



		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail

new topic     » goto parent     » topic index » view message » categorize

6. Re: wxEuphoria

Matt,

No Joy.

Downloaded the update file.. same problem as before. I checked to make sure
that I have/had the updated file in */euphoria/bin.. rebooted. same problem:
./wxEuphoria.e:57
A machine-level exception occurred during execution of this statement



Matt Lewis wrote:
> 
> OK, I've reupdated the file, downloaded it, and it appears to be good.
> 
> Chris, thanks for the advice on how to deal with the lib.  I'll probably do
> something like that for the next release.
> 
> Matt Lewis
> 
> 

Ken Rhodes
100% Microsoft Free!

new topic     » goto parent     » topic index » view message » categorize

7. Re: wxEuphoria

Hi

Downloaded latest lib from your site - works like a charm now.

Good job.

Can you post on your web site to do's - I would like to get involved
(in my meagre capacity) if that's ok with you.

Just looking at the code to see if I can make the libs cross
platform without change.

ex25.exw causes machine level exception - investigating.

wxIDE.ew won't load the database (have installed required libs)
- investigating.

Chris

new topic     » goto parent     » topic index » view message » categorize

8. Re: wxEuphoria

ChrisBurch2 wrote:

> 
> wxIDE.ew won't load the database (have installed required libs)
> - investigating.
> 
> Chris

I got the same error message... had to rename wxide.edb to wxIDE.edb.
then it worked fine.  

Suggestion for Matt - I wonder if some file names are somehow being
distorted in the compression, decompression process. I had written a
utility to convert unzipped files to lowercase when unzipping generic
euphoric files that were zipped under windows/dos because at one time
it seemed they were all being unzipped in upper case.

Suggestion for Matt.. how about using tar/gzip?





Ken Rhodes
100% Microsoft Free!

new topic     » goto parent     » topic index » view message » categorize

9. Re: wxEuphoria

Kenneth Rhodes wrote:
> 
> ChrisBurch2 wrote:
> 
> > 
> > wxIDE.ew won't load the database (have installed required libs)
> > - investigating.
> > 
> > Chris
> 
> I got the same error message... had to rename wxide.edb to wxIDE.edb.
> then it worked fine.  
> 
> Suggestion for Matt - I wonder if some file names are somehow being
> distorted in the compression, decompression process. I had written a
> utility to convert unzipped files to lowercase when unzipping generic
> euphoric files that were zipped under windows/dos because at one time
> it seemed they were all being unzipped in upper case.
> 
> Suggestion for Matt.. how about using tar/gzip?

Yes, I know I should be doing this.  The reason I didn't I think was 
because I still had some files on my windows machine, and combined them.

I'll try to be better about this in the future. :)

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

10. wxEuphoria

Hi

Started reading the docs, and the other includes - this is all c++ stuff,
and way way above my head. I'll try to play catch up, and see what comes
out, but good grief, don't hold your breath!

(On seconf thoughts I'm leaving cross platform compatibility to you too ! )

Chris



http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/

new topic     » goto parent     » topic index » view message » categorize

11. Re: wxEuphoria

Chris Burch wrote:
> 
> Hi
> 
> Started reading the docs, and the other includes - this is all c++ stuff,
> and way way above my head. I'll try to play catch up, and see what comes
> out, but good grief, don't hold your breath!

Yes, it's not for the faint of heart, although I think it's not so bad
as it first sounds.  For the most part, it's fairly straightforward to
wrap additional features.  The fun comes when a function returns something
by value (i.e., return an_object).  Then you need to write some C++.

If you look at the files in the dev package, you'll see that it's usually
pretty simple, and just adds a wrapper around the original function that
returns a pointer.  Then you have to add it to the database, so that the
new function is imported.
 
> (On seconf thoughts I'm leaving cross platform compatibility to you too ! )

:P

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

12. wxEuphoria

I just uploaded the latest release of wxEuphoria to 

http://wxeuphoria.sourceforge.net

...and submitted it to the recent user contributions.  It's basically a 
wrapper for wxWindows (erm...wxWidgets, as of today, apparently).  It's 
a cross platform GUI library written in C++.  I've got the Windows DLL 
and Linux SO (build on RH8), along with instructions on how to build 
them yourself with either BCC or gcc, if you prefer.  You'll also find 
the Windows and Linux wrappers there, along with several demos.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

13. Re: wxEuphoria

Congratulations Matt!  :) :) :)

I can't help but feel that the release of a truly
cross platform GUI library is a momentous event.

If only Derek, Judith, et al would drop win32 for wxEu
- would you?

Once again, Matt, thanks for pulling it off!



=====
Kenneth Rhodes
100% MicroSoft Free!

new topic     » goto parent     » topic index » view message » categorize

14. Re: wxEuphoria

----- Original Message ----- 
From: "Ken Rhodes" <ken_rhodes30436 at yahoo.com>
To: <EUforum at topica.com>
Subject: Re: wxEuphoria


> 
> 
> Congratulations Matt!  :) :) :)
> 
> I can't help but feel that the release of a truly
> cross platform GUI library is a momentous event.
> 
> If only Derek, Judith, et al would drop win32 for wxEu

Not likely. Win32lib was originally aimed at cross-platform development but one
either ends up with a lowest-common type of system, or a subset of possible
functionality, or a swiss-army-knife system.  wxWidgets is the best out there,
but that has taken the subset approach and does not pretend to cover all the
functionality of all the native GUI systems out there.

For example, how does one handle a right-mouse-down event in the Macintosh
platform?

> - would you?
> Once again, Matt, thanks for pulling it off!

Well done, Matt. 

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

15. wxEuphoria

I finally got wxWindows (v2.29)--as a DLL--working with Euphoria.  I've
ported the fractal demo that comes with the wxWindows source.  It's up on my
page:

http://www14.brinkster.com/matthewlewis/projects.html

There are 3 files:
wxEuphoria.zip  -- My source code
wx22_9d1.zip    -- DLL file 1
wx22_9d2.zip    -- DLL file 2

Unfortunately, Brinkster doesn't allow files greater than 1Mb (at least for
us cheapskates with the free accounts).  Also, my bandwidth is limited to
16Mb per day, so if you experience trouble, it may be that the limit has
been reached.  I split the DLL using PatRat's splitter utility.  In order to
get the DLL assembled, you'll need to unzip everything into a directory, and
then run install.ex.

I've included a copy of fptr.e with the code.  This new copy is required in
case others have the version that's been with EuCOM.  I've cleaned it up a
bit and added some things, made it easier to use.  I'll probably be
releasing it on its own here, soon.

But now I need to make some decisions, and ask for some help. :)  Jim Brown,
I think you volunteered for helping on the port to Linux, right. :)  Beyond
that, there are a lot of things to think about before the library gets
coded.  

I'm currently leaning towards doing things in a win32lib'ish manner, rather
than a wxWindows/C++ manner (which is how the demo is written), by which I
mean:

win32lib:
include win32lib.ew
-- create stuff
-- event handlers, etc
WinMain()

wxWindows:
include wxEuphoria.e
-- event handlers, etc
procedure init()
	-- create stuff
end procedure
WxMain() -- your init routine is called from here

David C, you probably have some thoughts about this.  In this respect, I
think wxBasic works sorta like win32lib (big surprise :).  Of course, there
will be lots of other details, like how to manage event handling, and,
obviously, making it all really cross platform.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

16. Re: wxEuphoria

Hi Matt,
   Your demo works fine on Win XP. Nice job.
   When u use Pat's splitter you have to include "split.dat" file
generated by the splitter, because it contains info to unsplit the
file.

Best Regards,
   Guillermo Bonvehi
   AKA: KNiXEUR - Caballero Rojo

--- Matthew Lewis <matthewwalkerlewis at YAHOO.COM> wrote:
> 
> 
> I finally got wxWindows (v2.29)--as a DLL--working with Euphoria. 
> I've
> ported the fractal demo that comes with the wxWindows source.  It's
> up on my
> page:
> 
> http://www14.brinkster.com/matthewlewis/projects.html
> 
> There are 3 files:
> wxEuphoria.zip  -- My source code
> wx22_9d1.zip    -- DLL file 1
> wx22_9d2.zip    -- DLL file 2
> 
> Unfortunately, Brinkster doesn't allow files greater than 1Mb (at
> least for
> us cheapskates with the free accounts).  Also, my bandwidth is
> limited to
> 16Mb per day, so if you experience trouble, it may be that the limit
> has
> been reached.  I split the DLL using PatRat's splitter utility.  In
> order to
> get the DLL assembled, you'll need to unzip everything into a
> directory, and
> then run install.ex.
> 
> I've included a copy of fptr.e with the code.  This new copy is
> required in
> case others have the version that's been with EuCOM.  I've cleaned it
> up a
> bit and added some things, made it easier to use.  I'll probably be
> releasing it on its own here, soon.
> 
> But now I need to make some decisions, and ask for some help. :)  Jim
> Brown,
> I think you volunteered for helping on the port to Linux, right. :) 
> Beyond
> that, there are a lot of things to think about before the library
> gets
> coded.  
> 
> I'm currently leaning towards doing things in a win32lib'ish manner,
> rather
> than a wxWindows/C++ manner (which is how the demo is written), by
> which I
> mean:
> 
> win32lib:
> include win32lib.ew
> -- create stuff
> -- event handlers, etc
> WinMain()
> 
> wxWindows:
> include wxEuphoria.e
> -- event handlers, etc
> procedure init()
> 	-- create stuff
> end procedure
> WxMain() -- your init routine is called from here
> 
> David C, you probably have some thoughts about this.  In this
> respect, I
> think wxBasic works sorta like win32lib (big surprise :).  Of course,
> there
> will be lots of other details, like how to manage event handling,
> and,
> obviously, making it all really cross platform.
> 
> Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

17. Re: wxEuphoria

On Mon, Feb 10, 2003 at 11:43:18AM -0500, Matthew Lewis wrote:
> I finally got wxWindows (v2.29)--as a DLL--working with Euphoria.  I've
> ported the fractal demo that comes with the wxWindows source.  It's up on my
> page:
> 
> http://www14.brinkster.com/matthewlewis/projects.html
> 
> There are 3 files:
> wxEuphoria.zip  -- My source code
> wx22_9d1.zip    -- DLL file 1
> wx22_9d2.zip    -- DLL file 2

I've downloaded your sources and am hacking as we speak. ;]

> 
> Unfortunately, Brinkster doesn't allow files greater than 1Mb (at least for
> us cheapskates with the free accounts).  Also, my bandwidth is limited to
> 16Mb per day, so if you experience trouble, it may be that the limit has
> been reached.  I split the DLL using PatRat's splitter utility.  In order to
> get the DLL assembled, you'll need to unzip everything into a directory, and
> then run install.ex.
> 

> I've included a copy of fptr.e with the code.  This new copy is required in
> case others have the version that's been with EuCOM.  I've cleaned it up a
> bit and added some things, made it easier to use.  I'll probably be
> releasing it on its own here, soon.
> 

Linux does C calls the cdecl way, not sure about C++ calls (I didnt finish
compling wxWindows yet (its been 16 hours so far) so I didn't get to test it
yet).

> But now I need to make some decisions, and ask for some help. :)  Jim Brown,
> I think you volunteered for helping on the port to Linux, right. :)  Beyond
> that, there are a lot of things to think about before the library gets
> coded.  
> 
> I'm currently leaning towards doing things in a win32lib'ish manner, rather
> than a wxWindows/C++ manner (which is how the demo is written), by which I
> mean:
> 
> win32lib:
> include win32lib.ew
> -- create stuff
> -- event handlers, etc
> WinMain()
> 
> wxWindows:
> include wxEuphoria.e
> -- event handlers, etc
> procedure init()
> 	-- create stuff
> end procedure
> WxMain() -- your init routine is called from here
> 
> David C, you probably have some thoughts about this.  In this respect, I
> think wxBasic works sorta like win32lib (big surprise :).  Of course, there
> will be lots of other details, like how to manage event handling, and,
> obviously, making it all really cross platform.
> 

Just Some Notes:

for cplusplus.e,

dlopen(x, or_bits(#001, #100)) is the same as LoadLibrary(x)
dlclose(x) is the same as FreeLibrary(x)
dlsym(x, y) is the same as GetProcAddress(x, y)

in wxEuphoria.e,

user32, xPeekMessage, etc. seem not to be needed. Why were they there in the
first place?

those are the only 2 files i've looked at, besides fptr.e

and, afai can tell, fptr.e's thiscall routines should work just fine
... I think.
However, I have not had the chance to test it yet, as I've ready said.

> Matt Lewis

jbrown

> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon              | 
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view message » categorize

18. Re: wxEuphoria

On Tue, Feb 11, 2003 at 07:19:12AM -0500, Matthew Lewis wrote:
> 
> 
> > From: jbrown1050 at hotpop.com [mailto:jbrown1050 at hotpop.com]
> 
> 
> > Linux does C calls the cdecl way, not sure about C++ calls (I 
> > didnt finish
> > compling wxWindows yet (its been 16 hours so far) so I didn't 
> > get to test it
> > yet).
> 
> I suspect that all calls will be done using cdecl, passing 'this' as the
> first parameter.  The thiscall thing seems to be MSVC specific.
> 

I just translated some C++ code into asm. I don't understand it however. :[
As far as I can tell, it appears to be cdecl ... not entirely sure
however.

Maybe I'll have g++ translate the code into preprocessed C. That should
be easier to read.

> 
> > Just Some Notes:
> > 
> > for cplusplus.e,
> > 
> > dlopen(x, or_bits(#001, #100)) is the same as LoadLibrary(x)
> > dlclose(x) is the same as FreeLibrary(x)
> > dlsym(x, y) is the same as GetProcAddress(x, y)
> > 
> > in wxEuphoria.e,
> > 
> > user32, xPeekMessage, etc. seem not to be needed. Why were 
> > they there in the
> > first place?
> 
> At some point, I was attempting to make my own message loop.  They never got
> deleted. 

Oh. What was the point of that? jw.

> There's really a lot that needs to be done to make it cross
> platform.  First, I think we're going to have to figure out how to import
> stuff under linux.  In windows, I can do it by ordinal (and can get a list
> of undecorated names using Dependency Walker), but I don't think you can do
> this using linux.  And, of course, there's the issue of calling conventions.

Well, the calling conventions should be easy enough to figure out.

In linux, the command 'nm' gets the list of symbols exported by a shared
library.
Not sure about ordinal however.

>  
> > those are the only 2 files i've looked at, besides fptr.e
> > 
> > and, afai can tell, fptr.e's thiscall routines should work just fine
> > ... I think.
> > However, I have not had the chance to test it yet, as I've ready said.
> 
> I suspect that you'll crash and burn using thiscall. :)

LOL

> 
> Matt Lewis
>  

jbrown

> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon              | 
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view message » categorize

19. Re: wxEuphoria

On Wed, Feb 12, 2003 at 07:24:03AM -0500, Matthew Lewis wrote:
> 
> 
> > From: jbrown1050 at hotpop.com [mailto:jbrown1050 at hotpop.com]
> 
> > I just translated some C++ code into asm. I don't understand 
> > it however. :[
> > As far as I can tell, it appears to be cdecl ... not entirely sure
> > however.
> > 
> > Maybe I'll have g++ translate the code into preprocessed C. 
> > That should
> > be easier to read.
> 
> Yes, from everything I've seen (not a whole lot), everything in linux should
> be cdecl, so that should be pretty simple.  I've started separating out code
> that's windows specific, so that a user would simply include wxWin.e or
> wxLinux.e.  There may also be certain classes that will be OS specific, but
> we'll just have to wait and see.  Rather than using call_thiscall directly,
> I've put call_member() in wxWin.e which calls call_thiscall().  In
> wxLinux.e, it would be call_cdecl().

You are right. I taken another look (or to be more accurate, many many many
many many many many many many more looks ... i really need to brush up on my
asm) at the code produced by g++ (the asm code, as the preprocess
option just creates code w/o the #include's and #define's and such).

The asm code for the C class, uses cdecl all the way, and the first parameter,
would appear to be the 'this' pointer. (I see the first parameter as "-8(%ebp)"
however ... not sure what that is, its AT&T syntax of course....)

> 
<snip>  
> 
> > In linux, the command 'nm' gets the list of symbols exported 
> > by a shared library.
> > Not sure about ordinal however.
> 
> I don't think Linux uses the concept of ordinals.  We'll just have to figure
> out what the undecorated names are.  I also created a file, wxDefsMsw.e,
> where I've wrapped the ordinals into constants, so they'll be easier to
> import as needed.  I expect we'd take the output of 'nm' and do the same.
>  
> Matt Lewis
> 

Well, nm gets the list of names from an executable and prints the names out,
along with the symbol's type and value. It has a demangle option, so the asm
names are converted back to readable C++ names.

We'd probably have to compare outputs of nm on the wxWindows .so file, once
with demangling and once without, and then import the functions in wxEuphoria
via the mangled names, as you have already guessed. If I can, I'll try to
write a function that can automaticly demangle the names directly, thus
avoiding the need to compare such a huge list of names for wxEuphoria with nm
.. twice.

jbrown

> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view message » categorize

20. Re: wxEuphoria

On Thu, Feb 13, 2003 at 10:33:25AM -0500, Matthew Lewis wrote:
> I forgot to mention that you'll want to turn threading off.  Look in
> setup.h.  I got errors when I compiled with threads.
> Change:
> #define wxUSE_THREADS 1
> to
> #define wxUSE_THREADS 0
> (or just comment out, I can't remember exactly how I did it)
> 

Oh. Well, if I get errors I'll do it that way as well ... I'm using wxX11 with
wxUniversal. (I'm thinking I might have wanted the wxGTK one instead tho.)
For now, I'm gonna wait for the compile to actually FINISH. (Been going on for
a few day now. :[ )

> Here's how I'm planning to separate Windows and Linux code.  First, I plan
> to group related classes together in their own include files, and to make
> them modular.  For instance, wxFrame and wxWindow will be in wxWindow.e.
> But there will be two additional include files for each .e file: a .ew and
> .eu.  The user will actually include the .ew/.ew files, so only the platform

I assume you meant ".ew/.eu" not ".ew/.ew"

> independant code can be put into the .e files.  All the import data is
> stored in the .ew file, so we won't have to worry about a 1meg include file
> for Hello World.  I've also put a _Platform constant in each .ew file so
> that it's possible to automatically identify when someone accidentally mixes
> windows and linux include files.
> 
> I've only done this conversion for wxWindow and wxFrame so far, but here's
> what the beginning of wxFractal.exw now looks like:
> 
> -- wxFractal.exw
> -- Matt Lewis
> 
> without warning
> include wxEuphoria.ew
> include wxWindow.ew
> include wxMenu.e
> include wxGraphics.e
> 
> object void
> 
> constant
> frame = create( wxFrame, {0, -1, "Fractal Mountains for wxWindows", -1, -1,
> 640, 480} ),
> canvas = create( wxWindow, {frame}),
> 
> menu = new_wxMenu( ),
> menu_bar = new_wxMenuBar(),
> 
> -- end sample
> 
> It's a lot clearer, and the program flow is just like that of a win32lib
> app.
> 
> Matt Lewis
>  

Yes. Sounds like a good idea to me.

As for the possibility of classes being dependant on platform, I'd doubt it,
in any case I'm using wxX11 (which provides only the most low-level primitives
needed, such as windows and graphics drawing) with wxUniversal (which emulates
all controls with the low-level drawing primitives from another wxWindows
library). Hence, if classes are platform-dependant, then I'll have the lowest
common denominator lib.
(Obviously, wxX11 needs wxUniversal, since raw Xlib provides no widgets at all,
however wxGTK and wxMSW can be compiled with wxUniversal iirc.)

jbrown

> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view message » categorize

21. Re: wxEuphoria

On Thu, Feb 13, 2003 at 07:31:34AM -0500, Matthew Lewis wrote:
> 
> 
> > From: jbrown1050 at hotpop.com [mailto:jbrown105 at speedymail.org]
> 
> > Well, nm gets the list of names from an executable and prints 
> > the names out,
> > along with the symbol's type and value. It has a demangle 
> > option, so the asm
> > names are converted back to readable C++ names.
> > 
> > We'd probably have to compare outputs of nm on the wxWindows 
> > .so file, once
> > with demangling and once without, and then import the 
> > functions in wxEuphoria
> > via the mangled names, as you have already guessed. If I can, 
> > I'll try to
> > write a function that can automaticly demangle the names 
> > directly, thus
> > avoiding the need to compare such a huge list of names for 
> > wxEuphoria with nm
> > .. twice.
> 
> That's exactly what we'll need.  What I did will the dll was to copy the
> unmangled names into Excel, and assigned them each the proper ordinal, and
> used that for reference.  Then I put that into a text file, and wrote a
> little program to wrap the ordinals for me.  I've now got a file that's
> slightly over 1Mb of constant declarations.  At some point, I'll need to
> break them up somehow, but I'm not sure how to do that when we'll have a
> similar list for the Linux version.
> 
> I've been working on making it into a real library.  Hopefully I'll have
> something worth looking at in a few days.
> 
> Matt Lewis
> 

I haven't even finished compiling wxWindows yet. :[ Its been going on for DAYS
now. *sigh*

If it ever finishes, I'll use nm on it twice, as said, and save the outputs.

Then, perhaps I can write a wrapper program that will write out an include
file which holds a table, for function name conversion.

I just made that sound a lot easier than it probably will be.

jbrown

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view message » categorize

22. Re: wxEuphoria

On Thu, Feb 13, 2003 at 02:52:49PM -0500, Matthew Lewis wrote:
> 
> 
> > From: jbrown1050 at hotpop.com [mailto:jbrown1050 at hotpop.com]
> 
> > Oh. Well, if I get errors I'll do it that way as well ... I'm 
> > using wxX11 with
> > wxUniversal. (I'm thinking I might have wanted the wxGTK one 
> > instead tho.)
> > For now, I'm gonna wait for the compile to actually FINISH. 
> > (Been going on for
> > a few day now. :[ )
> 
> Whew!  And I got impatient after a half hour.  What are the specs on the box
> where you're compiling?

366mhz, 32mb ram (5mb used for video card, SiS something, leaving 27mb free),
4 gig hd, 127mb of that used as a swap partion.

IOW, a very low-end machine. (But CHEAP! ;)

>  
> > Yes. Sounds like a good idea to me.
> > 
> > As for the possibility of classes being dependant on 
> > platform, I'd doubt it,
> > in any case I'm using wxX11 (which provides only the most 
> > low-level primitives
> > needed, such as windows and graphics drawing) with 
> > wxUniversal (which emulates
> > all controls with the low-level drawing primitives from 
> > another wxWindows
> > library). Hence, if classes are platform-dependant, then I'll 
> > have the lowest
> > common denominator lib.
> > (Obviously, wxX11 needs wxUniversal, since raw Xlib provides 
> > no widgets at all,
> > however wxGTK and wxMSW can be compiled with wxUniversal iirc.)
> 
> Most of the platform dependent things are the constants used to import the
> functions. 

Oh. That makes sense, considering that C++ name mangling is compiler-dependant.

> I wasn't aware that you could compile without using GTK--not
> that I looked into it very much.  I just opened the MSVC workspace file and
> let her rip.

Oh. Jw, are you using wxGTK under Windows, or the native wxWindows port (which
uses the Windows GUI directly via the WinAPI) ?

> 
> Matt Lewis
> 

jbrown

> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view message » categorize

23. Re: wxEuphoria

I haven't looked at the latest version of wxUniversal, but since:

1. On Linux, it emulates GTK
2. Almost all Linux boxes include the GTK library

it seemed a bit pointless to use wxUniversal, especially since it was sti=
ll=20
beta. Now, if it had the cool KDE file dialog, I'd switch to it in a=20
heartbeat. The GTK file dialog is pretty awful, and the rewrite won't be=20
ready until next September.

A small 'gotcha' I ran into when compiling the static version was that if=
 you=20
use certain libraries, you have to specifically note them as static:

  ./configure --with-gtk --with-opengl --disable-shared --enable-static
  --with-libjpeg_builtin --with-libpng_builtin --with-regex_builtin
  --with-libtiff_builtin --with-libzlib_builtin

I haven't had a chance to recompile my library yet to see if this takes c=
are=20
of all the dependancies.

Also, I'd suggest getting a hold of a Knoppix CD. Because it boots and ru=
ns=20
from CD, it's quite useful for checking dependancies.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

24. Re: wxEuphoria

On Sat, Feb 15, 2003 at 11:31:11AM -0800, David Cuny wrote:
> 
> I haven't looked at the latest version of wxUniversal, but since:
> 
> 1. On Linux, it emulates GTK
> 2. Almost all Linux boxes include the GTK library
> 
> it seemed a bit pointless to use wxUniversal, especially since it was still 
> beta. Now, if it had the cool KDE file dialog, I'd switch to it in a 
> heartbeat. The GTK file dialog is pretty awful, and the rewrite won't be 
> ready until next September.

Actually, it can emulate 1 of 3 widget sets, GTK, Win95, and a third which
escapes me at the moment.

Perhaps I should have just got wxGTK tho, compiling the GTK lib might not have
taken as long ...

> 
> A small 'gotcha' I ran into when compiling the static version was that if you 
> use certain libraries, you have to specifically note them as static:
> 
>   ./configure --with-gtk --with-opengl --disable-shared --enable-static
>   --with-libjpeg_builtin --with-libpng_builtin --with-regex_builtin
>   --with-libtiff_builtin --with-libzlib_builtin
> 
> I haven't had a chance to recompile my library yet to see if this takes care 
> of all the dependancies.
> 

I just used "./configure --with-x11" (which does "--with-universal" by
default), so I'm making shared libraries ...

... still not done yet btw. (I've stopped it in the meantime, used too much
of my cpu, so I'm only compiling perhaps 10 hours per day now, while I sleep.)

> Also, I'd suggest getting a hold of a Knoppix CD. Because it boots and runs 
> from CD, it's quite useful for checking dependancies.
> 
> -- David Cuny

jbrown

> 
> ==^^===============================================================
> This email was sent to: jbrown1050 at hotpop.com
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view message » categorize

25. wxEuphoria

I'm still a week or two from release of v0.2.0, but I've been 
considering releasing a bleeding edge version, and wanted to see if 
others would find it useful.  Basically, I plan to post source only, so 
you'll have to download the wxWidgets source (and apply my patch) and 
build the library yourself.

For those who don't know what I'm talking about:

http://wxeuphoria.sourceforge.net

Matt Lewis

PS I've progressed beyond the last news item that I posted, after 
successfully battling gcc most of this weekend.

new topic     » goto parent     » topic index » view message » categorize

26. wxEuphoria

I've put my latest work on wxEuphoria up on my web page:

http://www14.brinkster.com/matthewlewis/projects.html

I overhauled some of the guts, and have [partially] wrapped several new
classes and controls.  There's also an html help file, and I've ported many
(about 15) Win32Lib examples to use wxEuphoria.  If you've already
downloaded the DLL (2 parts) then you only need to download the lib.

Any feedback, comments, criticisms or suggestions are very welcome.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

27. Re: wxEuphoria

Matt Lewis wrote:

> I've put my latest work on wxEuphoria up on my web page:

Great! Any chance I might be able to get the source? I've been wanting to=
 make=20
a wxWindows DLL for my wrappers, but I'm an idiot when it comes to creati=
ng=20
DLLs - especialy for wxWindows, where the init stuff is buried in macros.

I'm not really worried about name mangling, since the wrappers take care =
of=20
that. I just want to know how to set up the DLL.

Thanks, and congratulations.!

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

28. Re: wxEuphoria

--part1_11a.1f7ca42d.2b9b7910_boundary

think you for the note but I feel that I need more time to digest the info 
already given.    I am currently still looking into the euphoria language, I 
am experienceing trouble in the starting of dos,euphoriawin,and euphoriaDOS 
shells.  I need to get a beginners handle on basic begining.  With out the 
ramp to come on board I fear it will take me more that a month to get it.  
But I am sure it will come into focus sooner or later.

--part1_11a.1f7ca42d.2b9b7910_boundary

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=
=3D"Arial" LANG=3D"0">think you for the note but I feel that I need more tim=
e to digest the info already given.&nbsp;&nbsp;&nbsp; I am currently still l=
ooking into the euphoria language, I am experienceing trouble in the startin=
g of dos,euphoriawin,and euphoriaDOS shells.&nbsp; I need to get a beginners=
 handle on basic begining.&nbsp; With out the ramp to come on board I fear i=
t will take me more that a month to get it.&nbsp; But I am sure it will come=
 into focus sooner or later.<BR>
--part1_11a.1f7ca42d.2b9b7910_boundary--

new topic     » goto parent     » topic index » view message » categorize

29. Re: wxEuphoria

--part1_63.19a51f49.2b9e52ed_boundary

    Say thats great.  Since you have it down.  Would you tell me how to use 
the dos window shell or what ever you are programming euphoria with, thanks.  
All I seem to be able to do is pull the shell up and it asks me for a file 
name.  Then says it cant open it then it says return.  What do I need to do?  


                                          sincerly the beginer. 


                                                                      


--part1_63.19a51f49.2b9e52ed_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=
=3D"Arial" LANG=3D"0">&nbsp;&nbsp;&nbsp; Say thats great.&nbsp; Since you ha=
ve it down.&nbsp; Would you tell me how to use the dos window shell or what=20=
ever you are programming euphoria with, thanks.&nbsp; All I seem to be able=20=
to do is pull the shell up and it asks me for a file name.&nbsp; Then says i=
t cant open it then it says return.&nbsp; What do I need to do?&nbsp; <BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; sincerly the beginer. <BR>
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
<P ALIGN=3DRIGHT><BR>
--part1_63.19a51f49.2b9e52ed_boundary--

new topic     » goto parent     » topic index » view message » categorize

30. Re: wxEuphoria

On Mon, 10 Mar 2003 07:07:29 -0500, Matthew Lewis
<matthewwalkerlewis at YAHOO.COM> wrote:

>Frankly, creating the DLL was the easiest part, you just have to have =
MSVC.

Or a helpful soul who kicks the whole process off.

I just felt like saying thanks, you know... that is the hardest part
for some here (everything is easy once you know how)

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu