Forum > Databases
sqlitelaz.lpk linking error
Aruna:
Hello, I am trying to compile then install sqlitelaz.lpk. Compiling is a success. When trying to link I get the errors below:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Build IDE: Exit code 2, Errors: 3, Warnings: 1Warning: svn not in path.Error: /usr/bin/ld.bfd: cannot find -lsqlitemake[2]: *** [Makefile:4667: lazarus] Error 1make[1]: *** [Makefile:5105: idepkg] Error 2Error: make: *** [Makefile:3793: idepkg] Error 2lazarus.pp(167,1) Error: Error while linking
Any guidance or workarounds would be most welcome. Thank you.
Aruna
TRon:
Do you run a Debian based distro ?
If answered yes then try installing the libsqlite dev package.
PS: Also make sure the FPC configuration contains the library path that matches your system.
Aruna:
--- Quote from: TRon on July 11, 2024, 04:13:52 am ---Do you run a Debian based distro ?Yes I do
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~$ uname -aLinux debian 6.4.8-usb #8 SMP PREEMPT_DYNAMIC Fri Feb 9 17:21:43 EST 2024 x86_64 GNU/Linux
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~$ lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 11 (bullseye)Release: 11Codename: bullseye
If answered yes then try installing the libsqlite dev package.
I already did :-)
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~$ dpkg -s libsqlite3-devPackage: libsqlite3-devStatus: install ok installed
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---aruna@debian:~$ apt list --installed | grep libsqlite3libsqlite3-0/oldstable,now 3.34.1-3 amd64 [installed,automatic]libsqlite3-dev/oldstable,now 3.34.1-3 amd64 [installed]
PS: Also make sure the FPC configuration contains the library path that matches your system.
This is where I can use some help, please. How does one access and edit the FPC configuration file?
--- End quote ---
TRon:
I applaud the contents of your reply but not the quoting :P so I'll refrain from quoting on those answers I considered to be correct :-)
--- Quote from: Aruna on July 11, 2024, 04:45:55 am ---This is where I can use some help, please. How does one access and edit the FPC configuration file?
--- End quote ---
Do you know how to invoke the fpc command line compiler from the terminal ? (PS: make sure it is the same fpc command line compiler that your Lazarus is configured to use)
If so then run that command with the option -va (you do not have to provide a file to compile). It will output a lot of output from the compiler including which fpc.cfg file is used (the location and name).
If you have the location and name of the fpc.cfg file then edit that file and look for an entry that reads something like:
--- Code: ----Fl/usr/lib/gcc/x86_64-linux-gnu/12
--- End code ---
That is what my own setup uses for library path but yours might differ. Make sure that path actually exist and in case not then modify it accordingly to your setup.
Aruna:
--- Quote from: TRon on July 11, 2024, 04:57:01 am ---I applaud the contents of your reply but not the quoting :P so I'll refrain from quoting on those answers I considered to be correct :-)
--- End quote ---
It has been a while since I last visited the forum and apologies about the quoting :-) and yes all your answers so far have been correct :D
I just wanted to give you as much information as I can to help resolve this :P
--- Quote ---
--- Quote from: Aruna on July 11, 2024, 04:45:55 am ---This is where I can use some help, please. How does one access and edit the FPC configuration file?
--- End quote ---
Do you know how to invoke the fpc command line compiler from the terminal ? (PS: make sure it is the same fpc command line compiler that your Lazarus is configured to use)
If so then run that command with the option -va (you do not have to provide a file to compile). It will output a lot of output from the compiler including which fpc.cfg file is used (the location and name).
--- End quote ---
No I have never used the command line compiler. Guess now is the time to start :D
--- Quote ---If you have the location and name of the fpc.cfg file then edit that file and look for an entry that reads something like:
--- Quote ---
--- Code: ----Fl/usr/lib/gcc/x86_64-linux-gnu/12
--- End code ---
--- End quote ---
--- End quote ---
I used Projects-->Project Options and plugged in the path there under compiler options. I have attached a screenshot. Still getting the error :-(
--- Quote ---That is what my own setup uses for library path but yours might differ. Make sure that path actually exist and in case not then modify it accordingly to your setup.
--- End quote ---
Many thanks for all the guidance. I will try again and get back to you.
Navigation
[0] Message Index
[#] Next page