mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Release build for Windows.
This commit is contained in:
committed by
chriseth
parent
ccc6106c7c
commit
165f898ba9
@@ -230,7 +230,7 @@ The following C++ compilers and their minimum versions can build the Solidity co
|
||||
|
||||
- `GCC <https://gcc.gnu.org>`_, version 5+
|
||||
- `Clang <https://clang.llvm.org/>`_, version 3.4+
|
||||
- `MSVC <https://docs.microsoft.com/en-us/cpp/?view=vs-2019>`_, version 2017+
|
||||
- `MSVC <https://visualstudio.microsoft.com/vs/>`_, version 2019+
|
||||
|
||||
Prerequisites - macOS
|
||||
---------------------
|
||||
@@ -262,29 +262,29 @@ You need to install the following dependencies for Windows builds of Solidity:
|
||||
+-----------------------------------+-------------------------------------------------------+
|
||||
| Software | Notes |
|
||||
+===================================+=======================================================+
|
||||
| `Visual Studio 2017 Build Tools`_ | C++ compiler |
|
||||
| `Visual Studio 2019 Build Tools`_ | C++ compiler |
|
||||
+-----------------------------------+-------------------------------------------------------+
|
||||
| `Visual Studio 2017`_ (Optional) | C++ compiler and dev environment. |
|
||||
| `Visual Studio 2019`_ (Optional) | C++ compiler and dev environment. |
|
||||
+-----------------------------------+-------------------------------------------------------+
|
||||
|
||||
If you already have one IDE and only need the compiler and libraries,
|
||||
you could install Visual Studio 2017 Build Tools.
|
||||
you could install Visual Studio 2019 Build Tools.
|
||||
|
||||
Visual Studio 2017 provides both IDE and necessary compiler and libraries.
|
||||
So if you have not got an IDE and prefer to develop solidity, Visual Studio 2017
|
||||
Visual Studio 2019 provides both IDE and necessary compiler and libraries.
|
||||
So if you have not got an IDE and prefer to develop solidity, Visual Studio 2019
|
||||
may be a choice for you to get everything setup easily.
|
||||
|
||||
Here is the list of components that should be installed
|
||||
in Visual Studio 2017 Build Tools or Visual Studio 2017:
|
||||
in Visual Studio 2019 Build Tools or Visual Studio 2019:
|
||||
|
||||
* Visual Studio C++ core features
|
||||
* VC++ 2017 v141 toolset (x86,x64)
|
||||
* VC++ 2019 v141 toolset (x86,x64)
|
||||
* Windows Universal CRT SDK
|
||||
* Windows 8.1 SDK
|
||||
* C++/CLI support
|
||||
|
||||
.. _Visual Studio 2017: https://www.visualstudio.com/vs/
|
||||
.. _Visual Studio 2017 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017
|
||||
.. _Visual Studio 2019: https://www.visualstudio.com/vs/
|
||||
.. _Visual Studio 2019 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2019
|
||||
|
||||
Dependencies Helper Script
|
||||
--------------------------
|
||||
@@ -300,7 +300,10 @@ Or, on Windows:
|
||||
|
||||
.. code-block:: bat
|
||||
|
||||
scripts\install_deps.bat
|
||||
scripts\install_deps.ps1
|
||||
|
||||
Note that the latter command will install ``boost`` and ``cmake`` to the ``deps`` subdirectory, while the former command
|
||||
will attempt to install the dependencies globally.
|
||||
|
||||
Clone the Repository
|
||||
--------------------
|
||||
@@ -362,11 +365,14 @@ And for Windows:
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "Visual Studio 15 2017 Win64" ..
|
||||
cmake -G "Visual Studio 16 2019 Win64" ..
|
||||
|
||||
This latter set of instructions should result in the creation of
|
||||
**solidity.sln** in that build directory. Double-clicking on that file
|
||||
should result in Visual Studio firing up. We suggest building
|
||||
In case you want to use the version of boost installed by ``./scripts/install_deps.ps1``, you will
|
||||
additionally need to pass ``-DBoost_DIR="..\deps\boost\lib\cmake\Boost-*"`` and ``-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded``
|
||||
as arguments to the call to ``cmake``.
|
||||
|
||||
This should result in the creation of **solidity.sln** in that build directory.
|
||||
Double-clicking on that file should result in Visual Studio firing up. We suggest building
|
||||
**Release** configuration, but all others work.
|
||||
|
||||
Alternatively, you can build for Windows on the command-line, like so:
|
||||
|
||||
Reference in New Issue
Block a user