Hello Dan,<div><br></div><div>I think I am getting close to having wxerlang running on Mac OS X.</div><div>However, there is a last problem in wxerlang building process you should know about.</div><div><br></div><div>In the OTP R13A release notes, it is recommended for Darwin (Mac OS X) users to build Erlang with --enable-darwin64bits option.</div>
<div><br></div><div>That doesn't work, "./configure --enable-hipe" worked fine on OS X and wxerlang is now working on my system, thanks.</div><div><div><div><br></div><div>Best,</div><div>Cam</div></div><div>
<br></div></div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Fri, Apr 3, 2009 at 2:29 PM, 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">I tried to add configure test for the mac leopard libs, but I obviously failed.<br>
My configure skills are rather limited.<br>
<br>
After you have built and installed wxwidgets.<br>
Add the install dir to the path, i.e. so that wx-config is found in the path<br>
<br>
unpack a freash r13a erlang,<br>
run ./configure && make && make install for the complete erlang package.<br>
<br>
The separate install script in wx library was intended for standalone wxErlang-releases<br>
before it was included in the erlang distribution. I have some more work to do..<br>
Thanks.<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"><div>
Dan,<br>
<br>
Just two more things:<br>
<br>
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:<br>
<br>
cd wx<br>
./configure --with-wxconfig=/usr/local/lib/wx-config/mac-unicode-release-static-2.8<br>
<br>
2. in wxerlang, "make install" fails with the following error:<br>
<br>
olibrius:wx camille$ sudo make install<br>
Password:<br></div>
escript ./<a href="http://install.es" target="_blank">install.es</a> <<a href="http://install.es" target="_blank">http://install.es</a>> @libdir@<br>
escript: exception error: undefined function '<a href="http://escript__install.io" target="_blank">escript__install.io</a> <<a href="http://escript__install.io" target="_blank">http://escript__install.io</a>>':format/2<div>
<br>
in function 'escript__install.es__1238__757603__565159':main/1<br>
in call from escript:run/2<br>
in call from escript:start/1<br>
in call from init:start_it/1<br>
in call from init:start_em/1<br>
make: *** [install] Error 127<br>
<br>
Sorry, I am not proficient enough in escript to be able to fix that.<br>
I am using Erlang OTP R13A.<br>
<br>
Cheers,<br>
Cam<br>
<br>
<br>
<br></div><div>
On Fri, Apr 3, 2009 at 12:42 PM, Camille Troillard <<a href="mailto:tuscland@gmail.com" target="_blank">tuscland@gmail.com</a> <mailto:<a href="mailto:tuscland@gmail.com" target="_blank">tuscland@gmail.com</a>>> wrote:<br>
<br>
Hi Dan,<br>
<br>
OK, I understand: I have actually tried to build wxWidgets /after/<br>
installing Erlang.<br>
I found some details to be a bit confusing:<br>
<br>
When Erlang is built, there is no warning about a deprecated or<br>
absent version of wxWidgets. For me it's like everything was ready<br>
to go. Having found that it was not the case, I have tried to<br>
follow wxerlang instructions.<br>
<br>
So, in the wxerlang build instruction it is said that the wxWidgets<br>
build should be static. Because the wxerlang driver has been built<br>
successfully and that it need a dynamic library, it didn't occurred<br>
to me that building wxWidgets and Erlang in the right order would<br>
solve the problem.<br>
<br>
Anyway, thanks for letting me know this. I think it would be great<br>
if the build instructions could reflect that*, or if by default<br>
Erland is not built with wxWidgets support unless a correct static<br>
library is found.<br>
<br>
<br>
Best Regards,<br>
Cam<br>
<br>
(*) that is, tell the user that on Mac OS X the wxWidgets system<br>
library will not be used, and that a fresh build must be made before<br>
building Erlang.<br>
<br>
<br>
<br>
On Fri, Apr 3, 2009 at 7:58 AM, Dan Gudmundsson<br></div><div><div></div><div>
<<a href="mailto:dgud@erix.ericsson.se" target="_blank">dgud@erix.ericsson.se</a> <mailto:<a href="mailto:dgud@erix.ericsson.se" target="_blank">dgud@erix.ericsson.se</a>>> wrote:<br>
<br>
On Mac OS X you will need to compile and install wxWidgets by<br>
yourself, before compiling erlang. The wxWidgets libs that are<br>
included with Mac OS X Leopard is old and is missing some things<br>
I require, (e.g. wxStyledTextCtrl which provides erlang syntax<br>
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>
<br>
Hi Steve,<br>
<br>
<br>
<br>
On Thu, Apr 2, 2009 at 2:06 PM, Steve Davis<br>
<<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a><br>
<mailto:<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a>><br>
<mailto:<a href="mailto:steven.charles.davis@gmail.com" target="_blank">steven.charles.davis@gmail.com</a><br>
<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<br>
describe. It<br>
wraps for the cross-platform GUI library 'wx' that<br>
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]<br>
[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<br>
"wxe_driver"@"/usr/local/lib/erlang/lib/wx-0.98/priv/i386-apple-darwin9.6.0"<br>
** exception error:<br>
{load_driver,"dlopen(/usr/local/lib/erlang/lib/wx-0.98/priv/i386-apple-darwin9.6.0/wxe_driver.so,<br>
2): Symbol not found:<br>
__ZN10wxGLCanvas20MacVisibilityChangedEv\n Referenced from:<br>
/usr/local/lib/erlang/lib/wx-0.98/priv/i386-apple-darwin9.6.0/wxe_driver.so\n<br>
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<br>
wxWidgets library included with Mac OS X<br>
(libwx_macud_gl-2.8.0.1.1.dylib). Why the library is not<br>
dynamically loaded is a mystery to me.<br>
<br>
<br>
<br>
This interface runs the UI as a separate process (a<br>
gen_server), it<br>
allows you to specify the application GUI in XML which<br>
makes it very<br>
easy to design/modify/update. It allows you to pass in a<br>
callback<br>
module to use for the UI issued commands. So it's pretty<br>
close to your<br>
design target.<br>
<br>
<br>
It looks very interesting.<br>
However, my application will need to use a widespread<br>
format, so any user that has basic skill in HTML can write<br>
simple extensions.<br>
<br>
<br>
The problem is that I only started development of this<br>
library less<br>
than a month ago, it's as yet unfinished, and as yet<br>
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<br>
and Erlang.<br>
I will have a look, thanks!<br>
<br>
<br>
<br>
Best,<br>
Cam<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br></div></div>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a> <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><div>
<br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<br>
<br>
</div></blockquote>
</blockquote></div><br></div>