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
974 stars 214 forks source link

error in compile #71

Open megatkurniawan opened 5 years ago

megatkurniawan commented 5 years ago

after a successful install, I tried to compile a sample on a demo. and having persistent errors, I followed the previous issue guide to copy the original file from embarcadero but the error persisted. I have copied 30 original files.

image

bravesoftdz commented 5 years ago

why you add this original files to the delphi library Path ? look what i'm did to successful compile my MediaPlayer: i add a custom Environement Variable from here: Environment Variable and add in my project search Path this: search Path this 👍
$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\fmx;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\ios;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\android;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\net

and finally for My project i need to add some java Libraries to My Project Library for TALVideoPlayerSurface.Video can Render and Play My Videos like Here: Add Java Libraries

i hope my Reply was Helpful for you ...

megatkurniawan commented 5 years ago

why you add this original files to the delphi library Path ? look what i'm did to successful compile my MediaPlayer: i add a custom Environement Variable from here: Environment Variable and add in my project search Path this: search Path this 👍 $(ALCINOE)\references\embarcadero\rio\10_3_1\patched\fmx;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\ios;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\android;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\net

and finally for My project i need to add some java Libraries to My Project Library for TALVideoPlayerSurface.Video can Render and Play My Videos like Here: Add Java Libraries

i hope my Reply was Helpful for you ...

i follow from this issues https://github.com/Zeus64/alcinoe/issues/34

megatkurniawan commented 5 years ago

why you add this original files to the delphi library Path ? look what i'm did to successful compile my MediaPlayer: i add a custom Environement Variable from here: Environment Variable and add in my project search Path this: search Path this 👍 $(ALCINOE)\references\embarcadero\rio\10_3_1\patched\fmx;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\ios;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\android;$(ALCINOE)\references\embarcadero\rio\10_3_1\patched\rtl\net

and finally for My project i need to add some java Libraries to My Project Library for TALVideoPlayerSurface.Video can Render and Play My Videos like Here: Add Java Libraries

i hope my Reply was Helpful for you ...

if i follow you guide i found this error, this is iam compile you source media player image

bravesoftdz commented 5 years ago

look for android devices you don't need to add the file originals inside the Project search path i'm think IF you was add this Originals Path inside the IDE Library Path ....!!!! as i know this Originals files was added just when you try to compile into windows or macOS... in my project media player I Target just Android and i use just this : Search Path android

with successful compile(Remember to Update the both embedded files like the jar files and the Media files from your project deployement)

viniciusfbb commented 5 years ago

Using the Alcinoe without install

(Delphi Rio 10.3.1)

1) Download the Alcinoe, create a new folder in your project folder, named "third-party" and save the alcinoe there

2) Open: Project > Options > Building > Delphi Compiler >

3) Select Target "All configurations - All platforms"

4) Add this to the "Search path":

third-party\alcinoe\references\embarcadero\rio\10_3_1\patched\rtl\android;third-party\alcinoe\references\embarcadero\rio\10_3_1\patched\rtl\ios;third-party\alcinoe\references\embarcadero\rio\10_3_1\patched\fmx;third-party\alcinoe\references\embarcadero\rio\10_3_1\patched\rtl\net;third-party\alcinoe\source;$(BDS)\source\rtl\common;$(BDS)\source\rtl\net;$(BDS)\source\fmx

5) Save

6) In the project folder, delete the output directory of the units (.dcu, .o, .a, ...), to make sure we recompile everything again

7) Build your project and Run

bravesoftdz commented 5 years ago

remark 👍 some components doesn't require to add the search path to your app for example : TALVideoPlayerSurface alone inside your project can compile and work without adding the search path for both patched and originals. look at video here: tutorial

and if you add for example TALLayout to your form or project will doesn't compile untill you will add the search path for both: patched & originals

i have no problem before , i mean i was using just the patched files and i compile and work Excelent but when try to reinstall my delphi and begin to test in second time i face the problem saying FMX.Types3D.pas is compiled with another version ... So i add just the originals to my project search path and is compile and work with success? Anyway i don't know the reason why my first installation of delphi doesn't tell me the error above ...