<div>&nbsp;</div><div>&nbsp;</div><div>09.07.2014, 18:14, "Maksym Satula" 
&lt;[email protected]&gt;:</div><blockquote type="cite"><div><br />Thank 
you Daniel for your response. Actually, I have also tried to adjust C code to 
make it compilable, but after changing 2 or 3 source files I said myself "stop" 
and gave up. By some reason, I did not like the idea to amputate some (even 
small) pieces of functionality just to obtain some "non-vanilla" executable by 
any cost.<br /><br />Thank you Jostein, it worked for me! I've got ledger.exe 
without any extra steps. This is still a plan B for me, and my next goal is to 
have a native Windows binary compiled with MSVC 12 (VS 2013), which is much 
trickier. But that is not a topic for this thread.<br /><br />All the best!<br 
/>Max<br /><br />On Monday, June 2, 2014 6:49:51 AM UTC-4, Jostein Berntsen 
wrote:<blockquote style="margin: 0; margin-left: 0.8ex; border-left: 1px #ccc 
solid; padding-left: 1ex;"><div><br /><br />On Tuesday, May 27, 2014 5:23:26 PM 
UTC+2, Daniel Martins wrote:<blockquote style="margin: 0; margin-left: 0.8ex; 
border-left: 1px #ccc solid; padding-left: 1ex;"><div>I'm sorry for digging up 
this matter.<div>I've managed to build ledger on cygwin just now. Here are the 
steps I've taken, just in case anybody is 
interested:</div><div>&nbsp;</div><div><ul><li><span style="line-height: 
normal;">On reports.h</span></li><ul><li><span style="line-height: 
normal;">Comment lines #791 to #808</span></li><li><span style="line-height: 
normal;">Comment line #810</span></li></ul><li><span style="line-height: 
normal;">On quotes.cc</span></li><ul><li><span style="line-height: normal;">On 
line #65, replace #ifndef WIN32 with #if 0</span></li></ul><li><span 
style="line-height: normal;">On times.cc</span></li><ul><li><span 
style="line-height: normal;">Comment lines #36 and 
#38</span></li></ul><li><span style="line-height: normal;">On 
strptime.cc</span></li><ul><li><span style="line-height: normal;">Comment lines 
#16 and #189</span></li><li><span style="line-height: normal;">Replace every 
single occurrence of&nbsp;strnicmp by strncasecmp</span></li><li><span 
style="line-height: normal;">Add&nbsp;#include 
&lt;strings.h&gt;</span></li></ul></ul><div>Hope this helps! 
;)</div></div><div><br /><br />On Saturday, 11 August 2012 21:03:34 UTC+1, 
Anton Vodonosov wrote:<blockquote style="margin: 0; margin-left: 0.8ex; 
border-left: 1px #ccc solid; padding-left: 1ex;">I've just cloned the gitub 
ledger repo.<br /><br />Running ./acprep udpate on cygwin results in:<br /><br 
/>$ ./acprep update<br />acprep: INFO: Invoking primary phase: update<br 
/>acprep: INFO: Executing phase: update<br />acprep: INFO: Executing phase: 
pull<br />Traceback (most recent call last):<br />&nbsp; File 
"/usr/lib/python2.6/logging/__init__.py", line 776, in emit<br 
/>&nbsp;&nbsp;&nbsp; msg = self.format(record)<br />&nbsp; File 
"/usr/lib/python2.6/logging/__init__.py", line 654, in format<br 
/>&nbsp;&nbsp;&nbsp; return fmt.format(record)<br />&nbsp; File 
"/usr/lib/python2.6/logging/__init__.py", line 436, in format<br 
/>&nbsp;&nbsp;&nbsp; record.message = record.getMessage()<br />&nbsp; File 
"/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage<br 
/>&nbsp;&nbsp;&nbsp; msg = msg % self.args<br />TypeError: not all arguments 
converted during string formatting<br /><br /><br />I would appreciate advice 
how to finish the build </blockquote></div></div></blockquote><div><br />This 
looks interesting, did look into some of these files previously, but did not 
try all this out. I had a hard time getting ledger installed in cygwin, but 
found out this worked for me:<br /><br />Update CMakeLists.txt with this:<br 
/><br />add_definitions(-std=c++11 -U__STRICT_ANSI__)<br /><br />Then you can 
run "./acprep --python update" and it gets installed. It does not link up the 
ledger.exe files in /usr/bin correctly with the libledger-3.dll thought so I 
had to do that manually. <br /><br 
/>&nbsp;Jostein</div></div></blockquote></div><p>&nbsp;</p>-- <br /> <br /> --- 
<br /> You received this message because you are subscribed to a topic in the 
Google Groups "Ledger" group.<br /> To unsubscribe from this topic, visit <a 
href="https://groups.google.com/d/topic/ledger-cli/Iumqw02dTOs/unsubscribe";>https://groups.google.com/d/topic/ledger-cli/Iumqw02dTOs/unsubscribe</a>.<br
 /> To unsubscribe from this group and all its topics, send an email to <a 
href="mailto:[email protected]";>[email protected]</a>.<br
 /> For more options, visit <a 
href="https://groups.google.com/d/optout";>https://groups.google.com/d/optout</a>.</blockquote>

-- 

--- 
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/d/optout.

Reply via email to