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.
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.
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.
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
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?
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?
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..