MagicFoundation / Alcinoe

Alcinoe Component Library For Delphi. Full opengl video player, WebRTC delphi wrapper, native ios/android TEdit, Improuved firemonkey controls, Firebase cloud messaging, Android/ios facebook sdk login, Json/Bson Parser, ImageMagick wrapper, MongoDb client And much more
Apache License 2.0
998 stars 220 forks source link

Alcinoe.FMX.Types3D; [DCC Error] Alcinoe.FMX.Types3D.pas(277): Undeclared identifier: 'Material' #341

Closed firemen01 closed 1 week ago

firemen01 commented 1 month ago

[DCC Error] Alcinoe.FMX.Types3D.pas(277): Undeclared identifier: 'Material' [DCC Error] Alcinoe.FMX.Types3D.pas(295): Undeclared identifier: 'Material' [DCC Error] Alcinoe.FMX.Types3D.pas(311): Undeclared identifier: 'Material' [DCC Error] Alcinoe.FMX.Types3D.pas(312): Undeclared identifier: 'External'

[DCC Error] Alcinoe.FMX.Types3D.pas(312): Incompatible types: 'Integer' and 'TTextureStyle'

firemen01 commented 1 month ago

I don't have iOS or Mac installed. I think like many others. It is advisable to separate Athens.patch for different configurations and check the folders. Otherwise, due to the fact that there are no files, it crashes, and all screen messages are disabled for you.

Zeus64 commented 1 month ago

hmm Alcinoe.FMX.Types3D.pas is not related to mac or ios. are you sure you patched the delphi source core ? you must run {alcinoe}\CompileAll.bat and select yes to "Copy the Delphi source code and patch it locally (Y/N, default=Y)"

firemen01 commented 1 month ago

the patch didn't work until I removed all the links to the Mac iOS files from the patch that I don't have. but otherwise everything works, thanks!

Zeus64 commented 1 month ago

but their is no link to the Mac iOS files ? with link did you remove ?

firemen01 commented 1 month ago

I don't have Mac and iOS support installed, I understand that if these files aren't there, Git stops working. i delete in Athens.patch: Index: Embarcadero/Athens/fmx/FMX.Canvas.Mac.pas Index: Embarcadero/Athens/fmx/FMX.Context.GLES.iOS.pas Index: Embarcadero/Athens/fmx/FMX.Context.Mac.pas Index: Embarcadero/Athens/fmx/FMX.Platform.iOS.pas

It would of course be more convenient to have different patches for different configurations (AthensGlobal.patch, AthensAndroid.patch, AthensIOS.patch, AthensMAC.patch)

Zeus64 commented 1 month ago

Oh, i see so you use only on Android ? you don't develop for ios too?

firemen01 commented 1 month ago

no, only for android. sanctions (:

what, now r.jar is one for apk and aab?

Zeus64 commented 1 month ago

yes now with athens 12.2 you only need one R.jar :)

cleyjulio commented 2 weeks ago

[Erro DCC] Alcinoe.FMX.Types3D.pas(277): Identificador não declarado: 'Material' [Erro DCC] Alcinoe.FMX.Types3D.pas(295): Identificador não declarado: 'Material' [Erro DCC] Alcinoe.FMX.Types3D.pas(311): Identificador não declarado: 'Material' [Erro DCC] Alcinoe.FMX.Types3D.pas(312): Identificador não declarado: 'Externo'

[Erro DCC] Alcinoe.FMX.Types3D.pas (312): Tipos incompatíveis: 'Integer' e 'TTextureStyle'

I have this same error. However, I develop for Mac, iOS and Android. How do I fix it?

Zeus64 commented 2 weeks ago

@cleyjulio did you run Alcinoe\Embarcadero\Athens\Update.bat ? what the result, can you add here a print screen ? did you also included in the search path of your project :

Alcinoe\Embarcadero\Athens\fmx\ Alcinoe\Embarcadero\Athens\rtl\common\

cleyjulio commented 2 weeks ago

I Run the update.bat with success.... add in the search path Alcinoe\Embarcadero\Athens\fmx Alcinoe\Embarcadero\Athens\rtl\common\, but now returns a error: [DCC Fatal Error] DMCampo.pas(10): F2051 Unit FireDAC.FMXUI.Wait was compiled with a different version of FMX.Forms.Application

Zeus64 commented 2 weeks ago

Can you update the Alcinoe repository and run again Alcinoe\Embarcadero\Athens\Update.bat ? now you must have Alcinoe\Embarcadero\Athens\data\firedac and then you can add this directory to the search path.

Note: I m actively working with embarcadero to correct all the bug in the original source file. I hope in the next release of delphi we will not need anymore to patch the original source file

cleyjulio commented 2 weeks ago

Now return this error: [DCC Fatal Error] FireDAC.Phys.SQLPreprocessor.pas(11): F1026 File not found: 'FireDAC.inc'

Zeus64 commented 2 weeks ago

can you check if you have FireDAC.inc is in Alcinoe\Embarcadero\Athens\data\firedac\ (normaly yes)

cleyjulio commented 2 weeks ago

I couldn't find FireDAC.inc, not even in the Delphi folder. Both (Alcinoe and Embarcadero) only have the following files:

FireDAC.Phys.pas FireDAC.Phys.SQLGenerator.pas FireDAC.Phys.SQLGenerator.pas

Zeus64 commented 2 weeks ago

Hmm, so it's look like you do not have the source of fireDAC, with version of delphi do you have ?

cleyjulio commented 2 weeks ago

I don't have the source code. My version is the simplest: Professional. 12.2 Patch 2

Could you send me the file please? cleyjulio@gmail.com

cleyjulio commented 2 weeks ago

this file too not found: FireDAC.Stan.Config.inc

Zeus64 commented 2 weeks ago

I can't send you the pas as its copyright, but maybe i can sent you the precompiled DCU for alcinoe. I will look for it tomorow

cleyjulio commented 2 weeks ago

I get files: FireDAC.inc and FireDAC.Stan.Config.inc, but this error ocour again: F2051 Unit FireDAC.FMXUI.Wait was compiled with a different version of FMX.Forms.Application

Zeus64 commented 2 weeks ago

yes, you also need FireDAC.FMXUI.Wait.pas, you need all Firedac.*.pas

cleyjulio commented 2 weeks ago

I get all FireDACs files... but now, when open form with TALMemo happens this error: Project raised exception class EJNIFatal with message 'Java type io/magicfoundation/alcinoe/edittext/ALKeyPreImeListener could not be found'.

Zeus64 commented 2 weeks ago

yes, you must add in your project file the java file : Alcinoe\Libraries\jar\io\magicfoundation\alcinoe\alcinoe-edittext\1.0.0\alcinoe-edittext-1.0.0.jar

cleyjulio commented 1 week ago

Hi, the patch not found. I run DoanloadLibraries.bat but not works. Unique folder in jar is org.

Zeus64 commented 1 week ago

you must run Alcinoe\CompileJar.bat to build the jar or better Alcinoe\CompileAll.bat

cleyjulio commented 1 week ago

thanks! Works fine!

Zeus64 commented 1 week ago

perfect happy that it's finally work! I close this jira for now