[ld Error] ld: library not found for -lFMXTMSFNCCorePkgDXE13

Try to use TTMSFNCCloudStorageServices or TTMSFNCCloudGoogleDrive
to develop cross-platform application includes Windows, Android and iOS app in C++ Builder (RAD Studio 10.4.1).
Just put the icon on the form and try to build the application.
For Window 64-bit, it is ok to build the program, and successfully connected to Google Drive API.
Failed in Window 32-bit. due to
[ilink32 Error] Error: '...FMXTMSFNCCOREPKGDXE13.BPI' contains invalid OMF record, type 0x2f
Some said that is because the BPI is for 64-bit only.
Thus, I guess Android 32-bit might be fail, too.
While I change to iOS 64-bit, got another error message.

[ld Error] ld: library not found for -lFMXTMSFNCCorePkgDXE13

Even I changed to use Delphi, still failed to build.

[DCC Error] E2597 ld: file not found: /System/Library/Frameworks/WebKit.framework/WebKit
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

Can you help me to solve the problem?
"To use TMSFNCCloudGoogleDrive to connect Google Drive"

Thanks...

Hi,

The error you indicate is because you need to add the missing frameworks to the SDK manager in the IDE. Please add the WebKit.framework following the instructions here: TMS Software | Article | Installing TMS components with shared units

Thanks for your reply.
And...if I use FMX Cloud Pack and got error like this:
[ld Error] ld: library not found for -lTMSFMXCloudPackPkgDXE13
It is also due to that I didn't add the WebKit.framework to the SDK Manager?
Another problem is that I can build Android 32-bits app when using FMX Cloudpack and FNC Cloudpack.
But while I execute the app, I got another error message on the android phone.
When using TMS FMX Cloudpack, the error message is
"Java class JCustomTabsIntent_Builder could not be found."
While when using TMS FNC Cloudpack, the error message is
"Java class JFNCWebChromeClient could not be found."
Please help to solve the problem. Tks.

Please look here to fix these errors: TMS Software | TMS FMX Android support

Hello Pieter
Thanks for your reply.
But, After I added WebKit.Framework and update file cache, still error.
For C++Builder, the error message is

[ld Error] ld: library not found for -lFMXTMSFNCCorePkgDXE13

But I can certainly found the package file "FMXTMSFNCCorePkgDXE13.bpl"
in Bpl directory and Win64 directories.

In the menu Project -> Packages, the TMS FNC Core and Cloud Pack had all been checked.

Could you help to solve the problem?

Hi,

Can you check in the installation directory (this is under ...\appdata\local\tmssoftware...) if the FMXTMSFNCCorePkgDXE13.bpl file is located there in one of the sub directories? If so, you will need to add this directory to the C++ library path in the IDE.

I am now using Rad Studio 11 Alexandrial now.
And, still, similar error occured excep this time the error message is

[ld Error] ld: library not found for -lFMXTMSFNCCorePkgDXE14

I am sure that the FMXTMSFNCCorePkgDXE14.bpi is in the directory

C:\Users[User Name]\AppData\Local\tmssoftware\registered\TMS FNC Core

and the directory is in the C++ Library path
(Tools -> Options -> Language -> C++ -> Paths and Directories -> System Include path)
and
(Tools -> Options -> Language -> C++ -> Paths and Directories -> Library path)

But I can't build an executable app in iOS device even the app contains only one TTMSFNCWidgetLCDLabel

Can you help to solve the problem?

Can you verify if the file is present in this folder:

..\Users\Public\Documents\Embarcadero\Studio\22.0\DCP\iOSDevice64\Debug\

And if it's not, then you need to copy it from

..\Users\Public\Documents\Embarcadero\Studio\22.0\DCP\iOSDevice64\

or from the installation directory

I copied the file as ur direction but in vain. Still could'nt build the app.

I just found that it is ok for Delphi.
but failed to build for C++ Builder.
Can you help to figure where the problem is?

I wonder if this is the problem.
in the project file (*.cbproj)
FMXTMSFNCCorePkgDXE14 was supposed to use
FMXTMSFNCCorePkgDXE14.lib
instead of FMXTMSFNCCorePkgDXE14.bpi or FMXTMSFNCCorePkgDXE14.bpl
but the FMXTMSFNCCorePkgDXE14.lib was stored at
C:\Users\Courant\AppData\Local\tmssoftware\registered\TMS FNC Core\Delphi11\Win32\Release

is that mean if I use C++ Builder
I can obly develop for Win platform?

Hi,

That's strange, can you start with a new project, and then immediately target iOS, choosing the correct library file when compiling/linking? It should prompt for libFMXTMSFNCCorePkgDXE14.a.

I starter a new blank project and target iOS immediately.
Just put a TMSFNCWidgetGauge and the main form.
It happened again.
Just can't build an iOS app using TMS anything via C++ Builder with the same error message:[ld Error] ld: library not found for -lFMXTMSFNCCorePkgDXE14

Is that means I just can't develop via C++ Builder?

That's strange, can you try manually compiling the Delphi packages from the IDE and see in the output folder if the files are OK, then switch the package platform to iOS 64 bit and clean/recompile. See if the folder contains the required files.

As for your instruction...
I created the 2 blank multi-device project and put a TMS Gauge on the main form by using Delphi and C++ Builder.

You can visit the above google-drive url.
I found that it it ok for Delphi both for iOS and Android platforms.
While using C++ Builder..it would be ok to compile, build and deploy the app to Android.
But when shifted the target platform to iOS, it failed in making or building with the error message "[ld Error] ld: library not found for -lFMXTMSFNCCorePkgDXE14"
You can see that less files were generated int the folder "byCPP\iOSDevice64\Debug" when compared to "byDelphi\iOSDevice64\Debug".
Can you help to explain why the error occured when using C++ Builder for iOS Platform?

Hi,

Can you specify an output path specifically for the iOS Device 64 bit target under Output -> C++ for the Delphi package. After changing the target to iOS Device 64 bit.

Originally, it was set to
"Generate C++ .objs, headers, namespaces, export"
I changed the combobox and set the option to
"Generate all C++Builder files (including package libs)"
as your instruction...but still in vein and fail to build..

Did the command generate a libFMXTMSFNCcorePkgDXE14.a file?

No...it only generated these files.

When using Delphi...there was no FMXTMSFNCcorePkgDXE14.a or similar filename file.
But it generated much more files as following image.