[erlang-bugs] R16A : 2 issues in WX driver compilation

PAILLEAU Eric <>
Sun Feb 10 12:34:11 CET 2013


Hello

following my former mail,
here is below issue in WX driver compilation which is discarded
in configure...
_______________________________________________________________________
configure: ERL ROOT DIR: /usr/local/lib/erlang

checking for debug build of wxWidgets... checking for wx-config...
/usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... no

checking for standard build of wxWidgets... checking for wx-config...
(cached) /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... yes
(version 2.8.10)
checking for wxWidgets static library... no

checking if wxwidgets have opengl support... no

checking for GLintptr... no

checking for GLintptrARB... no

checking for GLchar... no

checking for GLcharARB... no

checking for GLhalfARB... no

checking for GLint64EXT... no

checking GLU Callbacks uses Tiger Style... no

checking for wx/stc/stc.h... no

configure: WARNING: Can not find wx/stc/stc.h  -g -Wall -O2 -fPIC
-fomit-frame-pointer -fno-strict-aliasing -g -O2
-Wno-deprecated-declarations -D_FILE_OFFSET_BITS=32 -D_GNU_SOURCE
-D_THREAD_SAFE -D_REENTRANT -I/usr/lib/wx/include/
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread

checking if we can link wxwidgets programs... no

configure: WARNING: Can not link wx program are all developer packages
installed?
checking if we can add -Werror=return-type to CFLAGS (via CFLAGS)... yes

checking if we can add -Werror=return-type to CXXFLAGS (via CFLAGS)...
yes
configure: error: Cannot build wxErlang driver, see ./CONF_INFO for
information
_______________________________________________________________________

The problem is that wx/stc/stc.h exists in /usr/include/wx-2.8 ...
$> locate stc.h
/usr/include/wx-2.8/wx/stc/stc.h
/usr/local/wx/stc/stc.h

Another issue is that my -D_FILE_OFFSET_BITS=32 directive is overriden
by default -D_FILE_OFFSET_BITS=64 at the end of command line (see first
Warning above). So even if the driver is created, this will fail with
my former fallocate64 error...


as a logical result, wx application fails  due to missing driver :
_______________________________________________________________________
Erlang R16A (erts-5.10) [source] [smp:2:2] [async-threads:10] [hipe]
[kernel-poll:false]

Eshell V5.10  (abort with ^G)
1> observer:start().
{error,{{load_driver,"No driver found"},
        [{wxe_server,start,1,[{file,"wxe_server.erl"},{line,64}]},
         {wx,new,1,[{file,"wx.erl"},{line,114}]},
         {observer_wx,init,1,[{file,"observer_wx.erl"},{line,87}]},
         {wx_object,init_it,6,[{file,"wx_object.erl"},{line,299}]},
         {proc_lib,init_p_do_apply,3,
                   [{file,"proc_lib.erl"},{line,239}]}]}}

=ERROR REPORT==== 10-Feb-2013::11:49:55 ===
ERROR: Could not find 'wxe_driver.so' in:
/usr/local/lib/erlang/lib/wx-1.0/priv
_______________________________________________________________________


More information about the erlang-bugs mailing list