Jump to content

Windows based Ripple Validator


RippedGaz

Recommended Posts

Hello all,

I am attempting to set up a Windows based Validator, with system details;

  • AWS based server
  • Windows Server 2019 Datacenter
  • Xeon 2.3GHz quad core x64 based processor
  • RAM: 16GB
  • SSD: 80GB (plus another 50GB if required)
  • I'm using Visual Studio Community 2019 16.3.5, with 'Desktop development with C++'.

There is a pretty good guide below and I have gone all of the way through this including SSH, Git, Boost etc;
https://github.com/ripple/rippled/blob/master/Builds/VisualStudio2017/README.md

The CMakeSettings.json I copied from the example given at;
https://github.com/ripple/rippled/blob/master/Builds/VisualStudio2017/CMakeSettings-example.json

And of course I checked and updated the Visual Studio version to be 'Visual Studio 16 2019 Win64', as well as the Boost and OpenSSL locations.

When I go to compile and build the project I get the below;

Error        CMake Error at Builds/CMake/RippledSanity.cmake:77 (message):

 

  Visual Studio 32-bit build is not supported.  Use -G"Visual Studio 16 2019 Win64"        C:\Program Files\Git\Cloned\rippled\Builds/CMake/RippledSanity.cmake    77        

I've looked and checked everywhere, but I'm missing something. Any ideas people?

The full build Output is;

1> CMake generation started for configuration: 'x64-Debug'.
1> Command line: "cmd.exe" /c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX:PATH="C:\Program Files\Git\Cloned\rippled\\out\\install\\x64-Debug" -DBOOST_ROOT:STRING="C:/lib/boost" -DOPENSSL_ROOT:STRING="C:/Program Files/OpenSSL-Win64"  -DCMAKE_CONFIGURATION_TYPES="Debug" "C:\Program Files\Git\Cloned\rippled" 2>&1"
1> Working directory: C:\Program Files\Git\Cloned\rippled\build\x64-Debug
1> [CMake] -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.23.0.windows.1")
1> [CMake] -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763.
1> [CMake] -- The C compiler identification is MSVC 19.23.28106.4
1> [CMake] -- The CXX compiler identification is MSVC 19.23.28106.4
1> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
1> [CMake] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
1> [CMake] -- Detecting C compiler ABI info
1> [CMake] -- Detecting C compiler ABI info - done
1> [CMake] -- Detecting C compile features
1> [CMake] -- Detecting C compile features - done
1> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
1> [CMake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe -- works
1> [CMake] -- Detecting CXX compiler ABI info
1> [CMake] -- Detecting CXX compiler ABI info - done
1> [CMake] -- Detecting CXX compile features
1> [CMake] -- Detecting CXX compile features - done
1> [CMake] -- Using 2 cores for ExternalProject builds.
1> [CMake] CMake Error at Builds/CMake/RippledSanity.cmake:77 (message):
1> [CMake]   Visual Studio 32-bit build is not supported.  Use -G"Visual Studio 16 2019
1> [CMake]   Win64"
1> [CMake] Call Stack (most recent call first):
1> [CMake]   CMakeLists.txt:26 (include)
1> [CMake] -- Configuring incomplete, errors occurred!
1> [CMake] See also "C:/Program Files/Git/Cloned/rippled/build/x64-Debug/CMakeFiles/CMakeOutput.log".
1> [CMake]
1> cmd.exe /c ""C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX:PATH="C:\Program Files\Git\Cloned\rippled\\out\\install\\x64-Debug" -DBOOST_ROOT:STRING="C:/lib/boost" -DOPENSSL_ROOT:STRING="C:/Program Files/OpenSSL-Win64"  -DCMAKE_CONFIGURATION_TYPES="Debug" "C:\Program Files\Git\Cloned\rippled" 2>&1" returned with exit code: 1

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Looks like you installed a 32 bit version of Visual Studio ("program files (x86)"). Why do you want to have VS on a server anyways?! General usefulness or performance of running server software on Windows aside, you really should build your software elsewhere and only add the resulting binary + config to your server.

Link to comment
Share on other sites

Many thanks for your reply.

It would be great in a perfect world to have a full set of servers available to develop, test, release and production. But I don't and I don't want to.

Looks like Visual Studio is only 32bit and only has some components that can handle 64bit....

Just found the below. Great.... so in essence I can't use Windows via Visual Studio to create a Ripple Validator.

"Visual Studio remains a 32 bit application, though certain components (e.g., diagnostics/debuggers, MSBuild, compilers, designers) will take advantage of 64-bit processors if available."

https://developercommunity.visualstudio.com/content/problem/517541/vs-2019-downloaded-x64-version-installed-x86.html

I just updated to the latest patch of VS 2019 16.3.6 and no difference. Unless anyone else has some more info, it looks like VS/Windows can't be used to run the Ripple Validator.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...