-
Notifications
You must be signed in to change notification settings - Fork 51
Installation Guide
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.
- Download go 1.6 or higher
- Download mingw-w64 OR tdm-gcc 5 or higher
- Add
C:\Go\bin
andC:\TDM-GCC\bin
(change them into your installation path) to %PATH% environment variable- Right click StartMenu, and choose
System
(Or right clickMy computer
and chooseProperties...
) - Click
Advanced System Settings
- Choose
Advanced
tab, clickEnvironment variables...
button - Double click
Path
in theSystem variables
block (Add/Edit one in theUser variables
block is also OK) - Add paths
- Right click StartMenu, and choose
go get -x github.com/dontpanic92/wxGo/wx
- 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
- Download and install go 1.6 or higher
- Install XCode Command Line Tool (for clang)
go get -x github.com/dontpanic92/wxGo/wx
- 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
.
# 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!
# 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!