[erlang-questions] WX Failed loading "wxe_driver"

micern <>
Mon Aug 6 20:36:28 CEST 2012


Hello!

I'm trying to learn Erlang, so I apologize if this is a trivial problem I
should have solved myself.

I'm failing when using WX, trying to open a window for my application.

Yep, Windows 7 seams to be an odd choice of OS, but that is what I've got.



Doing this in the monitor fails:
--------------------------------
1> Wx = wx:new().

=ERROR REPORT==== 6-Aug-2012::19:42:42 ===
WX Failed loading "wxe_driver"@"c:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv" 
** exception error: {load_driver,"Det går inte att hitta den angivna
modulen."}
     in function  wxe_server:start/0 (wxe_server.erl, line 64)
     in call from wx:new/1 (wx.erl, line 107)

2> Wx.
* 1: variable 'Wx' is unbound


The corresponding code in an .erl file fails too:
-----------------------------------------------
-module(minimal).

-include_lib("wx/include/wx.hrl").

-export([start/0]).
-compile(export_all).

start() ->
    Wx = wx:new(),
    Frame = wx:batch(fun() -> create_window(Wx) end),
    wxWindow:show(Frame),
    loop(Frame),
    wx:destroy(),
    ok.

(more code, loop, create_window, etc).

...

7> c(minimal).
{ok,minimal}
8> minimal:start().

=ERROR REPORT==== 6-Aug-2012::19:49:23 ===
WX Failed loading "wxe_driver"@"c:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv" 
** exception error: {load_driver,"Det går inte att hitta den angivna
modulen."}
     in function  wxe_server:start/0 (wxe_server.erl, line 64)
     in call from wx:new/1 (wx.erl, line 107)
     in call from minimal:start/0 (minimal.erl, line 16)

yep, it bombs @ Wx = wx:new(), ...


Starting the debugger get a similar warning, even if the window actually
opens.
------------------------------------------------
2> debugger:start().

=ERROR REPORT==== 6-Aug-2012::19:47:08 ===
WX Failed loading "wxe_driver"@"c:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv" 
{ok,<0.40.0>}


Digging in Erlang library files on my computer...
-------------------------------------------------
Directory .../erl5.9.1/lib/wx-0.99.2 exists.
:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv exists.


Swedish...
----------
"Det går inte att hitta den angivna modulen" = "Not possible to find the
module"


WHY?!?!?!  AND WHAT TO DO?!?!?!

/micael





--
View this message in context: http://erlang.2086793.n4.nabble.com/WX-Failed-loading-wxe-driver-tp4655138.html
Sent from the Erlang Questions mailing list archive at Nabble.com.



More information about the erlang-questions mailing list