landgraf-dev / aws-sdk-delphi

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

Unable to build AWSSESV2 #17

Open duzzell opened 1 month ago

duzzell commented 1 month ago

Hello

I am building the AWSLandgrafSDK on Delphi 12.1. I am not using VMWare or any other VM system.

When building the AWSSESV2 package for Ubuntu 22 I get an error:

Cannot find -lgcc_s

None of the suggestions in this SO post (https://stackoverflow.com/questions/43023217/delphi-linux-ld-linux-exe-error-cannot-find-lgcc-s) has cleared the error.

I've tried looking for the missing file on the linux machine (an old Mac Mini running Ubuntu 22):

david@mini1:~$ sudo /sbin/ldconfig -p | grep libgcc libgccpp.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libgccpp.so.1 libgcc_s.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libgcc_s.so.1 libgcc_s.so.1 (libc6) => /lib/i386-linux-gnu/libgcc_s.so.1

This response suggests to me the file I need is present on the linux machine. For some reason, then, it's not being copied to Delphi when I install the Ubuntu SDK.

Do you know how I can solve this problem?

Thanks

wlandgraf commented 1 month ago

You only get that error when building awssesv2 package? Can you compile awscore? Can you compile any Delphi package for Linux platform?

duzzell commented 1 month ago

Using the package names displayed under AWSPackages and building for Linux 64-bit: I can build libawscore290.a and libawsses290.a. I can build all of the packages with names that begin with 'aws', like awssns290.bpl. I cannot build bplawssesv2290.so or bplawssqs290.so. Both give me the same cannot find -lbcc_s error. I can build packages for Linux from other sources such as Winsoft and sgcWebsockets.

duzzell commented 1 month ago

Any suggestions or ideas about fixing this compile for linux?

Thanks

wlandgraf commented 1 month ago

I retested here and all packages compile file for Linux platforms. I'm afraid your Delphi Linux platform might not be 100% correctly installed.

Can you maybe try TMS Smart Setup to build the packages?