Page 1 of 2

Mac Ios compilation

Posted: Tue Mar 06, 2012 11:37 am
by 16561863
Hello,
I am a new user of "TeeChart Pro 2011" (Full Source Code).
I did not find the fmxtee_*.pas files to compile my project for Iphone
I installed TeeChart using the binary file.
I did not recompile the source files
Thanks for your help

Re: Mac Ios compilation

Posted: Wed Mar 07, 2012 2:19 pm
by narcis
Hi rlebbar,

You need to compile the full sources for using TeeChart 2011 for iOS. You can use the Recompile tool provided with the source code installer. It will generate necessary units.

Re: Mac Ios compilation

Posted: Thu Mar 08, 2012 5:37 pm
by 16561863
Hi Narcis,
I used the Recompile tool provided with the source code installer, and it generated the fmxtee_*.* files (FMI folder).
But once in the Mac the build process failed with a Fatal: Internal error 200602041.

Here are the last 10 lines generated in the build process.
FMXTee_Canvas.pas(8985,5) Note: Local variable "Center" is assigned but never used
FMXTee_Canvas.pas(8986,5) Note: Local variable "Radius" is assigned but never used
FMXTee_Canvas.pas(10807,7) Note: Local variable "P0" is assigned but never used
FMXTee_Canvas.pas(2654,16) Hint: Local type "PPoints" is not used
FMXTee_Canvas.pas(13469,3) Note: Local variable "AlphaBlendChecked" not used
FMXTee_Canvas.pas(13470,3) Note: Local variable "CanUseWinAlphaBlend" not used
FMXTee_Canvas.pas(14328,15) Hint: Local type "PColorRGB" is not used
FMXTee_Canvas.pas(14333,14) Hint: Local type "PRGBList" is not used
FMXTee_Canvas.pas(15200,5) Note: Private field "TFilerAccess.FRootAncestor" is never used
FMXTee_Canvas.pas(16044,1) Fatal: Internal error 200602041
Fatal: Compilation aborted

Can i have a copy of your FMI folder so that i can finally generate my first example on Iphone ?
Thank you

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 11:07 am
by 16561863
Hi Narcis,

12 Days after ordering the TeeChart Pro v2011 components (with source code)
my first IPhone test example does not even compile !

I was expecting at least ONE working IPhone example that can be easily compiled and tested on the real device.
Is it possible to ask for a very basic sample with all the necessary source files ?

Please Help, it is urgent !
Thanks

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 11:31 am
by narcis
Hi rlebbar,

Apologies for the long delay. I just send you an email with my FMI folder, our current TeeChart sources and some additional instructions. Could you please check if this solves the problem at your end? In the meantime I also asked my colleagues to arrange an iOS example for you.

Thanks in advance.

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 3:04 pm
by 16561863
Hi Nircis,
I just downloaded your FMI folder and updated mine "/Developer/Embarcadero/fmi"
Then i started a new ios project with zero line of code, just a Tchart component
and generated the xcode project successfully.
Once in the Mac I tried to build the project using your fmi files.
This is what i get (The last 10 Lines);
.....
FMXTee_Canvas.pas(9020,5) Note: Local variable "Center" is assigned but never used
FMXTee_Canvas.pas(9021,5) Note: Local variable "Radius" is assigned but never used
FMXTee_Canvas.pas(10844,7) Note: Local variable "P0" is assigned but never used
FMXTee_Canvas.pas(2666,16) Hint: Local type "PPoints" is not used
FMXTee_Canvas.pas(13506,3) Note: Local variable "AlphaBlendChecked" not used
FMXTee_Canvas.pas(13507,3) Note: Local variable "CanUseWinAlphaBlend" not used
FMXTee_Canvas.pas(14379,15) Hint: Local type "PColorRGB" is not used
FMXTee_Canvas.pas(14384,14) Hint: Local type "PRGBList" is not used
FMXTee_Canvas.pas(15251,5) Note: Private field "TFilerAccess.FRootAncestor" is never used
FMXTee_Canvas.pas(16095,1) Fatal: Internal error 200602041
Fatal: Compilation aborted
You will notice that i have the same internal error as before even if the FMXTee_Canvas.pas file has heavily changed
Please do your best to get me out of a real problem with a late due work !

Thanks

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 4:30 pm
by narcis
Hello,

Just sent you an example project which works fine for me here with the iOS emulator. Can you please check if it works fine for you? You may need to change search paths to fit your TeeChart installation.

Thanks in advance.

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 5:32 pm
by 16561863
Hi Narcis,

Sorry to insist, but i did not receive the project example yet.

Thanks
r.lebbar

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 7:01 pm
by narcis
Hello,

I used the same email with which you are registered in this forum board and I used to send you the FMI folder before. I resent the email again. Did you receive it now? Actually, it's quite small, I attach it here as well.

Thanks in advance.

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 7:16 pm
by 16561863
Hi Narcis,

Sorry but i did not receive it.
Yes you may send it to rlebbar@gmail.com

Thank you

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 7:44 pm
by 16561863
Hi Narcis,

I downloaded ios_demo.zip
I will test it and i will get back to you in a moment.

Thanks

Re: Mac Ios compilation

Posted: Mon Mar 12, 2012 7:47 pm
by narcis
Hello,

Ok, I sent it to the gmail address now. I also had edited my previous reply and attached it to my previous answer. Hope you get it now.

Re: Mac Ios compilation

Posted: Tue Mar 13, 2012 7:21 am
by 16561419
Hello,

could please somebody share the knowledge where to put the FMI folder with the TChart PRO iOS sources on the MAC to get this example project compiling
under Xcode?

best regards,

X-Ray

Re: Mac Ios compilation

Posted: Tue Mar 13, 2012 2:43 pm
by 16561863
Hi Narcis,

Finally i have a simple workaround, and it works !
I started with your XCode and FMI 2012. It did not compile for me and generated a different error from what i had.
Then i compiled it in Delphi XE2 U3 generated the XCode and got the same error as before (Internal error 200602041)
Then i changed the target from Iphone to ios-device Here it compiled and generated the application.
Then i went back to your XCode (Probably generated by Delphi XE2 U4) and compiled it with FMI 2011.
It did compile correctly for both targets.

My first impressions :
Great but a little slow !. I am trying to find the best way to load data.
Does BeginUpdate .. EndUpdate improve the load time ?

Thank you Narcis.

PS. : X-RAY, You should put your files in "/Developer/Embarcadero/fmi"

Re: Mac Ios compilation

Posted: Tue Mar 13, 2012 3:25 pm
by narcis
Hi rlebbar,
Finally i have a simple workaround, and it works !
Excellent, thanks for your feedback!
My first impressions :
Great but a little slow !. I am trying to find the best way to load data.
Does BeginUpdate .. EndUpdate improve the load time ?
No, here you can find how BeginUpdate works. For optimizing TeeChart performance I recommend you to read the Real-time Charting article here.
Thank you Narcis.
You're very welcome!