Compiling for windows
Prefer native mingw instructions, cygwin builds are known to have issues.
-
Install cygwin from http://cygwin.com/
-
During setup the following packages must be selected:
- autoconf
- automake
- libboost-devel
- libdb4.8-devel
- libtool
- gcc-g++
- git
- make
- openssl-devel
- tar
-
(add here missing packages)
-
Download twister from github
git clone https://github.com/miguelfreitas/twister-core.git
cd twister-core
- Compile twisterd
./bootstrap.sh
make
- Create .twister directory and download HTML UI
mkdir ~/.twister
cd ~/.twister
git clone https://github.com/miguelfreitas/twister-html.git html
- Now configure your username and password for the daemon:
echo -e "rpcuser=user\nrpcpassword=pwd" > ~/.twister/twister.conf
(NOTE: The username/password combo seems temporarily hardcoded. Also, if you receive an error message about "cygwin1.dll", add your cygwin path to the PATH environmental variable, eg. "C:\Cygwin64\bin".)
- Run the daemon:
./twisterd -daemon -rpcuser=user -rpcpassword=pwd -rpcallowip=127.0.0.1
- Open http://127.0.0.1:28332/index.html and use the user/pwd credentials.
Notes¶
-
windows users are reporting problems to bootstrap the network (no connections). Try to manually add peer from one of the following seeder (try both "add peer" and "add dns"):
seed.twister.net.co
seed2.twister.net.co
seed3.twister.net.co
dnsseed.gombadi.com
-
You may need to edit file
/usr/lib/libdb_cxx-4.8.la
to remove a wrong dependency (cygwin bug). -
Replace:
dependency_libs=' /usr/lib/libdb-4.8.la -lpthread /usr/lib/gcc/i686-pc-cygwin/4.5.3/libstdc++.la'
-
With:
dependency_libs=' /usr/lib/libdb-4.8.la -lpthread'
-
The following dlls are needed in order to run twisterd.exe (the file is inside .libs directory):
cygboost_filesystem-mt-1_53.dll cygboost_system-mt-1_53.dll cygcrypto-1.0.0.dll cygdb_cxx-4.8.dll cygssl-1.0.0.dll cygwin1.dll cygboost_program_options-mt-1_53.dll cygboost_thread-mt-1_53.dll cygdb-4.8.dll cyggcc_s-1.dll cygstdc++-6.dll cygz.dll
@wrewolf can build in clean Win XP SP3 x86 with latest cygwin (with upper note /), but modify original cygwin headers and insert defines from win32 headers. insert in file /usr/include/cygwin/in6.h lines from /usr/include/w32api/ws2ipdef.h
And build without any modifycation sources