Hi Steve,<br><br><div><br><div class="gmail_quote">On Thu, Apr 2, 2009 at 2:06 PM, Steve Davis <span dir="ltr"><<a href="mailto:steven.charles.davis@gmail.com">steven.charles.davis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I've been working on a library that does much of what you describe. It<br>
wraps for the cross-platform GUI library 'wx' that appeared in R13A<br>
release of Erlang/OTP.</blockquote><div><br></div><div>Yes, I have tested that on Windows and it worked well.</div><div>However, on Mac OS X it compiles but I get :</div><div><br></div><div><div>Erlang R13A (erts-5.7) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]</div>
<div><br></div>Eshell V5.7 (abort with ^G)<br>1> sudoku:start().<br><0.34.0><br>2> <br>=ERROR REPORT==== 2-Apr-2009::22:06:50 ===<br>WX Failed loading "wxe_driver"@"/usr/local/lib/erlang/lib/wx-0.98/priv/i386-apple-darwin9.6.0" <br>
** exception error: {load_driver,"dlopen(/usr/local/lib/erlang/lib/wx-0.98/priv/i386-apple-darwin9.6.0/wxe_driver.so, 2): Symbol not found: __ZN10wxGLCanvas20MacVisibilityChangedEv\n Referenced from: /usr/local/lib/erlang/lib/wx-0.98/priv/i386-apple-darwin9.6.0/wxe_driver.so\n Expected in: flat namespace\n"}<br>
in function wxe_server:start/0<br> in call from wx:new/0<br> in call from sudoku_gui:new/1<br> in call from timer:tc/3<br> in call from sudoku:tc/3<br> in call from sudoku:init/1</div><div><br></div>
<div>I didn't find the origin of this problem.</div><div>However, I searched and found the symbol was defined in the wxWidgets library included with Mac OS X (libwx_macud_gl-2.8.0.1.1.dylib). Why the library is not dynamically loaded is a mystery to me.</div>
<div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This interface runs the UI as a separate process (a gen_server), it<br>
allows you to specify the application GUI in XML which makes it very<br>
easy to design/modify/update. It allows you to pass in a callback<br>
module to use for the UI issued commands. So it's pretty close to your<br>
design target.</blockquote><div><br></div><div>It looks very interesting.</div><div>However, my application will need to use a widespread format, so any user that has basic skill in HTML can write simple extensions.</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The problem is that I only started development of this library less<br>
than a month ago, it's as yet unfinished, and as yet badly documented<br>
as it's a work in rapid progress.<br>
<br>
However you may wish to keep an eye on:<br>
<br>
<a href="http://github.com/komone/gx" target="_blank">http://github.com/komone/gx</a></blockquote><div><br></div><div>I am interested in anything that touches close of far GUI and Erlang.</div><div>I will have a look, thanks!</div>
<div><br></div><div><br></div><div><br></div><div>Best,</div><div>Cam</div></div></div>