Skip to content
Joseph Lenox edited this page Mar 29, 2017 · 1 revision

XSGUI requires wxWidgets development headers to be available. These are supplementary instructions to provide those headers (and libraries). wxWidgets is currently statically linked against XSGUI. This may change in the future.

Windows

  • Run the following commands to fetch and build wxWidgets (statically). These have been successfully executed on the Slic3r version of Strawberry Perl (see general windows build instructions).
git clone https://github.com/wxwidgets/wxwidgets -b "v3.1.0"
cd wxwidgets
cp include\wx\msw\setup0.h include\wx\msw\setup.h
cd build\msw
mingw32-make -f makefile.gcc CXXFLAGS=-gnu++11 BUILD=release
  • Set the environment variable WXWIN to the path you checked out and built wxWidgets.

Linux

  • Install wx development packages from your distribution if at all possible.
  • If building from source:
git clone https://github.com/wxwidgets/wxwidgets -b "v3.1.0"
cd wxwidgets
./configure --prefix=${PWD}/local-lib
make
make install
  • Set the environment variable WXDIR to the prefix directory used for wxWidgets.

OSX

  • ???
  • The instructions to build from source from Linux should work here. If wx-config is in your PATH then you should be good to go without building from source.