I figured it out. I wasn't specific enough before, the msbuild statement
that it failed on was building ledger.vcxproj. The
mpir\msvc\vs19\msbuild.bat couldn't find MSBuild.exe. For anyone wanting
to do this on Windows 10 with VisualStudio 2019 or 2017 change lines 15-19
in msbuild.bat to:
set vsw_exe="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"
for /f "usebackq tokens=1* delims=: " %%i in (`%vsw_exe% -latest -requires
Microsoft.Component.MSBuild`) do (
if /i "%%i"=="installationPath" set InstallDir=%%j)
This works on these versions of VS. Anything before that will require
something different to locate msbuild as vswhere, according to microsoft,
didn't exisit before then.
With these changes this should be hands down the easiest Ledger build on
Windows. I didn't try Chocolatey but I'm not sure how that could make this
easier.
On Thursday, January 21, 2021 at 12:43:19 PM UTC-5 acer wrote:
> I'm attempting to do a windows build using
> https://github.com/FullofQuarks/Windows-Ledger-Binaries.
> It has worked great until I ran the build statement "msbuild..." in the
> powershell script. The build failed referencing not being able to find
> gmp.h in line 131 of system.hh. The error message put out by msbuild is:
> my\path\to\ledger\system.hh (131,10): fatal error C1083: Cannot open
> include file: 'gmp.h': No such file or directory
> [my\path\to\ledger\src\ledger.vcxproj]
>
> Can someone point me in the right direction to make this work? Btw i'm on
> windows10 32 bit
>
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/62d36036-474c-4f12-831f-bfa9f87b3fben%40googlegroups.com.