Re: question about compiling
John Ralls writes: > On Aug 10, 2014, at 7:48 PM, Andrew Schein wrote: > >> Hi all - >> >> I have been toying around with gnucash sources for the first time, and was >> interested to know if there are existing practices for fast compilation? >> For example, "make install" takes 30 seconds even if nothing has changed. >> Is there a fast way to iterate code changes and test? >> > > You can cd to the subdirectory where you're working and run make && > make check. That's way faster than building all of GnuCash and > installing it, but it depends on there being good test > coverage. Unfortunately for most of GnuCash that means you need to > write tests before you start changing things. GnuCash is huge and > doesn't run from the build directory, so if you need to test the whole > application you're pretty much stuck with a rather long > edit-build-install-test cycle. Moreover, if you're only changing C files (and not header files), then you can often just "make && make check && make install" from the specific directory you're working in. I.e., you don't necessarily need to rebuild/install the entire project. (I'll also add that 30s for "make install" is pretty darn fast. On Win32 it can take minutes, or more). > Regards, > John Ralls -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH warl...@mit.eduPGP key available ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: question about compiling
On Aug 10, 2014, at 7:48 PM, Andrew Schein wrote: > Hi all - > > I have been toying around with gnucash sources for the first time, and was > interested to know if there are existing practices for fast compilation? > For example, "make install" takes 30 seconds even if nothing has changed. > Is there a fast way to iterate code changes and test? > You can cd to the subdirectory where you're working and run make && make check. That's way faster than building all of GnuCash and installing it, but it depends on there being good test coverage. Unfortunately for most of GnuCash that means you need to write tests before you start changing things. GnuCash is huge and doesn't run from the build directory, so if you need to test the whole application you're pretty much stuck with a rather long edit-build-install-test cycle. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
question about compiling
Hi all - I have been toying around with gnucash sources for the first time, and was interested to know if there are existing practices for fast compilation? For example, "make install" takes 30 seconds even if nothing has changed. Is there a fast way to iterate code changes and test? Cheers, Andy -- Andrew I. Schein www.andrewschein.com ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: IRC question about compiling aqbanking
Hi David, just to explain the open question about compiling aqbanking on IRC at http://lists.gnucash.org/logs/2007-08-23.html#T23:35:26 23:35:26 any of you familiar with aqbanking? 23:35:34 im getting a compile error when trying to compile it 23:35:52 jobgetbalance_p.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AB_JobGetBalance_FreeData' 23:49:39 dmb: are you compiling Head or a release tarball? 23:50:33 at this point, I don't think the most recent svn source will work with gnucash even if it compiles 23:54:44 I haven't had a problem with the 2.2.x series, but the 2.9.x will be a problem Yes, that is still correct: Gnucash will only work with aqbanking 2.2.x or 2.3.x (which is svn-trunk) and gwenhywfar 2.6.x (which is svn-trunk). But GnuCash will *not* work with 2.9.x (which is svn-branch-aq3) or gwenhywfar-2.9.x (which is svn-branch-aq3), whose SVN code partially doesn't compile anyway. See [1] for pointers to the SVN repositories. 23:59:01 dbr: release 23:59:21 dbr: the line of code it doesn't like is static void GWENHYWFAR_CB AB_JobGetBalance_FreeData(void *bp, void *p 23:59:46 i don't seem to understand why it looks like he is trying to return 2 types 23:59:54 although it might be some advanced concept of c i never learned 00:00:12 that's beyond my programming knowledge 00:00:37 but I thought it was C++ for aqbanking and gwenhywfar 00:20:35 dmb: my copy of that file shows that line ending in ); 00:21:16 kinda like one would expect from the error message. Good suggestion, but in this case the error message was caused by the C macro GWENHYFAR_CB which is the word directory before the function name. This is hinted at by the error message "expected ... *before* AB_JobGetBalance_FreeData". If a missing semicolon had been the error, the error message would have told something about "unexpected end of xyz after )" or similar, but not something about *before* xyz. 00:21:26 i just compiled gwenhyfar myself 00:21:33 and it worked 00:23:52 so try adding the closing paren and the semicolon and see if aqbanking compiles 00:24:02 then wonder about how the file got corrupt 00:24:44 it worked when i recompiled gwenfar for some reason Probably "dmb" rather had an old version of gwenhywfar or a mixup of different gwenhywfar versions around, which caused a wrong definition of the macro "GWENHYWFAR_CB" instead of the correct definition, which in turn caused this incomprehensible compiler error :-(. In general, the error reporter should have mentioned his/her package versions first; maybe you could have pointed him/her towards using the most up-to-date packages first. In any case, thanks for the aqbanking support :-) Christian [1] http://article.gmane.org/gmane.comp.finance.aqbanking.devel/1276 ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel