Hi Tim-

I never got a working build with VC, but my notes suggest that I thought 
adding the explicit boost::bind namespace was the fix for that issue (and I 
sort of remember that was the source of lots of compile issues).

Also, when I was working on a mingw build, I had decided that plugging in 
some code from Google was the easiest way to provide strptime:

http://bugs.ledger-cli.org/show_bug.cgi?id=829


Max

On Friday, June 14, 2013 3:49:31 AM UTC-4, Tim Crews wrote:
>
> Hello:
>
> Since there are currently not any native Windows binaries publicly 
> available for Ledger 3.0, and it seems that an official release is 
> impending, I decided to make a stab at creating a Windows binary for the 
> world to share.  Up to now, I've been using a Cygwin build, but that's 
> going to be pretty inconvenient for most Windows users.
>
> After six hours of work, it is evident that Windows is not really a 
> friendly platform for open-source development.  But I think I've made some 
> progress today, and maybe just a little more work will get the job done.
>
> I have Visual Studio 2012, and no other older versions, so that's what I 
> used to build all of ledger's dependencies, and eventually ledger itself.
>
> There were quite a few dependencies to take care of, each of which has to 
> be obtained by ad-hoc methods because Windows users can't have modern 
> package management.  CMake and Python were relatively easy to take care 
> of.  I had to build Boost from scratch, because there are no pre-built 
> binaries for VC11.  I built Boost 1.46.1, because that's what the ledger 
> CMakeLists.txt specifies, but I also downloaded and built the latest 1.53.0 
> while I was at it.
>
> By far the most troublesome dependencies were GMP and MPFR.  If it hadn't 
> been for http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php, I 
> would have been defeated.  But that web page had enough hints to get me 
> going.  There is no Windows build support for GMP, but there is a forked 
> library called MPIR that is a drop-in GMP replacement.  Both GMP and MPFR 
> use non-standard build tools, and they both have other quirky build 
> requirements (manually laying a Microsoft build structure over a Unix 
> source tree, and manually re-arranging the source tree after the fact).  
> Anyway, I eventually got them built, and did the necessary work to convince 
> CMake that they existed.
>
> Eventually, I successfully finished the generation step (cmake -G "Visual 
> Studio 11" completed with plenty of warnings but no errors.)  This produced 
> a number of .vcxproj files, which I then opened in Visual Studio 2012.
>
> Now I'm stuck.  When I try to build libledger, I get lots of boost-related 
> error messages.  I tried repeating the build using boost 1.53 instead of 
> 1.46.1, but I still get the same errors.  If someone can help me resolve 
> those errors, I think I might have a Windows binary ready soon.
>
> I've attached a file with the error output for one file, account.cc.
>
> Thanks for any help that a boost expert can provide,
> Tim Crews
>
>
>
>
>
>

-- 

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to