Skip to content
Li Shengqiu edited this page Jan 11, 2018 · 3 revisions

For now wxGo can only compile on 64-bit Windows, Linux and Mac OS X, and compiling it will consume ~5GB memory space.

Windows

Using official installers

  • Download go 1.6 or higher
  • Download mingw-w64 OR tdm-gcc 5 or higher
  • Add C:\Go\bin and C:\TDM-GCC\bin (change them into your installation path) to %PATH% environment variable
    • Right click StartMenu, and choose System (Or right click My computer and choose Properties...)
    • Click Advanced System Settings
    • Choose Advanced tab, click Environment variables... button
    • Double click Path in the System variables block (Add/Edit one in the User variables block is also OK)
    • Add paths
  • go get -x github.com/dontpanic92/wxGo/wx

Using MSYS2

  • Download msys2
  • Install mingw-w64
  • Installing Go 1.6+ from official site
    • Go in msys2 repo is too old
  • ln -s C:/Go/bin/go.exe /usr/bin/go.exe
  • go get -x github.com/dontpanic92/wxGo/wx

Mac OS X

  • Download and install go 1.6 or higher
  • Install XCode Command Line Tool (for clang)
  • go get -x github.com/dontpanic92/wxGo/wx

Linux

  • Install go (1.6 or higher)
  • Install g++ (5 or higher)
  • go get -x github.com/dontpanic92/wxGo/wx

The detailed steps may vary according to the distribution that you are using.

By default, wxGo on Linux is built with wxgtk3 backend. Especially for Linux 64-bit systems (currently), a gtk2 backend could be selected - which is more mature for now - using parameters -tags gtk2, i.e. go get -x -tags gtk2 github.com/dontpanic92/wxGo/wx.

Distribution-Specific Guide

Debian 8 64-bit

# Minimal Debian 8 64-bit install (only additional ssh server)
mkdir install && cd install
apt-get install -y ca-certificates

# Install golang (change 1.8 to actual latest version)
wget https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz && tar xf godeb-amd64.tar.gz
./godeb install 1.8

# Install dependencies
apt-get --no-install-recommends install git libwebkitgtk-3.0-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgl1-mesa-dev libglu1-mesa-dev libxxf86vm-dev libnotify-dev libjpeg-dev libtiff5-dev

# Install gcc-6 from testing
echo 'deb http://ftp.us.debian.org/debian testing main contrib non-free' > /etc/apt/sources.list.d/testing.list
echo -e 'Package: *\nPin: release a=testing\nPin-Priority: 100\n' > /etc/apt/preferences.d/testing
apt-get update && apt-get install -t testing gcc libc-dev-bin libc6-dev linux-libc-dev g++

go get -x github.com/dontpanic92/wxGo/wx

# Done!

Ubuntu 16.10 64-bit

# Minimal Ubuntu Yakkety (16.10) netinstall (only additional ssh server)

# Install golang (change 1.8 to actual latest version)
mkdir install && cd install
wget https://godeb.s3.amazonaws.com/godeb-amd64.tar.gz && tar xf godeb-amd64.tar.gz
./godeb install 1.8

# Install dependencies
apt-get --no-install-recommends install git libwebkitgtk-3.0-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgl1-mesa-dev libglu1-mesa-dev libxxf86vm-dev libnotify-dev libjpeg-dev libtiff5-dev gcc g++

go get -x github.com/dontpanic92/wxGo/wx

# Done!