Re: [Vala] [Re] SQLite3 in Windows



May you wan to use Vala's bindings of libgda to use SQLite, PostgreSQL or
MySQL dabases without change your code!

Will be a good oportunity to test libgda on Vala. I've sent bindings updates
to 4.2 and working to create libgda-4.99.x bindings automatically. May we
can work together to make libgda Vala bindings rocks.

2011/9/17 Leoncio Gil <lgg2lgg2 gmail com>

Hello,

Although seems that there is no one interested in Vala inside Windows, I
will post the solution to the problem.

After search and try a lot I have solved the problem.

 1.- Download the MinGW (the "get-inst" one). Yes, It's come with valac for
Windows, but it is needed a tool that it doesn't come with valac.
 2.- In tha case of sqlite3 (can be helpfull as guide) edit the file
"sqlite3.def" and insert "LIBRARY sqlite3.dll" at the begin. Then run
x:\MinGW\bin\dlltool -d sqlite3.def -l libsqlite3.dll.a
 3.- Copy the sqlite3.h file to Vala's "include" directory and the ".def"
and ".dll.a" to the "lib" directory. Copy sqlite3.dll to "Windows\system32"
 4.- Now can compile the ".vala" file as valac -X -mwindows -X lsqlite3
--pkg=sqlite3 test.vala

A last thing: GLib's "printf" can work against Windows command line (aka
MS-DOS window)?

Thanks.


2011/9/5 Leoncio Gil <lgg2lgg2 gmail com>

Hello,

Some one has try to use SQLite3 under Windows?.

I have copy sqlite3.h and sqlite2ext.h to Valas's include directory and
the
sqlite3.dll to Windows\system32 but I am getting errors of type:
":(.text+0x142): undefined reference to  'sqlite3_exec' "

There is any .vapi file for sqlite3 under Windows? (I thinks that this is
what is making problems)

Thanks.


_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]