landgraf-dev / aws-sdk-delphi

AWS (Amazon Web Services) SDK for Delphi.
Other
124 stars 31 forks source link

Unable to build Landgraf AWS SDK #11

Open duzzell opened 6 months ago

duzzell commented 6 months ago

Hello

I am using Delphi 11 on Windows 10. Following the steps for manual installation, I'm unable to build the packages in this library. The error I'm getting is

[dcc64 Fatal Error] awscore.dpk(28): E2225 Never-build package 'awscore' must be recompiled
[dcc64 Fatal Error] awslexruntimeservice.dpk(34): E2202 Required package 'awscore' not found

These errors were generated by choosing Build All on the AWSPackages entry in the Projects window. I get the same error on building awslexruntimev2280.bpl when I try to build the packages individually.

If it helps to know, I have some TMS components installed (Aurelius, BIZ Core Library, FNC). I also have downloaded and compiled the Appercept AWS SDK.

I would appreciate any help you can provide.

Thanks

wlandgraf commented 6 months ago

Sorry, the steps described in manual installation were swapped. We fixed it now. You should first add the folder to library path, and the compile all the packages. This way Delphi can find the compiled awscore compiled .dcp file, which is required to compile the other packages in the project group.

duzzell commented 6 months ago

On my system, awscore.dcp is written to C:\Users\david\Documents\Embarcadero\Studio\22.0\CatalogRepository\AWSLandgrafSDK\Packages\d11\Win64\Release. In Delphi 11, I went to Tools->Options->Language->Delphi->Library and added the above path to the 'Library path' dropdown. After cleaning the project and removing all the platform folders I still get the same error in the same place when I try to build the project.

Did I follow the instructions as you intended? I am not at all clear about 'Never-build' code that 'must be recompiled' .

Thanks

wlandgraf commented 6 months ago

Did I follow the instructions as you intended? I am not at all clear about 'Never-build' code that 'must be recompiled'

That usually means awscore.dcp was not found.

But, the folder you mentioned: C:\Users\david\Documents\Embarcadero\Studio\22.0\CatalogRepository\AWSLandgrafSDK\Packages\d11\Win64\Release in Win64, not Win32. You must add that directory to Win64 Delphi Library path. Then you can also add C:\Users\david\Documents\Embarcadero\Studio\22.0\CatalogRepository\AWSLandgrafSDK\Packages\d11\Win32\Release to the Win32 Delphi Library path.

Then compile all packages for both WIn32 and WIn64, pay attention to compile them for Release config, not Debug.