Search code examples
erlangwxwidgetskerl

kerl --with-wx doesn't create wxe_driver.so


kerl --with-wx doesn't create an erlang installation with wxe_driver.so. Should it? I'm trying to make an erlang build that will run observe, but still get:

ERROR: Could not find 'wxe_driver.so' in: /home/don/erlangs/17.4/lib/wx-1.3.2/priv

.kerlrc contains:

KERL_CONFIGURE_OPTIONS="--with-wx"

Solution

  • Erlang build procedure just skips some optional components build steps if build host system does not have all the required dependencies to build that components, even configure (or kerl) was told to make build with that components included

    If you find yourself in a situation where Erlang, that was built from source, blames some module could not be loaded, you should check if it was built

    In this particular case

    Look for errors in a file named config.log under ~/.kerl. It should indicate what's missing.

    To build wxe_driver you should have WX development libraries installed on your system. You have to refer to your system documentation to learn how to install them. In this case, since glu.h was missing, running sudo apt-get install build-essential libsdl1.2debian libsdl1.2-dev libgl1-mesa-dev libglu1-mesa-dev libsdl-image1.2 libsdl-image1.2-dev added the missing file.