1. DLL binding

Sorry again for my newbie questions and for my not very good english, hope
this will be better and better with the time, and thank you for the ones
who answered my questions, specially about an ide written in delphi.
I found this community very friendly and technically very good.

Anyway this is a last newbie question, i did not find in my registered
package a bind command to produce DLLs.
Is it possible to compile to DLLs and to Linux SO libraries with euphoria ?
Plus, my goal with using euphoria is to compile both for windows and linux
the same programs, how to do that easily (compatibility between Linux
XWindows and Windows GDI) ?

Thank You
Thierry.

new topic     » topic index » view message » categorize

2. Re: DLL binding

---- Begin Original Message ----
 From: SUBSCRIBE EUPHORIA Thierry
<ANIROM at WANADOO.FR>
Sent: Fri, 7 Jul 2000 11:02:08 -0400
To: EUPHORIA at LISTSERV.MUOHIO.EDU
Subject: DLL binding

Sorry again for my newbie questions and for my
not very good english, hope
this will be better and better with the time, and
thank you for the ones
who answered my questions, specially about an ide
written in delphi.
I found this community very friendly and
technically very good.

Anyway this is a last newbie question, i did not
find in my registered
package a bind command to produce DLLs.
Is it possible to compile to DLLs and to Linux SO
libraries with euphoria ?
----
Not yet, though you're not the first person to
bring up this idea so hopefully....
----
Plus, my goal with using euphoria is to compile
both for windows and linux
the same programs, how to do that easily
(compatibility between Linux
XWindows and Windows GDI) ?
----------
It's possible, but tricky I would take a look at
Dave Cunny's(Dave did I spell that right?) Llama
library

-E.Allen Soard
----------
Thank You
Thierry.

---- End Original Message ----


Bookmark the HyperMart Small Business Center. All the tools you need to
succeed!
http://www.hypermart.net/center/

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

3. Re: DLL binding

Thierry wrote:

> Plus, my goal with using euphoria is to compile
> both for windows and linux the same programs, how
> to do that easily (compatibility between Linux
> XWindows and Windows GDI) ?

Unfortunately, there is no complete library that runs in both Windows and
Linux. At one point, I was actively working on a library called Llama
(http://www.lanset.com/dcuny/llama.htm). On the Windows side, it makes
direct calls to the Windows GDI. On the Linux size, it calls the GTK+
library. I stopped working on the library when I started running into
problems working with the GTK+ data structures because my conversion of the
GTK+ include files was buggy. There were also a few cross-platform issues.
While the Llama stuff is incomplete and a bit buggy, the code is still
probably good enough to be useful.

[side note: Having a library like SWIG (http://www.swig.org/index.html) that
automatically generated wrappers for Euphoria would be *very* helpful.
Anyone wanna write one?]

I also made an abortive attempt to write a low-level API library that would
run on Windows, DOS and X Windows called the Portable Windows Library
(http://www.lanset.com/dcuny/mwin.htm). It wasn't a bad idea, I just never
finished it. If you want low-level GDI compatibility, you might want to take
a look at it. Unfortunately, the X Window portion is the least finished of
the libraries.

Irv Mullins has wrapped GraphApp
(http://www.cs.usyd.edu.au/~loki/graphapp/), which is a cross-platform
library running on Windows, X Windows and the Macintosh. You can find his
library at the Euphoria site. Unfortunately, I've been told that there are
serious problems that prevent the Windows version of the library from being
usable by Euphoria, so it's pretty much a X Windows only port.

A viable option is to write your own wrapper, using GraphApp for Linux, and
Win32Lib for Windows. It would be a kludge, but you wouldn't have to code
everything from scratch.

There are a number of cross-platform toolkits out there. Some are free
(GTK+, FLTK, wxWindows, MGL), others are less so (Qt, ZINC). Most are C++
based, which makes them a bit tricky to wrap into a DLL. Personally, I think
that GTK is the best basis for X Window coding in Euphoria.

The *easiest* approach would be to write your code in Win32Lib and run it in
Linux using WINE (http://www.winehq.com). It's been a while since I've run
Win32Lib under WINE, but it worked pretty well when I tried it last. When
v1.0 of WINE is finally released, I'll probably bug Robert to see if he can
create a version of Euphoria that's linked to the WineLib. I suspect that
it's going to be pretty darned big, though.

Sorry I can't come up with anything that's truly 'simple'. I should have a
computer running Linux in a few more weeks, and I might dust off some of the
projects then.

-- David Cuny

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

4. Re: DLL binding

On 7 Jul 2000, at 10:16, Cuny, David@DSS wrote:

> The *easiest* approach would be to write your code in Win32Lib and run it in
> Linux using WINE (http://www.winehq.com). It's been a while since I've run
> Win32Lib under WINE, but it worked pretty well when I tried it last. When
> v1.0 of WINE is finally released, I'll probably bug Robert to see if he can
> create a version of Euphoria that's linked to the WineLib. I suspect that
> it's going to be pretty darned big, though.

That's what i'd do... but not what i prolly *will* do. What i plan on is a linux
box running
24-7-365, using socks ports across the ethernet to the win95 box, using the
winbox
*only* as the user interface, if at all possible using it for nothing else.

> Sorry I can't come up with anything that's truly 'simple'. I should have a
> computer running Linux in a few more weeks, and I might dust off some of the
> projects then.

I got the linux box running on the ethernet lan here this last weekend, with a
*lot* of
help. Only 1800 more pages of the book to read.

Kat

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

5. Re: DLL binding

I've been said to use the SDL Library for compatibility X-Windows, Windows
GDI ???

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

6. Re: DLL binding

Thierry wrote:

> I've been said to use the SDL Library for
> compatibility X-Windows, Windows GDI ???

Be aware that the library provides you with the ability to write to a video
device, but that's about it. There's no support for controls (menus,
pushbuttons, radiobuttons, and so on).

According to the documentation, SDL (Simple DirectMedia Layer) is a "simple,
efficient, and portable" low-level API designed to make it easy to write
games that run on Linux, Win32 and BeOS using the various native
high-performance media interfaces, (for video, audio, etc) and presenting a
single source-code level API. It can be found at
http://www.libsdl.org/index.html.

If that's that sort of thing that you are interested in, you might also have
a look at:

   OpenGL: http://www.opengl.org/
   ClanLib: http://www.clanlib.org/
   Cross-ELF: http://www.planet.net/pjoshv/cross-elf.html

Mic has written a GLUT wrapper you can find on the Euphoria page, but it
looks like it only runs under Win32.

I suspect that you probably want a toolkit that at least has basic controls.

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu