logs.zip (1.8 MB)
I am having issues installing FNC components for Linux64. I'm using RAD Studio 12.3. I have attached the Log files
logs.zip (1.8 MB)
I am having issues installing FNC components for Linux64. I'm using RAD Studio 12.3. I have attached the Log files
Hi,
This normally means you need to install zlib in the ubuntu machine, and refresh the SDK. (The error is that it can't find lz)
Please take a look at
and the linked doc:
Just an extra tip:
Note that to install FNC, you will also need to install FMX Linux from getit
I can compile FMX run apps in Linux Ubuntu, but as soon add an FNC component the compilation fails. I suspect it is a smart setup issue.
I have FMX Linux installed.
Do you have zlib installed in linux? While zlib is not required for a simple app, FlexCel requires it to create xlsx files (which are just zip files). And while zlib is not strictly required, it is listed in the prerequisites by embarcadero: Linux Application Development - RAD Studio
The error in the log says C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\ld-linux.exe: error: cannot find -lz [C:\tms\TMS Setup\Temp\p\tms.fnc.core_d12_linux64_Debug\FMXTMSFNCCorePkg.dproj]
which indicates a missing zlib (-lz
)
Can you check if apt-get reports zlib1g-dev installed? (note that it must be "dev" version, not the standard zlib package. If you do sudo apt-get install zlib1g-dev
, does it tell you that it is already installed?
zlib1g-dev is already the newest version (1:1.3.dfsg-3.1ubuntu2.1)
Funny thing is that it worked flawlessly until the latest update
Funny thing is that it worked flawlessly until the latest update
It is still working here without issues, I just tried it here right now, just in case:
The problem still is that it isn't finding libz.a in the dev machine. If you have installed it in the linux machine and then refreshed the linux sdks in the dev machine, it should be there and in a place where the linker can find it.
I wonder, where is your libz.a located in your dev machine? For example, mine is at:
r:\Users\adrian\Documents\Embarcadero\Studio\SDKs\pop22.04.sdk\usr\lib\x86_64-linux-gnu\libz.a
And if you look at the log, that folder is passed to the linker in the search path:
Looking at your log, I see it is passing C:\Users\TheSorcerer\Documents\Embarcadero\Studio\SDKs\ubuntu24.04.sdk\usr\lib\x86_64-linux-gnu
So I wonder, can you confirm you have the file
`C:\Users\TheSorcerer\Documents\Embarcadero\Studio\SDKs\ubuntu24.04.sdk\usr\lib\x86_64-linux-gnu\libz.a
in your dev machine? There is not really much more to it. If we pass that path to the linker and the file is there, it should find it.
The file is there
I have resolved the issue by totally uninstalling fnc components and reinstalling. I appreciate the effort.