Dan,<div><br></div><div>Just two more things:</div><div><br></div><div>1. It appears on Mac OS X Leopard that it is needed to instruction the wxerlang configure script to use the newly installed wxWidgets library, like this:</div>
<div><br></div><div>cd wx</div><div>./configure --with-wxconfig=/usr/local/lib/wx-config/mac-unicode-release-static-2.8<br><br></div><div>2. in wxerlang, "make install" fails with the following error:</div><div>
<br></div><div><div>olibrius:wx camille$ sudo make install</div><div>Password:</div><div>escript ./<a href="http://install.es">install.es</a> @libdir@</div><div>escript: exception error: undefined function '<a href="http://escript__install.io">escript__install.io</a>':format/2</div>
<div> in function 'escript__install.es__1238__757603__565159':main/1</div><div> in call from escript:run/2</div><div> in call from escript:start/1</div><div> in call from init:start_it/1</div><div> in call from init:start_em/1</div>
<div>make: *** [install] Error 127</div><div><br></div><div>Sorry, I am not proficient enough in escript to be able to fix that.</div><div>I am using Erlang OTP R13A.</div><div><br></div><div>Cheers,</div><div>Cam</div><div>
<br></div><div><br></div></div><div><br><div class="gmail_quote">On Fri, Apr 3, 2009 at 12:42 PM, Camille Troillard <span dir="ltr"><<a href="mailto:tuscland@gmail.com">tuscland@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Dan,<div><br></div><div>OK, I understand: I have actually tried to build wxWidgets <i>after</i> installing Erlang.</div><div>I found some details to be a bit confusing:</div><div><br></div><div>When Erlang is built, there is no warning about a deprecated or absent version of wxWidgets. For me it's like everything was ready to go. Having found that it was not the case, I have tried to follow wxerlang instructions.</div>
<div><br></div><div>So, in the wxerlang build instruction it is said that the wxWidgets build should be static. Because the wxerlang driver has been built successfully and that it need a dynamic library, it didn't occurred to me that building wxWidgets and Erlang in the right order would solve the problem.</div>
<div><br></div><div>Anyway, thanks for letting me know this. I think it would be great if the build instructions could reflect that*, or if by default Erland is not built with wxWidgets support unless a correct static library is found.</div>
<div><br></div><div><br></div><div>Best Regards,</div><div>Cam</div><div><br></div><div>(*) that is, tell the user that on Mac OS X the wxWidgets system library will not be used, and that a fresh build must be made before building Erlang.</div>
<div><div></div><div class="h5">
<div><br></div><div><div><br><br><div class="gmail_quote">On Fri, Apr 3, 2009 at 7:58 AM, Dan Gudmundsson <span dir="ltr"><<a href="mailto:dgud@erix.ericsson.se" target="_blank">dgud@erix.ericsson.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mac OS X you will need to compile and install wxWidgets by yourself, before compiling erlang. The wxWidgets libs that are included with Mac OS X Leopard is old and is missing some things I require, (e.g. wxStyledTextCtrl which provides erlang syntax highlighting).<br>
<br>
See compiling instructions here:<br>
<a href="http://apps.sourceforge.net/mediawiki/wxerlang/index.php?title=Getting_Started" target="_blank">http://apps.sourceforge.net/mediawiki/wxerlang/index.php?title=Getting_Started</a><br>
<br>
/Dan<br>
<br>
Camille Troillard wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Steve,<div><div></div><div><br>
<br>
<br>
On Thu, Apr 2, 2009 at 2:06 PM, Steve Davis <<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a> <mailto:<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a>>> wrote:<br>
<br>
<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.<br>
<br>
<br>
Yes, I have tested that on Windows and it worked well.<br>
However, on Mac OS X it compiles but I get :<br>
<br>
Erlang R13A (erts-5.7) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]<br>
<br>
Eshell V5.7 (abort with ^G)<br>
1> sudoku:start().<br>
<0.34.0><br>
2> =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" ** 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<br>
<br>
I didn't find the origin of this problem.<br>
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.<br>
<br>
<br>
<br>
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.<br>
<br>
<br>
It looks very interesting.<br>
However, my application will need to use a widespread format, so any user that has basic skill in HTML can write simple extensions.<br>
<br>
<br>
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><br>
<br>
<br>
I am interested in anything that touches close of far GUI and Erlang.<br>
I will have a look, thanks!<br>
<br>
<br>
<br>
Best,<br>
Cam<br>
<br>
<br></div></div>
------------------------------------------------------------------------<div><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></blockquote>
</blockquote></div><br></div></div>
</div></div></blockquote></div><br></div>