build erlang otp 22.2 but can't used observer
alex@REDACTED
alex@REDACTED
Mon Dec 30 22:24:24 CET 2019
Yeah, looks like it cannot find the wx shared libraries. Verify the
location of the wx files. You might need to configure /etc/ld.so.conf
to identify where they are located. For reference, I personally compile
wxWidgets from scratch with GTK3 and Mesa already installed with...
export CFLAGS="-O3 -fPIC -march=native -pipe"
export CXXFLAGS="$CFLAGS"
CFLAGS CXXFLAGS ./configure \
--prefix=/usr \
--libdir=/usr/lib64 \
--sysconfdir=/etc \
--enable-mediactrl \
--with-opengl \
--enable-graphics_ctx \
--with-gtk=3 \
--enable-unicode \
--enable-compat28 \
--enable-plugins \
--enable-stc \
--enable-webview \
$wk \
$stl \
$st
BTW, the configuration I use to compile Erlang is...
CFLAGS ./configure \
--prefix=/usr \
--libdir=/usr/lib64 \
--without-odbc \
--without-megaco \
--enable-threads \
--enable-dirty-schedulers \
--enable-smp-support \
--enable-hipe
...follow by make and make install. These are part of bigger scripts I
use to make packages for my Linux distro, but this is practically it.
Cheers,
Alex
On 12/30/19 11:48 AM, Mikael Pettersson wrote:
> On Mon, Dec 30, 2019 at 4:48 PM Rareman S <chalor99@REDACTED> wrote:
>> Hi,
>>
>> Here is my pre-build with erlang OTP22.2.
> ...
>> === Running configure in /export/home/itmxadm/otp-OTP-22.2/lib/wx ===
> ...
>> checking if we can link wxwidgets programs... no
>> configure: creating sparc-sun-solaris2.11/config.status
>> config.status: creating config.mk
>> config.status: creating c_src/Makefile
>> configure: WARNING: Can not find wx/stc/stc.h -Wall -fPIC -O -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/export/home/itmxadm/WX/wxWidgets-3.1.3/build_x11/lib/wx/include/x11univ-unicode-3.1 -I/export/home/itmxadm/WX/wxWidgets-3.1.3/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXUNIVERSAL__ -D__WXX11__ -pthreads -D_REENTRANT
>> configure: WARNING: Can not link wx program are all developer packages installed?
> ...
>> wx : wxWidgets don't have gl support, wx will NOT be useable
>> wxWidgets don't have wxStyledTextControl (stc.h), wx will NOT be useable
>> Can not link the wx driver, wx will NOT be useable
> ...
>> ./configure CC=${IDE_CC} CXX=${IDE_CXX} CFLAGS="-O" CXXFLAGS=-g --enable-compat28 --prefix=/usr/local. Above config above after build successful can't used wx.
> Given the wx-related warnings above, it's not surprising that wx
> doesn't work for you. You'll need to inspect the config.log file for
> lib/wx/ so see what the errors were, but off-hand it looks like an
> incomplete wxWidgets installation.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20191230/6b3aee62/attachment.htm>
More information about the erlang-questions
mailing list