[fpc-devel] sqldb lazarus component
Joost van der Sluis
joost at cnoc.nl
Thu Dec 21 01:23:04 CET 2006
The sqldb-components in sqldblaz are just a simple wrapper around the
real sqldb-components. This wrapper is used by Lazarus, so you can drop
the components on a form.
Your problem isn't that the sqldblaz.ppu isn't there, but that sqldb
isn't compiled at all on a wince-target. So it's not available, and thus
Lazarus can't build the wrapper.
What you need is sqldb.ppu and mysqlconnXX.ppu. Now they aren't compiled
for wince, because no-one tested it. But in principle, it should work.
I think that you already compiled fpc by yourself. You can enable sqldb
for wince by doing the following:
1: Edit fcl/db/Makefile.fpc and add sqldb to dirs_wince
2: Edit fcl/db/sqldb/Makefile.fpc and add mysql to dirs_wince
3: go to fcl/db and run the command 'fpcmake -r -Tall'
4: recompile fpc and see what happens.
Maybe that you're lucky and that it will compile. If so, also compile
the sqldblaz-package in lazarus. And then: try
And for all: report your findings here. ;)
On Tue, 2006-12-19 at 12:42 +0100, alvise.nicoletti at siteland.it wrote:
> Hi to all, and excuse me if i'm writing to the wrong list but i just
> subrscibed ;)
>
> I got a problem that i'm not able to resolve... i'm using lazarus and
> freepascal compiler tools to cross-compile a software i'm developing to
> a Pocket PC with Windows 2003 inside.
>
> The system is winCe (widget) and ARM (architecture). Thanks to lazarus
> all works, but i got a problem...
>
> The sqldb component have no libraries to (cross)compile in wince-arm
> architecture...
> I need the sqldb component files:
> registersqldb.o
> sqldblaz.o
> registersqldb.ppu
> sqldblaz.ppu
>
> Compiled for arm-wince.
>
> I got the i386-win32 version under:
> C:\apps\lazarus\components\sqldb\lib\i386-win32\
>
> But the arm-wince directory (in the lib directory) is empty.
>
> I write to you cause this component should be open source, but i'm not
> able neither to compile it or to find the source, and i know that Joost
> van der Sluis that should be the component author write in that mailing
> list.
>
> I apologize if i wrote something wrong and if i'm asking for help, but
> i'm in a bit hurry and i have to discover if i can make my Pocket PC
> connect to a local mysql database as soon as possible, or i'll be forced
> to use .net (bleah).
>
> Actually i have no problems to compile an executable application that
> works on it, but if i add SQLdb components i get, of course, compiling
> errors.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
--
Met vriendelijke groeten,
Joost van der Sluis
CNOC Informatiesystemen en Netwerken
http://www.cnoc.nl
More information about the fpc-devel
mailing list