Forum > General

Setting a path to link a dll

(1/3) > >>

clintonb:
Hi everyone.  I just got my ubintu setup and im giving lazarus another go.

I converted an old app tha uses a png unit that liks a dll.  When i try built i get an error that it cannot find -llpng.dll. bi checked the pass file and the name is correct as lpng.dll and the dll is there and theres no issue with case sensitivity.  Im assuming the -l refers to the directory and im supposed to specify this path? Can anyone offer any help?

KodeZwerg:
My 2 cents on that, a .dll is not for linux, it is for windows.

PascalDragon:

--- Quote from: clintonb on September 25, 2022, 08:51:51 pm ---I converted an old app tha uses a png unit that liks a dll.  When i try built i get an error that it cannot find -llpng.dll. bi checked the pass file and the name is correct as lpng.dll and the dll is there and theres no issue with case sensitivity.  Im assuming the -l refers to the directory and im supposed to specify this path? Can anyone offer any help?

--- End quote ---

You'll need to check whether the library in question does exist for Linux and if so you'll need to adjust the name of the library used in the function imports from 'png.dll' to the name in question (best to use a constant if that isn't the case yet and put that into suitable IfDefs).

If that library does not exist for Linux then you'll have to move to a different PNG library that exists for both platforms.

clintonb:
I dont have a problem if thats the caee but infortunatelt with the indy components using the idopenssl you need the ssleay and libeay dll files in the parent folder.

PascalDragon:

--- Quote from: clintonb on September 25, 2022, 09:02:48 pm ---I dont have a problem if thats the caee but infortunatelt with the indy components using the idopenssl you need the ssleay and libeay dll files in the parent folder.

--- End quote ---

On Linux Indy will link against the Linux OpenSSL library and that is usually provided by the system.

Navigation

[0] Message Index

[#] Next page

Go to full version