On Thursday 22 April 2010, John Ralls wrote: > On Apr 22, 2010, at 9:14 AM, Geert Janssens wrote: > > That worked with some minor tweaking. I'll report my actions here for > > future reference: > > > > * First I added these two lines to .jhbuildrc-custom: > > mysql_dir = os.path.join(os.environ["HOME"], "Library/mysql") > > append_autogenargs("libdbi-drivers", "--with-mysql --with-mysql-incdir=" > > + mysql_dir + "/include --with-mysql-libdir=" + mysql_dir + "/lib") (the > > second line is split up by my mail client, it should be on one line) * > > Then it took me a while to figure out where to get the mysql headers and > > libraries. Turns out mysql publishes them as the "MySQL C connector". > > (look for mysql-connector-c in the download section on the mysql website) > > * Next I had to modify the directory layout of this download: the dbi > > driver expects to find the headers in include/mysql, while they come in > > include/ by default. A simple move of the headers to this subdirectory > > fixed it * Finally before running gnucash, the path the myql-connector > > lib directory has to be added to DYLD_LIBRARY_PATH. For simplicity, I > > chose to export it on the command line: > > export DYLD_LIBARY_PATH=~/Library/mysql/lib > > <run gnucash> > > > > I may add a cleaned up version of this info to the wiki, so others that > > wish to experiment with gnucash/mysql on OS X can repeat the steps. > > > > Just out of curiosity, are there any plans to include mysql/postgres > > integration in the jhbuild system (as an optional module perhaps) ? > > It sounds like the mysql stuff is pre-compiled. Jhbuild doesn't work with > that. If there's a source option and you write the modules for it, I'll > add them to gnucash.modules. > Yes, for this test I took the easy route. My experience with jhbuild is very limited until now.
The sources for for the mysql libs are also available though, so I may give it a try later to create a module. Geert _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel