Skip to content

Instantly share code, notes, and snippets.

@robertov8
Last active January 10, 2024 22:55
Show Gist options
  • Save robertov8/abe846472da78990597deb47f6019273 to your computer and use it in GitHub Desktop.
Save robertov8/abe846472da78990597deb47f6019273 to your computer and use it in GitHub Desktop.
Configuration wxWidgets on Mac | Erlang 25 | Elixir 1.15

Configuration wxWidgets on Mac | Erlang 25 | Elixir 1.15

build wxwidgets

git clone https://github.com/wxWidgets/wxWidgets.git

cd wxWidgets

git checkout v3.2.4

git submodule update --init --recursive

./configure \
        --with-cocoa \
        --prefix=/usr/local \
        --enable-compat30 \
        --with-macosx-version-min=13.0 \
        --enable-debug \
        --enable-clipboard \
        --enable-controls \
        --enable-dataviewctrl \
        --enable-display \
        --enable-dnd \
        --enable-graphics_ctx \
        --enable-svg \
        --enable-webviewwebkit \
        --with-expat \
        --with-libjpeg \
        --with-libpng \
        --with-libtiff \
        --with-opengl \
        --with-zlib \
        --disable-dependency-tracking \
        --disable-tests \
        --disable-precomp-headers \
        --disable-monolithic \
        --with-libiconv \
        --disable-shared \
        --with-libtiff=builtin
      
make

sudo make install

configuration environment

# ~/.config/fish/config.fish
set -gx CFLAGS "-O2 -g -fno-stack-check -Wno-error=implicit-function-declaration"
set -gx ERL_AFLAGS "-kernel shell_history enabled"
set -gx KERL_BUILD_DOCS "yes"
set -gx KERL_CONFIGURE_OPTIONS "--enable-wx --with-wx --enable-webview --disable-debug --with-wx-config=/usr/local/bin/wx-config -without-javac --with-ssl=/opt/homebrew/opt/openssl@1.1 --without-jinterface --without-odbc"

asdf install erlang and elixir

asdf install erlang 25.3.2.8
asdf global erlang 25.3.2.8

asdf install elixir 1.15.7-otp-25
asdf global elixir 1.15.7-otp-25

Enable observer on project

# mix.exs
def application do
    [
      extra_applications: [:logger, :crypto, :wx, :observer, :runtime_tools],
      mod: {Jobber.Application, []}
    ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment