Installation to Linux64 error

Hi!

I'm facing error to install Flexcel to Delphi Tokyo/Linux platform.

this is the log:

----Build started-------------------------------------------- 25/05/2017 - 15:49:17,05
msbuild.exe "C:\VCL\TMS\FlexCel\Packages\dTokyo\FlexCel_Core.dproj" "/target:Make" "/p:config=Debug" "/p:Platform=Linux64" "/p:DCC_ObjPath=C:\VCL\TMS\FlexCel\ThirdParty\Skia\Linux64"  
Microsoft (R) Build Engine Version 3.5.30729.8795
[Microsoft .NET Framework, Version 2.0.50727.8784]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 25/05/2017 15:49:17.
Project "C:\VCL\TMS\FlexCel\Packages\dTokyo\FlexCel_Core.dproj" on node 0 (Make target(s)).
  Criando diret¢rio ".\Linux64\Debug".
  Criando diret¢rio "bpl\Linux64".
_PasCoreCompile:
  Embarcadero Delphi for Linux 64 bit compiler version 32.0
  Copyright (c) 1983,2016 Embarcadero Technologies, Inc.
  Linker command line: "C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe" -o bpl\Linux64\bplFlexCel_Core250.so -e _ZN12Flexcel_core14initializationEv --gc-sections --version-script bpl\Linux64\FlexCel_Core.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\cicer\OneDrive\Documentos\Embarcadero\Studio\SDKs\ubuntu16.04.sdk -L "C:\Program Files (x86)\Embarcadero\Studio\19.0\redist\Linux64" -L C:\VCL\TMS\FlexCel\ThirdParty\Skia\Linux64 -L "c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\release" -L C:\Users\cicer\OneDrive\Documentos\Embarcadero\Studio\19.0\Imports -L "C:\Program Files (x86)\Embarcadero\Studio\19.0\Imports" -L C:\Users\Public\Documents\Embarcadero\Studio\19.0\Dcp\Linux64 -L "C:\Program Files (x86)\Embarcadero\Studio\19.0\include" -L C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl\Linux64 -L "C:\VCL\TeeChart Pro VCL FMX 2017.21\Delphi25\Delphi25.linux64\Lib" -L C:\VCL\DMVC\sources -L C:\VCL\DMVC\lib\Debug\Linux64\dmustache -L C:\VCL\DMVC\lib\Debug\Linux64\loggerpro -L C:\VCL\DMVC\lib\Debug\Linux64\delphistompclient -L C:\VCL\Devart\UniDAC\Lib\Linux64 -L C:\VCL\Devart\UniDAC\Bin\Linux64 -L C:\VCL\TMS\FlexCel\Packages\dTokyo\Linux64\Release -L C:\Users\cicer\OneDrive\Documentos\Embarcadero\Studio\SDKs\ubuntu16.04.sdk\usr\lib\gcc\x86_64-linux-gnu\5 -L C:\Users\cicer\OneDrive\Documentos\Embarcadero\Studio\SDKs\ubuntu16.04.sdk\usr\lib\x86_64-linux-gnu -L C:\Users\cicer\OneDrive\Documentos\Embarcadero\Studio\SDKs\ubuntu16.04.sdk\lib\x86_64-linux-gnu @bpl\Linux64\FlexCel_Core.lnk -lgcc_s -lrtlhelper_PIC -lc -ldl -lpthread -lz -l:bplrtl250.so -rpath $ORIGIN
C:\Program Files (x86)\Embarcadero\Studio\19.0\Bin\CodeGear.Delphi.Targets(399,5): error E2597: C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lz
   c:\program files (x86)\embarcadero\studio\19.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\19.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\19.0\lib\Linux64\release\rtl.imp.o:.rtl:function System::Zlib::crc32(unsigned long, unsigned char*, unsigned int): error: undefined reference to 'crc32'
C:\Program Files (x86)\Embarcadero\Studio\19.0\Bin\CodeGear.Delphi.Targets(399,5): error F2588: Linker error code: 1 ($00000001)
Done Building Project "C:\VCL\TMS\FlexCel\Packages\dTokyo\FlexCel_Core.dproj" (Make target(s)) -- FAILED.

Build FAILED.

"C:\VCL\TMS\FlexCel\Packages\dTokyo\FlexCel_Core.dproj" (Make target) (1) ->
(_PasCoreCompile target) ->
  C:\Program Files (x86)\Embarcadero\Studio\19.0\Bin\CodeGear.Delphi.Targets(399,5): error E2597: C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lz
  C:\Program Files (x86)\Embarcadero\Studio\19.0\Bin\CodeGear.Delphi.Targets(399,5): error F2588: Linker error code: 1 ($00000001)

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:30.97



Hi,
The error that you are getting:
error: cannot find -lz

Means that you need to install in zlib1g-dev Ubuntu, then refresh the install cache.

Follow the instructions here:
http://www.tmssoftware.biz/flexcel/doc/vcl/guides/linux-guide.html

1)sudo apt-get install build-essential
2)sudo apt-get install zlib1g-dev
3)Open the SDK manager, and refresh the SDK cache as shown in point 5) here:
FlexCel Linux Guide | FlexCel Studio for VCL and FireMonkey documentation

Once you have installed both libs in ubuntu and refreshed the SDK cache in Delphi, reinstall FlexCel. It should install correctly now.

It's working now.

Thank's a lot.