Jump to content
Sign in to follow this  
GabrielMoraru

[DCC Error] E2597 android-ndk ld.exe: cannot find shlwapi.dll

Recommended Posts

I get this error when I try to run my FMX program on my android phone:
 

Quote

 

[DCC Error] E2597 c:\Delphi\Delphi 11\CatalogRepository\AndroidNDK-21-22.0.48361.3236\android-ndk-r21\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\ld.exe: cannot find shlwapi.dll: No such file or directory 

[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

 

Both file exists: 

  • Windows -> shlwapi.dll
  • c:\Delphi\Delphi 11\CatalogRepository\AndroidNDK-21-22.0.48361.3236\android-ndk-r21\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\ld.exe

 

The NDK folder is 3,508,921kB.

_______

 

It worked yesterday.

What I have changed since then, was to install a USB driver from my phone's manufacturer (OnePlus Nord): OnePlus_USB_Drivers_Setup.exe

It installed this file: c:\Android\adb.exe

and more in Program Files.

Uninstalling the program will not delete the c:\Android\ folder.

Edited by GabrielMoraru

Share this post


Link to post

Fixed.

The error was in a library called by the DPR project.

The error msg was one of those "Error somewhere" errors you encounter in the C/++ world.

Could have been fixed in seconds with a proper error message from the DSK framework. Obviously C++/Android is not as good as Delphi at generating error messages.

 

Edited by GabrielMoraru

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×