Official Go implementation of the Ethereum protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-ethereum/deploy/README.md

56 lines
2.1 KiB

go-build
========
Build scripts for Ethereum Mist.
### OS X
Install all build dependencies.
* brew install go gmp readline
* npm install -g appdmg
* go get -u github.com/ethereum/go-ethereum/cmd/mist
* Open build.py and edit the (macdeployqt) paths.
* python build.py
If everything went ok you should now have a Mist.dmg file in your current folder.
### Windows
Install all build dependencies.
* [Golang](http://golang.org/dl/) 1.2 or higher (32-bit required)
* Install [Git](http://git-scm.com/) and [Mercurial](http://mercurial.selenic.com/)
* [MinGW32](http://www.mingw.org/) (add X:\MinGW\bin directory to your PATH)
* Use mingw32-get to install *gmp* packages
* Install [Qt5 for Windows 32-bit MinGW](http://qt-project.org/downloads) (5.2.1 at the moment of writing)
* Install [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/) somewhere in your PATH. (read the [instructions](http://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows) here)
* Install [NSIS](http://nsis.sourceforge.net/)
After all these things have been satisfied ```go get -u github.com/ethereum/go-ethereum/cmd/mist```
Once the compilation is completed you can create a setup binary.
- Edit build.bat and change qtPath and mingwPath to the paths of your installed versions.
- right-click the nsi file and select "Compile NSIS Script".
If everything went well you should now have a windows-setup file.
#### Troubleshooting
Now it will be a miracle if the windows build works in one go.
So here are some possible solutions for things that can go wrong:
*Expected unqualified-id*
```
qopenglversionfunctions.h:785:43: error: expected unqualified-id before ')' token
void (QOPENGLF_APIENTRYP MemoryBarrier)(GLbitfield barriers);
```
See [this ticket](https://github.com/go-qml/qml/issues/56) for a couple of solutions.
*pkg-config path*
pkg-config might complain about the config path. Setup an environment value `PKG_CONFIG_PATH` and set it to `C:\Qt\Qt5.2.1\5.2.1\mingw48_32\lib\pkgconfig`. Adopted to your QT version.
If there are any build problems please create an issue.