Alcinoe icon indicating copy to clipboard operation
Alcinoe copied to clipboard

"compiled with different version"

Open drcrck opened this issue 6 months ago • 1 comments

Hi, I just upgraded to the latest version of Alcinoe (as of today), using Delphi Athens 12.3 with Patch 2 applied.

After performing a full "Compile All", I encountered several errors compiling my app , related to version mismatches. Specifically, I received messages like:

[DCC Error] Unit1.pas(XX): E2225 Never-build package 'FireDAC.FMXUI.Wait' was compiled with a different version

Similar errors occurred with several Data.Bind.* units as well. It seems some units were compiled with a different Delphi version or patch level. i just copied this file into \Alcinoe-master\Embarcadero\Athens\fmx

just to report :) Thanks!

drcrck avatar May 27 '25 09:05 drcrck

ah yes, thanks! you must include the FireDAC source code in your search path. I m working with embarcadero to not have any more the need to patch the source code !

Zeus64 avatar May 27 '25 09:05 Zeus64

@Zeus64 Thanks for that stunning Framework. I would love to use it in one of my Projects but I only do use the Delphi Professional Version. That means, there is not Source Code available for Firedac. I added $(BDS)\source\data\firedac into the Searchpath. After that the previous Failure is gone. But now a new One appears inside of FireDAC.Phys.SQLPreprocessor it says File could not be found 'FireDAC.inc'. Any Additional Ideas on that one? Thank you in advance.

ETSPMeder avatar Sep 08 '25 10:09 ETSPMeder

Short Update. I found the Files in the official EMB Demos and downloaded it into to Search PathFolder. After that, I got back to the previous F2051 Message: for Unit FireDAC.FMXUI.Wait generated with FMX.Forms.Application The Point I do not get is, does FMX.Forms.Application cause this error? I do not see this Unit under the patched Files.

ETSPMeder avatar Sep 08 '25 11:09 ETSPMeder

When I hit the Delphi error F2051 Unit %s was compiled with a different version of %s.%s, I do a full rebuild so the compiler doesn’t reuse stale DCUs. I agree it’s messy to patch Delphi’s stock sources, but Embarcadero is addressing this. In Delphi 13 we should have far fewer units to patch, so it will be much less of an issue.

Zeus64 avatar Sep 09 '25 08:09 Zeus64

A Full rebuild is not possible at this Point. In Delphi Professional Version the Units for Firedac are not shipped. Only the precompiled DCUs (IMHO because of the only Localhost limitation for Firedac in Delphi Professional). So I hope Embarcadero will fix there Problems ASAP. Because at the moment that means no one with Delphi Pro and a Firedac Connection can use your framework.

ETSPMeder avatar Sep 09 '25 08:09 ETSPMeder

A Full rebuild is not possible at this Point. In Delphi Professional Version the Units for Firedac are not shipped. Only the precompiled DCUs (IMHO because of the only Localhost limitation for Firedac in Delphi Professional). So I hope Embarcadero will fix there Problems ASAP. Because at the moment that means no one with Delphi Pro and a Firedac Connection can use your framework.

We’re aware. @checkdigits is actively working on it. It may be worth waiting for Delphi 13: there are changes that reduce the number of units needing patches, and with some luck FireDAC may no longer depend on a patched unit. If feasible, I also recommend upgrading to Delphi 13 Enterprise or Architect—you’ll gain full FireDAC source and several other advantages.

Zeus64 avatar Sep 09 '25 08:09 Zeus64

Thanks for your work on that Framework. I will have a look into Delphi 13 if both, alcinoe and Delphi are available for that Version. 2.5 times the price just for having the Firedac sources (yes there are other benefits as well, I know) for me is not worth the price. In the past there was a extra FireDac license available that could be purchased, but this is unfortunatly no longer the case. I would rather choose your Sqlite implementation, or switch to Unidac, wich also come with a extra fee but much cheaper than going to Enterprise. That said I am looking foreward for the coming Version. Material Design in a Delphi Mobile app looks amazing 🎉👍

ETSPMeder avatar Sep 09 '25 09:09 ETSPMeder

please check with the very last version committed, it's support D13 and have less updated delphi source code, so maybe it's will work

Zeus64 avatar Oct 13 '25 21:10 Zeus64

Hi, I tried to run the CompileAll script. I used step by step mode. In the Build BPL Part, the first Build for win32 release config fails for AlcinoeFlorence.dproj saying AlcinoeComponentIcons.res is missing. related to issue #457
I than copied the File from the ZIP you provided in that Issue. Compile Script runs smooth after that :)

I tried SQLite/FDConnection with the new Version. Now FireDAC.FMXUI.Wait is not a problem anymore. But FireDAC.Phys.SQLPreprocessor.pas has a reference to the FireDAC.inc and FireDAC.Phys.pas has a Reference to 'FireDAC.Stan.Config.inc'. After adding this 2 units into the same Folder it works without any Problem.

I get this Files from the Internet, but IMHO because it is only a inc File, it should be no big Deal for Emba to ship this 2 Files within the Units or even for you to include this 2 Files in your Repo.

ETSPMeder avatar Oct 14 '25 08:10 ETSPMeder