142 lines
4.9 KiB
HTML
142 lines
4.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<title>EuGTK Platforms</title>
|
||
|
<link rel="stylesheet" href="style.css" type="text/css">
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<header>
|
||
|
<img src="../thumbnails/gtk-logo-rgb.gif" alt="GTK LOGO" />
|
||
|
<img src="../thumbnails/mongoose.png" alt="mongoose" />
|
||
|
<a href="../screenshots/Windows.png">
|
||
|
<figure style="float:right; border:thin solid black;">
|
||
|
<img src="../screenshots/Windows.png" alt="Windows 7" width="400px" />
|
||
|
<figcaption><small><i> EuGTK running on Windows 7</i></small></figcaption>
|
||
|
</figure>
|
||
|
</a>
|
||
|
<h2>EuGTK 4.12.0</h2>
|
||
|
<h2>Platforms</h2>
|
||
|
</header>
|
||
|
|
||
|
<nav>
|
||
|
<div class="hdr">Other Files:</div>
|
||
|
<a href="README.html"><button>README</button></a>
|
||
|
<a href="HowItWorks.html"><button>How EuGTK Works</button></a>
|
||
|
<a href="guide_a.html"><button>Alphabetical Guide</button></a>
|
||
|
<a href="dialogs.html"><button>Built-in EuGTK Dialogs</button></a>
|
||
|
<a href="treeviews.html"><button>ListView/TreeView widgets</button></a>
|
||
|
<a href="pango_markup.html"><button>Markup</button></a>
|
||
|
<a href="printing.html"><button>Printing</button></a>
|
||
|
<a href="ServerHelp.html"><button>Web Server</button></a>
|
||
|
<a href="functions.html"><button>Quick Function List</button></a>
|
||
|
<a href="Glade.html"><button>Glade GUI Builder</button></a>
|
||
|
<br />
|
||
|
</nav>
|
||
|
|
||
|
<hr />
|
||
|
|
||
|
<p>
|
||
|
<b>EuGTK is native for Linux</b><br />
|
||
|
Most modern Linux distros come with GTK3 already installed. If not, you can usually
|
||
|
install the GTK3 libraries easily with your package manager (apt-get or similar).
|
||
|
No special setup or configuration steps are involved.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
<b>EuGTK is also reported to work with OS X™</b>. First, install MacPorts, and
|
||
|
then the GTK3 library with this command:
|
||
|
<code>sudo port install gtk3</code>
|
||
|
That should eventually install the library to /opt/local/lib/libgtk-3.dylib.
|
||
|
I cannot test this, since I have no computer running OSX, but Pete Eberlein's
|
||
|
cross-platform Euphoria editor WEE runs on OS X using EuGTK for the user interface.
|
||
|
That's a pretty good test.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
<b>EuGTK works with Windows™,</b> more or less, starting with version 4.9.0!
|
||
|
I have only tested this on Windows 7, 64-bit, as I have no other version of Windows
|
||
|
available.
|
||
|
</p>
|
||
|
|
||
|
<p>You'll need the GTK3 dll's for Windows; download them from
|
||
|
the download page at <a href="https://github.com/tschoonj/GTK-for-
|
||
|
Windows-Runtime-Environmane-Installer">https://github.com/tschoonj/GTK-for-
|
||
|
Windows-Runtime-Environmane-Installer</a>. Be sure to chose the correct
|
||
|
set, either 32-bit or 64-bit, and make sure you are running the matching version of
|
||
|
Euphoria (32-bit or 64-bit). I use Euphoria 4.0.1 beta 2, which seems to work fine.
|
||
|
Mixing 32 and 64 bit software is sure to cause strange problems, such as reports that
|
||
|
dll's can't be found, even though they are right there in plain sight.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
Once you've installed the GTK3 package, you'll need to download some
|
||
|
Windows-compatible <a href="">icons</a>. Unzip these and put them in
|
||
|
C:/ProgramData/icons.
|
||
|
</p>
|
||
|
|
||
|
<p><b>EuGTK programs may run on <i>any</i> platform.</b><br />
|
||
|
You can even run EuGTK programs on a remote client (anything that has an HTML5 web
|
||
|
browser, including tablets, phones, etc.), by using broadway on the server.
|
||
|
Clients do not need EuGTK, Euphoria, or GTK to be installed.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
The Broadway server can be downloaded using apt-get, or your package manager,
|
||
|
and it also comes 'stock' with the latest Mint 18, and perhaps some other distros as well.
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
This is still experimental, but most of the demos in this package work ok
|
||
|
with a web browser, and some work when browsing with a tablet. Probably the
|
||
|
demo programs need to listen for 'motion' events (swipes, etc) to get these
|
||
|
working fully, or perhaps the browsers on my tablet aren't up-to-date with HTML5?
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
If you create a 'batch' Eu program, as shown below, you can start the broadway
|
||
|
server, and open a firefox page with your EuGTK program running
|
||
|
in the browser:<br />
|
||
|
<code><pre>
|
||
|
<em>-- name this go.ex
|
||
|
-- then start your program with:
|
||
|
-- eui go test1 (where test1 is the program to run)</em>
|
||
|
include GtkEngine.e
|
||
|
|
||
|
object cmd = command_line()
|
||
|
system(sprintf("firefox %s:8080 & broadwayd & ",{inet_address()}),0)
|
||
|
setenv("GDK_BACKEND","broadway")
|
||
|
system(sprintf("%s %s",{cmd[1],cmd[3]}),0)
|
||
|
system("killall broadwayd",0)
|
||
|
</pre></code>
|
||
|
</p>
|
||
|
|
||
|
<figure style="float:right; border:thin solid black;">
|
||
|
<img src="../screenshots/broadway.png" alt="Broadway" />
|
||
|
<figcaption> <small>Three EuGTK demos running in a Firefox™ window</small>
|
||
|
</figcaption>
|
||
|
</figure>
|
||
|
|
||
|
<br clear="all" />
|
||
|
<br />
|
||
|
|
||
|
<footer>
|
||
|
<div class="hint">
|
||
|
<img class="hint" src="../thumbnails/mongoose.png" alt="hint" align="left" float="right" />
|
||
|
<p>
|
||
|
This page edited by The <a href="README.html#bear">Bear</a>,
|
||
|
a web-page and programming editor
|
||
|
written in <a href="OpenEuphoria.org">Euphoria</a>.
|
||
|
</p>
|
||
|
<p>
|
||
|
Updated for EuGTK version 4.12.0, Sept 15, 2016<br />
|
||
|
All code © 2016 by Irv Mullins
|
||
|
</p>
|
||
|
</div>
|
||
|
</footer>
|
||
|
|
||
|
</body>
|
||
|
</html>
|