Hi Andreas, On Jan 18, 2008 5:40 PM, Andreas Köhler <[EMAIL PROTECTED]> wrote:
> Hi Nathan, > > Am Donnerstag, den 17.01.2008, 22:27 -0500 schrieb Nathan Buchanan: > > I'm trying to get the gda-dev2 branch (r16869) working under windows and > am > > running into a couple problems. > > > > I have obtained libgda, compiled it and everything looks good from > there, > > however it seems a few gnucash includes are missing in backend\gda for > me. > > Unfortunately I don't know the code well enough to do anything about it > :(. > > Could I have a few pointers? > > > > Thanks, > > Nathan > > > --8<--- > > Creating library file: .libs/libgnc-backend-gda-utils.dll.a > > .libs/gnc-backend-util-gda.o (.text+0x3e9): In function > `gnc_gda_get_getter': > > > c:/soft/gnucash/build/src/backend/gda/../../../../repos/src/backend/gda/gnc- > > backend-util-gda.c:141: undefined reference to > > `qof_class_get_parameter_getter' > --8<--- > > we need to specify all libraries we link to because DLLs do not allow > unresolved symbols. The above error probably can be fixed by adding > ${QOF_LIBS} to one of the _LIBADD variables in > src/backend/gda/Makefile.am. It would be damn cool if you could come up > with a minimal but complete list of additions we need to build on > Windows. This got it working for me. Thanks. I have it built and running, but the gda stuff crashes. Maybe Phil could give me a few pointers on how to make the gda backend more talkative. I get the following from gnucash.trace when I open an exiting empty gnc file, choose save as, and enter the name test.db. * DEBUG <qof.session> [enter ../../../../repos/lib/libqof/qof/qofsession.c:qof_session_begin()] sess=0234D0A0 ignore_lock=0, book-id=C:\Documents and Settings\Nathan\.gnucash\data\test.db * DEBUG <qof.session> [enter ../../../../repos/lib/libqof/qof/qofsession.c:qof_session_load_backend()] list=5, initted=true * INFO <qof.session> [qof_session_load_backend] failed to load 'C' using access_method * DEBUG <qof.session> [leave qof_session_load_backend()] * DEBUG <qof.session> [enter ../../../../repos/lib/libqof/qof/qofsession.c:qof_session_load_backend()] list=5, initted=true * INFO <gnc.backend> [gnc_gda_check_sqlite_file] Has '.db', doesn't exist (errno=2) -> GDA * INFO <qof.session> [qof_session_load_backend] selected GnuCash LibGDA Backend * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_commodityref registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_accountref registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_txref registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_lotref registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_string registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_boolean registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_int registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_int64 registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_double registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_guid registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_timespec registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_gdate registered * DEBUG <gnc.backend> [gnc_gda_register_col_type_handler] Col type ct_numeric registered * DEBUG <qof.engine> [enter ../../../../repos/lib/libqof/qof/qofbook.c:qof_book_set_backend()] book=0178A3C8 be=02361618 * DEBUG <qof.engine> [leave qof_book_set_backend()] * DEBUG <qof.session> [leave qof_session_load_backend()] * DEBUG <gnc.backend> [enter ../../../../repos/src/backend/gda/gnc- backend-gda.c:gnc_gda_session_begin()] I've scattered some PWARN statements throughout gnc_gda_session_begin() in the hopes to find out where I'm running into problems...compiling now. I'm wondering if there's a better way to make it tell me more. Maybe something like --log "gnc.backend=debug", but for the backend gda stuff? Thanks, Nathan > > > Thanks for pioneering :-) > > -- andi5 _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel