Re: [gnome-db] How to build libgda and use it with Vala
Vivien Malerba <[email protected]> Sat, 5 Sep 2015 14:37:07 +0200
| Newsgroups | gmane.comp.gnome.db |
|---|---|
| Message-ID | <CAEP1ZNn2pMxGxVxDy529etedSBG1p1q7EyR1qnRoQWtO3GRtoA@mail.gmail.com> |
Hi! Please note that the SQLite database provider works like a charm, but the Firebird one is not on par with the SQLite one (not time and incentive to work on it). Regards, Vivien 2015-09-05 14:31 GMT+02:00 <[email protected]>: > Hi Daniel, > > I couldn't get that macro's switches to work, I tried all sorts of > combinations of --with-firebird and --with-firebird-libdir-name to get the > script to see the Firebird libraries without success. > > The Firebird header files are in /usr/include/ and the client libraries > are in /usr/lib/i386-linux-gnu/ > > I tried: > > --with-firebird > > --with-firebird=yes > > --with-firebird=yes *--with-firebird-libdir-name=/usr/lib/i386-linux-gnu/* > > --with-firebird=/usr > *--with-firebird-libdir-name=/usr/lib/i386-linux-gnu/* > > *--with-firebird-libdir-name=/usr/lib/i386-linux-gnu/* > > none of which worked. I don't know if there's a bug in the macro or if I > was misunderstanding the instructions in the macro's header comments. > > Anyway, I noted the macro defaulted to searching /usr/include and /usr/lib > so I created symlinks for the client libraries: > > *sudo ln -s /usr/lib/i386-linux-gnu/libfbclient.so /usr/lib/libfbclient.so* > *sudo ln -s /usr/lib/i386-linux-gnu/libfbembed.so /usr/lib/libfbembed.so* > > and that seems to have done the trick: > > *Compiled providers:* > * Berkeley DB = no* > * Berkeley DB SQL = no* > * FireBird (client)= yes* > * FireBird (embed)= yes* > * MDB (MS Access) = no* > * MySQL = no* > * Oracle = no* > * PostgreSQL = no* > * SQLite = yes (embedded)* > * SQLCipher = yes* > * JDBC = no* > * WEB = no* > > > * LDAP = no*Thanks again for your help. > Steve. > > > > > On 2015-09-04 23:06, Daniel Espinosa wrote: > > As for m4/firebird.m4 (you should read It), --with-firebird to > automatically search the libs and headers. Because you follow standard > procedure I hope this will be enough > El sept. 4, 2015 3:59 PM, <[email protected]> escribió: > >> I have installed Firebird2.5-classic, the client library, the embedded >> library and the dev files following the instructions here: >> >> *https://help.ubuntu.com/community/Firebird2.5 >> <https://help.ubuntu.com/community/Firebird2.5>* >> >> but the script still does not compile for Firebird. >> >> If I use the find command to look for ibase.h it is in /usr/include >> >> *sudo find / -name ibase.h* >> */usr/include/ibase.h* >> >> so I think the dev files did install correctly. >> >> Is there something I can tweak to make the script find the Firebird dev >> files? >> >> >> >> >> On 2015-09-04 20:26, Daniel Espinosa wrote: >> >> You should install development package, in order to get Firebird pc file >> locatable by pkg-config. Then you'll see Firebird found and its provider >> compiled against. >> >> 2015-09-04 13:22 GMT-05:00 <[email protected]>: >> >>> Thanks again, Daniel >>> >>> The script now reaches the end successfully but I have one more >>> question, this is the list of 'Compiled providers' displayed in my terminal: >>> >>> *Compiled providers:* >>> * Berkeley DB = no* >>> * Berkeley DB SQL = no* >>> * FireBird (client)= no* >>> * FireBird (embed)= no* >>> * MDB (MS Access) = no* >>> * MySQL = no* >>> * Oracle = no* >>> * PostgreSQL = no* >>> * SQLite = yes (embedded)* >>> * SQLCipher = yes* >>> * JDBC = no* >>> * WEB = no* >>> * LDAP = no* >>> >>> Do I need to do something more to get Firebird active? I do have the >>> Firebird client libraries and dev files installed. >>> >>> Steve. >>> >>> >>> >>> >>> On 2015-09-04 18:02, Daniel Espinosa wrote: >>> >>> You should use >>> >>> VALA_API_VERSION=0.30 ./autogen.sh --enable-vala --enable-vala-extensions >>> >>> in order to compile against Vala-0.30 >>> >>> 2015-09-04 11:55 GMT-05:00 <[email protected]>: >>> >>>> Thanks Gergely and Daniel, >>>> >>>> I have Vala-0.29.2 on Linux Mint Mate which I have installed from >>>> source using the standard >>>> >>>> *./configure* >>>> >>>> *make* >>>> >>>> *sudo make install* >>>> >>>> vala, valac, vapicheck and vapigen are all in /usr/local/bin and >>>> libvala-0.30.so.0.0.0 is in /usr/local/lib >>>> >>>> When I run the command you have suggested >>>> >>>> ./autogen.sh --enable-vala --enable-vala-extensions >>>> >>>> The script halts with the following error: >>>> >>>> *checking for vapigen vapigen-0.26... no* >>>> *configure: Searching for vapigen-0.26 program...* >>>> *checking for vapigen-0.26... no* >>>> *configure: error: Can't locate vapigen-0.26 >= 0.26.0 program* >>>> >>>> It does not seem to accept vapigen-0.30 as > vapigen-0.26.0 >>>> >>>> I created a symlink as vapigen-0.26.0 and that got me past this error >>>> but then I got a similar error message for libvala and the symlink trick >>>> wouldn't work for that. Is it a bug or did I do something wrong? >>>> >>>> Regards >>>> >>>> Steve >>>> >>> >>> >>> >>> -- >>> Trabajar, la mejor arma para tu superación >>> "de grano en grano, se hace la arena" (R) (en trámite, pero para los >>> cuates: LIBRE) >>> >>> >> >> >> -- >> Trabajar, la mejor arma para tu superación >> "de grano en grano, se hace la arena" (R) (en trámite, pero para los >> cuates: LIBRE) >> >> > _______________________________________________ > gnome-db-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gnome-db-list > > _______________________________________________ gnome-db-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-db-list