Apply the fix to FMX_Types_FPC_Impl.inc

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Apply the fix to FMX_Types_FPC_Impl.inc

Post by jls » Thu Jun 14, 2012 7:58 am

I try to Apply the fix to FMX_Types_FPC_Impl.inc.
I have changed the file on my windows and mac
but it still don't use the fix.
I have also tried to add an error in the code to see if it is used, it isn't
How can I force the compiler to use the fix on the mac?

Do I miss something?

Jørgen

I get the same error as in
viewtopic.php?f=17&t=13316

I tried to do this
http://qc.embarcadero.com/wc/qcmain.aspx?d=103976

but I don't think my changes is used by the compiler.
Must I do something else than modify the file?
Can the modified file be located in the project folder?


Correcting these functions in the FMX_Types_FPC_Impl.inc file from "\Embarcadero\RAD Studio\9.0\source\fmi" should be enough:

Code: Select all
function TRectF.GetBottomRight: TPointF;
begin
//Result := TPointF.Create(Bottom, Right); //Act
Result := TPointF.Create(Right, Bottom); //Exp
end;


Code: Select all
function TRectF.GetTopLeft: TPointF;
begin
//Result := TPointF.Create(Top, Left); //Act
Result := TPointF.Create(Left,Top); //Exp
end;

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Apply the fix to FMX_Types_FPC_Impl.inc

Post by Sandra » Wed Jun 20, 2012 8:31 am

Hello jls,

Please, can you do check next recommendations:

1.- If you change the unit to PC, for example:

\Embarcadero\RAD Studio\9.0\source\fmi

You need do the same modification in the Mac, in the folder where you take the unit when it is recompiled by xcode, for example:
/Developer/Embarcadero/fmi

2.- You need check if xcode file of project, where there are the directories where the units are searched and if necessary these are recomplied because we want it works with the manually modification as we have done to FMX_Types_FPC_Impl.inc fie.
You can check the file manually, open it in the editor. You can check it in MAC or in PC, for example:

Project1.xcodeproj\Project1.pbxproj

When you have opened the project, you have to find the command line that included all of folders where the units have to be searched, something as next :

-Fu/Developer/Steema/fmi
-Fu/usr/local/lib/fpc/2.6.0/units/i386-iphonesim/fmi
-Fu/Developer/Embarcadero/fmi
-Fu/Developer/Embarcadero/fmi/coretext
-Fu/Developer/Embarcadero/fmi/fpclib


If after doing next steps your problem still occurs please let me know.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Re: Apply the fix to FMX_Types_FPC_Impl.inc

Post by jls » Wed Jun 20, 2012 9:42 am

Still doesn't work

I have tried tried this

1 added a copy of FMX_Types_FPC_Impl.inc with er errror in the project folder
2 removed all FMX_Types_FPC_Impl.inc files on my Mac

Nothing changes, the project still compiles as before without error (only the chart error)


Jørgen
Attachments
iOS Simulator Screen shot Jun 20, 2012 11.33.35 AM.png
iOS Simulator Screen shot Jun 20, 2012 11.33.35 AM.png (29.35 KiB) Viewed 13498 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Apply the fix to FMX_Types_FPC_Impl.inc

Post by Sandra » Fri Jun 22, 2012 9:41 am

Hello Jorgen,

The problem is that the files "*.inc" are a strange case and these can't be moved of the folder where the units.pas have be compiled, so when you compile units.pas FreePascal will search the "*.inc" in this folder and if you change the files to other folder, the change doesn't appear, for this reason, always the files "*.inc" must be in the folder /Developer/Embarcadero/fmi.

Can you please, repeat the test again considering my previous explanation. To do it you can do:
1.- Rename all your compiled files to, for example, .pp
2.- Add files "*.inc" in same folder where "*.pas" files have be compiled.
3.- Compiled again the units and try if your problem appears.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

jls
Newbie
Newbie
Posts: 56
Joined: Mon May 07, 2012 12:00 am
Location: Norway

Re: Apply the fix to FMX_Types_FPC_Impl.inc

Post by jls » Fri Jun 22, 2012 11:23 am

It works now,

I just had some problem with the search tool on Mac that did not find files in the Developer folder.


jørgen

Post Reply