Hi everyone,
If the b1tesd.exe and simplewallet.exe executables that were uploaded on Github will not work on your Windows PC, you will have to build B1tes source code on your Windows PC following the instructions below.
One user pointed out that when executing b1tesd.exe the error below shows up:
!!! WARNING: This user is a newbie. If you are expecting a message from a more veteran member, then this is an imposter !!!
i can't run b1tesd.exe and log file :
2017-Oct-03 09:49:39.640334 b1tes v0.9.12.0()
2017-Oct-03 09:49:39.643334 Module folder: C:\Users\Administrator\Desktop\b1tesd.exe
2017-Oct-03 09:49:39.648334 Initializing p2p server...
2017-Oct-03 09:49:39.652335 ERROR c:\users\windows\documents\visual studio 2017\b1tes\t1b\src\p2p\net_node.inl:113 Exception at [node_server::init_config], what=bad allocation
2017-Oct-03 09:49:39.661335 ERROR c:\users\windows\documents\visual studio 2017\b1tes\t1b\src\p2p\net_node.inl:278 Failed to init config.
2017-Oct-03 09:49:39.668336 ERROR C:\Users\windows\Documents\Visual Studio 2017\b1tes\t1b\src\daemon\daemon.cpp:175 Failed to initialize p2p server.
2017-Oct-03 09:49:39.677336 Mining has been stopped, 0 finished
If you are getting a similar error, please build B1tes source code on your Windows PC following the instructions below:
These instructions were adapted from this link:
https://bitcointalksearch.org/topic/m.18754693Building B1tes on Windows (Guide v2017.04.26)
- Download and install latest Git
https://github.com/git-for-windows/git/releases/download/v2.12.2.windows.2/Git-2.12.2.2-64-bit.exe- To compile b1tesd.exe and simplewallet.exe you will need to install vs2015 Community RTM
(iso available to download here
https://xinyustudio.wordpress.com/2015/07/21/visual-studio-2015-iso-download-links-official-directoffline-links/)
http://download.microsoft.com/download/0/B/C/0BC321A4-013F-479C-84E6-4A2F90B11269/vs2015.com_enu.iso take care to uncheck box "visual studio 2015 update 3" else update 3 will be downloaded automatically.
Important note:
after installation you should be asked to reboot the OS. Do NOT forget this step, asked or not ! In addition to this, after rebooting you'll need to start Visual Studio Community 2015 GUI, as other components will be set up. FYI, all version numbers can be found here
https://omwtm.blog/2014/12/03/visual-studio-2013-version-numbers-and-updates/ https://omwtm.blog/2014/12/03/visual-studio-2013-version-numbers-and-updates/ - Download and install CMake version 3.8, win 32 installer. If you have a previous version uninstall it first.
https://cmake.org/files/v3.8/cmake-3.8.0-rc4-win32-x86.msi- Download and install Python x86-64 executable installer, which is needed by CMake. If you have version 3.4 or lower uninstall it first.
https://www.python.org/ftp/python/3.6.1/python-3.6.1-amd64.exe Pay attention when installation asks if you want to add to system path and do so.
- Download ad install the pre-compiled Boost libraries v 1_63_00 for MSVC-14.0 64bit version
(take note of their install path):
https://sourceforge.net/projects/boost/files/boost-binaries/1.63.0/boost_1_63_0-msvc-14.0-64.exe/download Note: to build a distributable B1tes package you'll need to build Boost libraries from source, which it is indeed included in the download.
Yet please bear in mind that the aim of my guide is to enable common B1tes users in Windows environment to be readily up to date with the latest
B1tes release.
The following directory should be added to compiler include paths (following my own installation path):
D:\local\boost_1_63_0
The following directory should be added to linker library paths:
D:\local\boost_1_63_0\lib64-msvc-14.0
This will be done by means of cmake arguments, below.
- Now let's start the B1tes compiling procedure (16GB RAM is the minimum I would recommend in order to proceed successfully):
Open “MSBuild Command Prompt for VS2015” or “Git Shell” or “Git bash” depending what you downloaded previously and do:
mkdir b1tes
cd b1tes
download B1tes source code
cd press enter
mkdir build press enter
cd build press enter
cmake -G "Visual Studio 14 2015 Win64" -DBOOST_ROOT=D:\local\boost_1_63_0 -DBOOST_LIBRARYDIR=D:\local\boost_1_63_0\lib64-msvc-14.0 .. press enter
(the two dots are needed)
If the cmake gives errors issue this command instead:
cmake -G "Visual Studio 14 2015 Win64" -DBOOST_ROOT=D:/local/boost_1_63_0 -DBOOST_LIBRARYDIR=D:/local/boost_1_63_0/lib64-msvc-14.0 .. press enter
(the two dots are needed)
MSBuild Project.sln /p:Configuration=release /m press enter
After some time you'll find your .exe files in the path_to_your_b1tes_repository\Build\Src\Release directory.
Alternative building procedure, using VS Community 2015 GUI: It is assumed that the
cmake step has been done successfully.
Close GIT Shell if still open.
Open VS Community 2015 GUI
File->Open-> Solution->path to b1tes local repository/Project.sln
VS 2015 will then make a check of all includes. This will take some time, until in the lower-left corner you'll see "Ready". Patience!
Be sure that up above Release and x64 are selected
Build-> Build Solution
You'll see a message when the building process is ended.
You'll find your .exe files in the path_to_your_b1tes_repository\Build\Src\Release directory.
In any case, after the exe files have been bult and copied in the position of your likings, always remember to clean the content inside the .../build directory to leave it ready for the very next build.
This will obviously require Git Shell or MSVC 2015 GUI to be closed.