Delpher2600 0 Posted May 18 Hello. I made ProjectGroup from host FMX-project and dynamic library-project (.so). I'm using standart code for call export function: {$IFDEF MSWINDOWS} procedure DStart; external 'DLLName.dll'; {$ENDIF} {$IFDEF ANDROID} procedure DStart; external 'libDLLName.so'; {$ENDIF} And when i tryed compilate it for Android. Delphi fired out with next error: [DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidNDK-21-22.0.48361.3236\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: cannot find -lDllName {DllName is library name} What is it and how fix it? Share this post Link to post
Jim McKeeth 104 Posted May 22 (edited) Not enough information really... On 5/17/2024 at 6:11 PM, Delpher2600 said: cannot find -lDllName {DllName is library name} but I would guess it is a path issue. Where is your libDLLName.so? Does it exist? How are you deploying it? Here is a post about deploying it. Edited May 22 by Jim McKeeth add quote Share this post Link to post
msohn 28 Posted May 22 On 5/18/2024 at 2:11 AM, Delpher2600 said: What is it and how fix it? Contrary to the Windows platform, the linker for Android/iOS/macOS needs the .so/.dylib, so it must be available when you compile (and link) your project. A quick and easy solution is to put the .so in the $(Platform)\$(Config) folder of your project. There are numerous elaborate explanations out there on why this is the case with the external linkers used for other platforms, but unfortunately I can't locate one right now. But you also need to deploy the .so - that's what Jims post is referring to. 1 Share this post Link to post
Delpher2600 0 Posted May 22 12 hours ago, msohn said: Contrary to the Windows platform, the linker for Android/iOS/macOS needs the .so/.dylib, so it must be available when you compile (and link) your project. A quick and easy solution is to put the .so in the $(Platform)\$(Config) folder of your project. There are numerous elaborate explanations out there on why this is the case with the external linkers used for other platforms, but unfortunately I can't locate one right now. But you also need to deploy the .so - that's what Jims post is referring to. But i don't know haw compilate so-library. When i just press big green button, it's just processing. and in the end RAD fireing out with error and showing me this page. And sub-folder bin in a folder Android>Release is empty. Share this post Link to post
Delpher2600 0 Posted May 22 And anyway, in the video which i guiding, not using compilated library. Share this post Link to post