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 1.2 or higher (32-bit required)
- Install Git and Mercurial
- MinGW32 (add X:\MinGW\bin directory to your PATH)
- Use mingw32-get to install gmp packages
- Install Qt5 for Windows 32-bit MinGW (5.2.1 at the moment of writing)
- Install pkg-config somewhere in your PATH. (read the instructions here)
- Install NSIS
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 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.