Install MSYS2 and run the following inside a MinGW 32 bit shell:
pacman -Syu
pacman -S --needed mingw-w64-i686-gcc mingw-w64-i686-wxWidgets3.1 make git
git clone --recursive --depth=1 https://github.com/wxFormBuilder/wxFormBuilder
cd wxFormBuilder
cmd.exe /C "create_build_files4.bat --wx-root=/mingw32/bin --force-wx-config=versioned --wx-version=3.1"
ln -s /mingw32/include/binutils/ansidecl.h /mingw32/include/ansidecl.h
ln -s /mingw32/include/binutils/bfd.h /mingw32/include/bfd.h
ln -s /mingw32/include/binutils/diagnostics.h /mingw32/include/diagnostics.h
ln -s /mingw32/include/binutils/symcat.h /mingw32/include/symcat.h
ln -s /mingw32/lib/binutils/libbfd.a /mingw32/lib/libbfd.a
ln -s /mingw32/lib/binutils/libiberty.a /mingw32/lib/libiberty.a
cd build/3.1/gmake
sed 's!\$(LDFLAGS) \$(RESOURCES) \$(ARCH) \$(LIBS)!\$(LIBS) \$(LDFLAGS) \$(RESOURCES) \$(ARCH)!g' *.make -i
make config=release
Run:
cd ../../../output/
./wxFormBuilder.exe
Notice: Distributions that use architecture based subdirectories for libraries currently fail to load the plugins, for a workaround see #524
Pre-requisites for Ubuntu:
sudo apt install libwxgtk3.0-gtk3-dev libwxgtk-media3.0-gtk3-dev meson
Pre-requisites for Arch Linux:
sudo pacman -Syu --needed meson wxgtk2
Build and run:
git clone --recursive --depth=1 https://github.com/wxFormBuilder/wxFormBuilder
cd wxFormBuilder
meson _build --prefix $PWD/_install --buildtype=release
ninja -C _build install
./_install/bin/wxformbuilder
Notice: On recent macOS versions >= 11 wxFormBuilder fails to build and/or run, there is no solution available currently
Pre-requisites for macOS can be installed via Homebrew:
brew install dylibbundler make wxwidgets
Note: Building with Xcode currently does not work without issues (see #247). Therefore it is recommended to build with GNU make like as described below:
git clone --recursive --depth=1 https://github.com/wxFormBuilder/wxFormBuilder
cd wxFormBuilder
./create_build_files4.sh
cd build/3.1/gmake
make config=release
Run:
cd ../../../output/
open wxFormBuilder.app