Error when building to Linux64 (RAD Studio 11)

I'm using TMS Subscription Manager v2.1.0.5
The component install perfectly to all other selected platforms (Win32, Win64, Android, Android64), but fails when I include the Linux64 platform among the selected ones.
Following is the part of the log that details the error. It called my attention that the file "sparkle.dproj" can be found at the mentioned directory.

Deleting file "sparkle.vrc".
_PasCoreCompile:
C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\dcclinux64.exe -$O- -$R+ -$Q+ --no-config -B -Q -Z -TX.so -AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults -DDEBUG -E.\Linux64\Debug -I"C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\debug";"C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\release";"C:\Users\andre\Documents\tmssoftware\TMS Busines Core Library\packages\d11.\Linux64\Debug";"C:\Users\andre\Documents\tmssoftware\TMS Busines Core Library\packages\d11..\bpl\Linux64";"C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11.\Linux64\Debug";"C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11..\bpl\Linux64" -LE..\bpl\Linux64 -LN.\Linux64\Debug -NU.\Linux64\Debug -NSSystem;Xml;Data;Datasnap;Web;Soap;;(Default) -O"c:\program files (x86)\embarcadero\studio\22.0\lib\Linux64\release";C:\Users\andre\Documents\Embarcadero\Studio\22.0\Imports;"C:\Program Files (x86)\Embarcadero\Studio\22.0\Imports";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Linux64;"C:\Program Files (x86)\Embarcadero\Studio\22.0\include";"C:\Program Files (x86)\Embarcadero\Studio\22.0\redist\Linux64";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\Linux64;C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\FmxLinux-1.66\Lib\Release -R"c:\program files (x86)\embarcadero\studio\22.0\lib\Linux64\release\EN";"c:\program files (x86)\embarcadero\studio\22.0\lib\Linux64\release";C:\Users\andre\Documents\Embarcadero\Studio\22.0\Imports;"C:\Program Files (x86)\Embarcadero\Studio\22.0\Imports";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Linux64;"C:\Program Files (x86)\Embarcadero\Studio\22.0\include";"C:\Program Files (x86)\Embarcadero\Studio\22.0\redist\Linux64";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\Linux64;C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\FmxLinux-1.66\Lib\Release -U"C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\debug";"C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\release";"C:\Users\andre\Documents\tmssoftware\TMS Busines Core Library\packages\d11.\Linux64\Debug";"C:\Users\andre\Documents\tmssoftware\TMS Busines Core Library\packages\d11..\bpl\Linux64";"C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11.\Linux64\Debug";"C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11..\bpl\Linux64" --syslibroot:C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk --libpath:C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk\usr\lib\gcc\x86_64-linux-gnu\9;C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk\usr\lib\x86_64-linux-gnu;C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk\lib\x86_64-linux-gnu -V -VN --description:"TMS Sparkle - Core Package" -NH.\Linux64\Debug -NO.\Linux64\Debug sparkle.dpk
Embarcadero Delphi for Linux 64 bit compiler version 35.0
Copyright (c) 1983,2021 Embarcadero Technologies, Inc.
Linker command line: "C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\ld-linux.exe" -o ..\bpl\Linux64\bplsparkle280.so -e _ZN7Sparkle14initializationEv --gc-sections --version-script ..\bpl\Linux64\sparkle.vsr -shared --no-undefined --export-dynamic -z noexecstack -z relro --build-id --eh-frame-hdr -m elf_x86_64 --dynamic-linker /lib64/ld-linux-x86-64.so.2 --sysroot C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk -L "C:\Users\andre\Documents\tmssoftware\TMS Busines Core Library\packages\d11\..\bpl\Linux64" -L "c:\program files (x86)\embarcadero\studio\22.0\lib\Linux64\release" -L C:\Users\andre\Documents\Embarcadero\Studio\22.0\Imports -L "C:\Program Files (x86)\Embarcadero\Studio\22.0\Imports" -L C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Linux64 -L "C:\Program Files (x86)\Embarcadero\Studio\22.0\include" -L "C:\Program Files (x86)\Embarcadero\Studio\22.0\redist\Linux64" -L C:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\Linux64 -L C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\FmxLinux-1.66\Lib\Release -L C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk\usr\lib\gcc\x86_64-linux-gnu\9 -L C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk\usr\lib\x86_64-linux-gnu -L C:\Users\andre\Documents\Embarcadero\Studio\SDKs\ubuntu20.04.sdk\lib\x86_64-linux-gnu @..\bpl\Linux64\sparkle.lnk -lgcc_s -lrtlhelper_PIC -lc -ldl -lpthread -lz -l:bplrtl280.so -l:bpltmsbcl280.so -l:bpldbrtl280.so -l:bplIndyCore280.so -l:bplIndyProtocols280.so -l:bplIndySystem280.so -rpath $ORIGIN
C:\Program Files (x86)\Embarcadero\Studio\22.0\Bin\CodeGear.Delphi.Targets(407,5): error E2597: C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\ld-linux.exe: error: cannot find -lz [C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11\sparkle.dproj]
C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::deflate(System::Zlib::z_stream&, int): error: undefined reference to 'deflate'
C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::deflateEnd(System::Zlib::z_stream&): error: undefined reference to 'deflateEnd'
C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::inflate(System::Zlib::z_stream&, int): error: undefined reference to 'inflate'
C:\Program Files (x86)\Embarcadero\Studio\22.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::inflateEnd(System::Zlib::z_stream&): error: undefined reference to 'inflateEnd'
C:\Program Files (x86)\Embarcadero\Studio\22.0\Bin\CodeGear.Delphi.Targets(407,5): error F2588: Linker error code: 1 ($00000001) [C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11\sparkle.dproj]
Done Building Project "C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11\sparkle.dproj" (Build target(s)) -- FAILED.

Build FAILED.

"C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11\sparkle.dproj" (Build target) (1) ->
(_PasCoreCompile target) ->
C:\Program Files (x86)\Embarcadero\Studio\22.0\Bin\CodeGear.Delphi.Targets(407,5): error E2597: C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\ld-linux.exe: error: cannot find -lz [C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11\sparkle.dproj]
C:\Program Files (x86)\Embarcadero\Studio\22.0\Bin\CodeGear.Delphi.Targets(407,5): error F2588: Linker error code: 1 ($00000001) [C:\Users\andre\Documents\tmssoftware\TMS Sparkle\packages\d11\sparkle.dproj]

0 Warning(s)
2 Error(s)

The installation does not fail when installing to RAD Studio 10.4.2
The manager builds all the selected platforms without any problems.

Dear @Murta_Andr, please try this: XDATA and Linux - #9 by wlandgraf.

Hi Wagner,

I have followed the procedures and installed:
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install zlib1g-dev

But I'm still having errors when trying to install TMS Sparkle to Linux64.

From the RAD Studio 11 IDE, I just checked that I'm able to create, compile and run regular FMX projects to Linux64

Following the same instructions to install the BIZ products to the RAD Studio 10.4.2 IDE, everything works perfectly.
That's saving my work for the moment, but eventually I would like to fully upgrade to the new RAD Studio 11.
If you have any other suggestion it would be great. Thanks.

Attached is the produced log file during the install attempt.
install_2021_09_20.log (138.4 KB)

That is still the same issue. Have you completed deleted and reimported the Linux SDK after you installed the packages in your Linux machine?

1 Like

You got the situation, Wagner. I forgot to click in the button "Update Local File Cache", under the "SDK Manager" for Linux option. After the cache was updated, I was able to build and install the entire BIZ products suite.
Thanks a lot for your support.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.