<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 13.07.24 um 13:25 schrieb Marco van
de Voort via lazarus:<br>
</div>
<blockquote type="cite"
cite="mid:077c1cda-3b42-4052-8f45-7e2c91469dc8@pascalprogramming.org">
<br>
Op 10-7-2024 om 12:59 schreef Arí Ricardo Ody via lazarus:
<br>
<blockquote type="cite">
<br>
I'm trying to use SQLite with Lazarus on a Linux Mint. It is
asking for a module ¨libsqlite3.so¨ (without the quotes). I
installed sqlite on my linux with apt. I'm not finding
¨libsqlite3.so¨ anywhere on my SSD, and I also couldn't figure
out which directory I should put it in if I found it. At most I
can find a module ¨libsqlite3.so.0¨ in the /usr/lib directory.
<br>
<br>
Would anyone help me, please?
<br>
<br>
</blockquote>
An earlier reply of me got lost, probably something to do with
sending it while tethered to a phone.
<br>
<br>
Most of the database headers have a way of overriding names from
code, without recompiling FPC/Lazarus, this has been done to
improve the longevity of FPC releases if things change in some new
linux distribution(version)
<br>
<br>
Try to
<br>
<br>
- include unit sqlite3dyn in your main (.lpr) program.
<br>
</blockquote>
<p><br>
</p>
<p><b>Beware</b>:<br>
</p>
<p>[john1@manjaro ~]$
/run/media/john1/ntfs1/PROJEKTE/Lazarus/Laufdaten/GUI/laufdaten<br>
Threading has been used before cthreads was initialized.<br>
Make cthreads one of the first units in your uses clause.<br>
Runtime error 211 at $0000000000435FDD<br>
$0000000000435FDD<br>
<br>
</p>
<p><br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:077c1cda-3b42-4052-8f45-7e2c91469dc8@pascalprogramming.org">
<br>
- as the first line of your .lpr (or at least before the
application.* commands) add
<br>
<br>
tryinitializesqlite('libsqlite3.so.0');
<br>
<br>
Rinse, repeat, retry.
<br>
<br>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>