[Lazarus] Accessing MS SQLServer database from Lazarus/FPC?

Bo Berglund bo.berglund at gmail.com
Sun Jan 23 23:25:32 CET 2011


On Sun, 23 Jan 2011 19:25:35 -0200, Marcos Douglas <md at delfire.net>
wrote:

>On Sun, Jan 23, 2011 at 7:13 PM, Bo Berglund <bo.berglund at gmail.com> wrote:
>> On Sun, 23 Jan 2011 21:22:06 +0100, Vincent Snijders
>> <vincent.snijders at gmail.com> wrote:
>>
>>>2011/1/23 Bo Berglund <bo.berglund at gmail.com>:
>>> Now I have rebuilt Lazarus with the changed sqldb.pp file in place in
>>>> the FPC sources. I used the Lazarus function to build itself.
>>>> But the code still rejects the EXEC verb with the same error message
>>>> as before.
>>>> I have probably not succeeded to make lazarus use the modified
>>>> sqldb.pp source file....
>>>
>>>That is correct, you have to build the fpc units separately first.
>>>When compiling in Lazarus, Lazarus doesn't use the fpc source
>>>directly, but only the compiled sqldb.ppu and sqldb.o
>>>
>>
>> Any ideas how this "build the fpc units separately first" is
>> accomplished?
>> I have installed FPC 2.4.2 from the binary distribution (on Windows)
>> and then to make Lazarus happy I also separately downloaded the FPC
>> 2.4.2 sources. It complained that it could not find them when I first
>> started lazarus after building from sources.
>>
>> I know how to build Lazarus, but not how to build FPC...
>
>See this tutorial to build FPC and Lazarus on Windows:
>http://wiki.lazarus.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29
>

The instructions tell me to download FPC 2.5.1 but I don't want that,
I want to just *recompile* my 2.4.2 with the single source change
being the patch of sqldb.pp I received in a post here.

It also tells me to get binutil stuff from a fpc fixes branch,
http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_4/install/binw32
using TortoiseSVN, but when I try that exactly nothing happens. :-(

Then I tried this command line command (all on one line):

svn co
http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_4/install/binw32
binw32

But it stalled completely, nothing was shown unlike when I retrieved
the lazarus sources.

Next:
The URL when clicked normally in a browser opens a page with a set of
exe files, though.

Am I supposed to click and download these one by one? It takes about a
minute or more for each of the 4 files I have tried and there are many
more (actually 29 files more). Why isn't there a zipfile with all of
these binaries so that one can download a single file to get the
binutils?

Then I am asked to get 2.5.1 trunk sources from SVN and make a clean
install from these....

Isn't there a simpler way????

When I already have a working fpc 2.4.2 can't I build a new fpc where
the single change is the sqldb.pp modification????
Isn't there a command similar to rebuilding lazarus that works for FPC
itself?
These instructions seem to be geared towards building FPC from scratch
without having anything at all....


-- 
Bo Berglund
Developer in Sweden





More information about the Lazarus mailing list