iOS compilation fails
iOS compilation fails
Hello,
I'm a new comer in the FireMonkey/Xcode world and I've a problem to build my Delphi XE2 project into Xcode.
PC side, in Delphi XE2 Update 4 HotFix 1, I use many TeeChart units and my application works fine. All the graphics (TChart component) displays well. I installed "TeeChart2012StandardSourceCode.exe", I recompiled it and installed it. All the packages are fine installed into Delphi XE2. I've exported the project to Xcode.
Mac OS X side, I have Xcode 4.5 with Free Pascal Compiler 2.6.0 and FireMonkey-iOS.dmg (from the XE2 Update 4 HF1 installer). The installation seems OK. But when I build my XE2 project on Xcode, I obtain this error :
"Fatal: Can't find unit FMXTee_RadioGroup used by Parametres_frm".
All the "FMXTee_*.pas" are missing. I think I've missed something to do... but what ?
I was thinking that the TeeChart units exports by itself within the Xcode project. How can I specify to Xcode where are the FMXTee units ?
Here is the error details :
Compiling /Users/cegidretail/Desktop/CegidHotelKPI/source/Parametres_frm.pas
Compiling /Developer/Embarcadero/fmi/FMX_TabControl.pas
FMX_TabControl.pas(265,3) Note: Local variable "fitWidth" not used
FMX_TabControl.pas(345,3) Note: Local variable "SaveOp" is assigned but never used
Assembling (pipe) /Users/cegidretail/Devt/Xcode/DerivedData/Build/Products/Release-iphonesimulator/CegidHotelKPI.app/FMX_TabControl.s
Fatal: Can't find unit FMXTee_RadioGroup used by Parametres_frm
Fatal: Compilation aborted
Showing first 200 notices only
Command /bin/sh failed with exit code 1
Does someone may help me please ?
I can upload the Xcode project if you want.
Thank you in advance,
Best regards,
Arnaud
I'm a new comer in the FireMonkey/Xcode world and I've a problem to build my Delphi XE2 project into Xcode.
PC side, in Delphi XE2 Update 4 HotFix 1, I use many TeeChart units and my application works fine. All the graphics (TChart component) displays well. I installed "TeeChart2012StandardSourceCode.exe", I recompiled it and installed it. All the packages are fine installed into Delphi XE2. I've exported the project to Xcode.
Mac OS X side, I have Xcode 4.5 with Free Pascal Compiler 2.6.0 and FireMonkey-iOS.dmg (from the XE2 Update 4 HF1 installer). The installation seems OK. But when I build my XE2 project on Xcode, I obtain this error :
"Fatal: Can't find unit FMXTee_RadioGroup used by Parametres_frm".
All the "FMXTee_*.pas" are missing. I think I've missed something to do... but what ?
I was thinking that the TeeChart units exports by itself within the Xcode project. How can I specify to Xcode where are the FMXTee units ?
Here is the error details :
Compiling /Users/cegidretail/Desktop/CegidHotelKPI/source/Parametres_frm.pas
Compiling /Developer/Embarcadero/fmi/FMX_TabControl.pas
FMX_TabControl.pas(265,3) Note: Local variable "fitWidth" not used
FMX_TabControl.pas(345,3) Note: Local variable "SaveOp" is assigned but never used
Assembling (pipe) /Users/cegidretail/Devt/Xcode/DerivedData/Build/Products/Release-iphonesimulator/CegidHotelKPI.app/FMX_TabControl.s
Fatal: Can't find unit FMXTee_RadioGroup used by Parametres_frm
Fatal: Compilation aborted
Showing first 200 notices only
Command /bin/sh failed with exit code 1
Does someone may help me please ?
I can upload the Xcode project if you want.
Thank you in advance,
Best regards,
Arnaud
- Attachments
-
- Screenshot.Build.Error.TeeChart.jpg (163.94 KiB) Viewed 25593 times
Re: iOS compilation fails
Hello,
Excuse us for the delayed reply here.
These files are included with the Source Code installation. Have you tried copying them to the Mac OS side?
Excuse us for the delayed reply here.
These files are included with the Source Code installation. Have you tried copying them to the Mac OS side?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: iOS compilation fails
Hello,
Yes, I found these files in the Source Code installation, and I tried to copy them to the Mac OS Side, but I don't know where I need to copy them...
Many developer should have the same problem, I think. Because, it is pretty commun to Export to Xcode from Delphi by using your TeeChart components.
Someone can help me, maybe ?
I gonna try to copy the missing TeeChart files to Mac OS X side I hope I'll find the location where Xcode try to load these files!
Thank you in advance,
Arnaud
Yes, I found these files in the Source Code installation, and I tried to copy them to the Mac OS Side, but I don't know where I need to copy them...
Many developer should have the same problem, I think. Because, it is pretty commun to Export to Xcode from Delphi by using your TeeChart components.
Someone can help me, maybe ?
I gonna try to copy the missing TeeChart files to Mac OS X side I hope I'll find the location where Xcode try to load these files!
Thank you in advance,
Arnaud
Re: iOS compilation fails
OK, I copied the content of the FMI folder to the FMI folder on the MAC, overwritting the previous TChart sources (which were working).
After that I tried to compile my project again and I get the following compilation errors (starting just before the first error):
Compiling /Developer/Embarcadero/fmi/FMXTee_Canvas.pas
FMXTee_Canvas.pas(626,21) Error: Identifier not found "TAlphaColor"
FMXTee_Canvas.pas(626,21) Error: Error in type definition
FMXTee_Canvas.pas(656,30) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(658,43) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(670,29) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(670,29) Error: This kind of property can't be published
FMXTee_Canvas.pas(670,66) Error: Property can't have a default value
FMXTee_Canvas.pas(670,78) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(682,30) Error: Illegal expression
FMXTee_Canvas.pas(805,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(805,43) Error: Property can't have a default value
FMXTee_Canvas.pas(805,55) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(813,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(813,43) Error: Property can't have a default value
FMXTee_Canvas.pas(822,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(822,43) Error: Property can't have a default value
FMXTee_Canvas.pas(822,55) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(830,21) Error: Illegal expression
FMXTee_Canvas.pas(836,49) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(869,34) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(869,34) Error: This kind of property can't be published
FMXTee_Canvas.pas(869,77) Error: Property can't have a default value
FMXTee_Canvas.pas(870,40) Error: Identifier not found "clDefault"
FMXTee_Canvas.pas(870,40) Error: The default value of a property must be constant
FMXTee_Canvas.pas(1008,24) Error: Illegal expression
FMXTee_Canvas.pas(1035,39) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1050,25) Error: Illegal expression
FMXTee_Canvas.pas(1055,60) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1071,30) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1071,30) Error: This kind of property can't be published
FMXTee_Canvas.pas(1104,22) Error: Illegal expression
FMXTee_Canvas.pas(1105,22) Error: Illegal expression
FMXTee_Canvas.pas(1108,22) Error: Illegal expression
FMXTee_Canvas.pas(1122,35) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1139,54) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1139,74) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1141,42) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1143,42) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1146,44) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1156,24) Error: Illegal expression
FMXTee_Canvas.pas(1157,24) Error: Illegal expression
FMXTee_Canvas.pas(1158,24) Error: Illegal expression
FMXTee_Canvas.pas(1185,33) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1186,33) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1189,35) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1202,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1203,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1206,27) Error: This kind of property can't be published
FMXTee_Canvas.pas(1217,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1218,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1218,25) Fatal: There were 50 errors compiling module, stopping
Fatal: Compilation aborted
Showing first 200 notices only
Command /bin/sh failed with exit code 1
I found a previous post on the forum where the customer had the same error.
You had sent to him an email with a bug fix. May I have this version please ?
Thank you in advance,
Arnaud
After that I tried to compile my project again and I get the following compilation errors (starting just before the first error):
Compiling /Developer/Embarcadero/fmi/FMXTee_Canvas.pas
FMXTee_Canvas.pas(626,21) Error: Identifier not found "TAlphaColor"
FMXTee_Canvas.pas(626,21) Error: Error in type definition
FMXTee_Canvas.pas(656,30) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(658,43) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(670,29) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(670,29) Error: This kind of property can't be published
FMXTee_Canvas.pas(670,66) Error: Property can't have a default value
FMXTee_Canvas.pas(670,78) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(682,30) Error: Illegal expression
FMXTee_Canvas.pas(805,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(805,43) Error: Property can't have a default value
FMXTee_Canvas.pas(805,55) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(813,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(813,43) Error: Property can't have a default value
FMXTee_Canvas.pas(822,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(822,43) Error: Property can't have a default value
FMXTee_Canvas.pas(822,55) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(830,21) Error: Illegal expression
FMXTee_Canvas.pas(836,49) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(869,34) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(869,34) Error: This kind of property can't be published
FMXTee_Canvas.pas(869,77) Error: Property can't have a default value
FMXTee_Canvas.pas(870,40) Error: Identifier not found "clDefault"
FMXTee_Canvas.pas(870,40) Error: The default value of a property must be constant
FMXTee_Canvas.pas(1008,24) Error: Illegal expression
FMXTee_Canvas.pas(1035,39) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1050,25) Error: Illegal expression
FMXTee_Canvas.pas(1055,60) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1071,30) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1071,30) Error: This kind of property can't be published
FMXTee_Canvas.pas(1104,22) Error: Illegal expression
FMXTee_Canvas.pas(1105,22) Error: Illegal expression
FMXTee_Canvas.pas(1108,22) Error: Illegal expression
FMXTee_Canvas.pas(1122,35) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1139,54) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1139,74) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1141,42) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1143,42) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1146,44) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1156,24) Error: Illegal expression
FMXTee_Canvas.pas(1157,24) Error: Illegal expression
FMXTee_Canvas.pas(1158,24) Error: Illegal expression
FMXTee_Canvas.pas(1185,33) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1186,33) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1189,35) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1202,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1203,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1206,27) Error: This kind of property can't be published
FMXTee_Canvas.pas(1217,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1218,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1218,25) Fatal: There were 50 errors compiling module, stopping
Fatal: Compilation aborted
Showing first 200 notices only
Command /bin/sh failed with exit code 1
I found a previous post on the forum where the customer had the same error.
You had sent to him an email with a bug fix. May I have this version please ?
Thank you in advance,
Arnaud
Re: iOS compilation fails
Hi Arnaud,
You should have the TeeChart sources (FMI folder) at "/Developer/Steema/fmi" in the Mac side. And you should add the following in your xcode project, with the line where the other "-Fu" are:
As you will see it already is in the iOS demo here.
I'm not sure to understand the above. What TeeChart sources were already in the Mac?djoulaie wrote:OK, I copied the content of the FMI folder to the FMI folder on the MAC, overwritting the previous TChart sources (which were working).
You should have the TeeChart sources (FMI folder) at "/Developer/Steema/fmi" in the Mac side. And you should add the following in your xcode project, with the line where the other "-Fu" are:
Code: Select all
-Fu/Developer/Steema/fmi
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: iOS compilation fails
Hi,
So, I created the TeeChart sources FMI folder at "/Developer/Steema/fmi" in the Mac side.
In the PC side, I took the files included in the folder "C:\Program Files\Steema Software\TeeChart Standard 2012 Source Code\Sources\FMI", and I transfered them to the Mac side in the folder just created, "/Developer/Steema/fmi".
Tell me if I did something wrong...
And the last thing to do : Add in my Xcode project the line : "-Fu/Developer/Steema/fmi".
But I don't find where to do that... ? I have to learn about Xcode.
Do you have a "technical note" (or something like that) who explains each step from the Delphi XE2 compilation to the Xcode compilation (with TeeChart components in the source code) ?
I tried with your iOS demo project but the XE2 compilation (PC side) doesn't work :/ it's weird.
Actually, I had overwrote the original FMI folder in the Mac by the FMI folder included in the TeeChart Source Code Installer. I've realized it was a wrong method to do, therefore I retook a save of the original FMI folder. So now, I have an original Xcode installation.I'm not sure to understand the above. What TeeChart sources were already in the Mac?
So, I created the TeeChart sources FMI folder at "/Developer/Steema/fmi" in the Mac side.
In the PC side, I took the files included in the folder "C:\Program Files\Steema Software\TeeChart Standard 2012 Source Code\Sources\FMI", and I transfered them to the Mac side in the folder just created, "/Developer/Steema/fmi".
Tell me if I did something wrong...
And the last thing to do : Add in my Xcode project the line : "-Fu/Developer/Steema/fmi".
But I don't find where to do that... ? I have to learn about Xcode.
Do you have a "technical note" (or something like that) who explains each step from the Delphi XE2 compilation to the Xcode compilation (with TeeChart components in the source code) ?
I tried with your iOS demo project but the XE2 compilation (PC side) doesn't work :/ it's weird.
Re: iOS compilation fails
Hi Arnaud,
The iOS_demo project here works fine for us here with TeeChart v2012.06 (Source Code version) and XE2 Update 4 Hotfix 1.
In XE2, make sure you have the FMI path in the Library list (by default in a 64 bit Windows: "C:\Program Files (x86)\Steema Software\TeeChart Pro 2012 Full Source Code\Sources\FMI").
If you still can't build this example with XE2, please let us know.
When the application builds and runs, if you have the environment appropriately configured, you should be able to export the project to XCode (export to xcode)
Then, in the project.pbxproj file (in "xcode\TeeChart_Pro_for_FireMonkey_iOS_Demo.xcodeproj"), you'll find a line starting with "shellScript". It's in this line where you have to add the path for the Mac to find the TeeChart sources "-Fu/Developer/Steema/fm". Maybe it's possible to add this path through some option in xcode, but we aren't xcode experts either so we did it manually.
Here is how the mentioned line looks in the precompiled xcode the iOS_demo above includes:
The iOS_demo project here works fine for us here with TeeChart v2012.06 (Source Code version) and XE2 Update 4 Hotfix 1.
In XE2, make sure you have the FMI path in the Library list (by default in a 64 bit Windows: "C:\Program Files (x86)\Steema Software\TeeChart Pro 2012 Full Source Code\Sources\FMI").
If you still can't build this example with XE2, please let us know.
When the application builds and runs, if you have the environment appropriately configured, you should be able to export the project to XCode (export to xcode)
Then, in the project.pbxproj file (in "xcode\TeeChart_Pro_for_FireMonkey_iOS_Demo.xcodeproj"), you'll find a line starting with "shellScript". It's in this line where you have to add the path for the Mac to find the TeeChart sources "-Fu/Developer/Steema/fm". Maybe it's possible to add this path through some option in xcode, but we aren't xcode experts either so we did it manually.
Here is how the mentioned line looks in the precompiled xcode the iOS_demo above includes:
project.pbxproj wrote:shellScript = "rm -f $BUILT_PRODUCTS_DIR/$EXECUTABLE_PATH.or\nif [ \"$PLATFORM_NAME\" == \"iphonesimulator\" ]; then\n/usr/local/lib/fpc/2.5.1/ppcross386 -MDelphi -Tiphonesim -o$BUILT_PRODUCTS_DIR/$EXECUTABLE_PATH -B -XR$SDKROOT -Fu/Developer/Steema/fmi -Fu/usr/local/lib/fpc/2.5.1/units/i386-iphonesim/fmi -Fu/Developer/Embarcadero/fmi -Fu/Developer/Embarcadero/fmi/coretext -Fu/Developer/Embarcadero/fmi/fpclib -FD$PLATFORM_DEVELOPER_BIN_DIR $PROJECT_DIR/../$PROJECT.pas\nelse\n/usr/local/lib/fpc/2.5.1/ppcrossarm -Fu/Developer/Steema/fmi -Xg -O1 -Cfvfpv2 -MDelphi -B -o$BUILT_PRODUCTS_DIR/$EXECUTABLE_PATH -Fu/usr/local/lib/fpc/2.5.1/units/arm-darwin/fmi -Fu/Developer/Embarcadero/fmi -Fu/Developer/Embarcadero/fmi/coretext -Fu/Developer/Embarcadero/fmi/fpclib -XR$SDKROOT -FD$PLATFORM_DEVELOPER_BIN_DIR $PROJECT_DIR/../$PROJECT.pas \n# create DWARF if need\nif [ \"$DEBUGGING_SYMBOLS\" == \"YES\" ]; then\n if [ ! -d $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME ]; then\n mkdir $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME\n fi\n if [ ! -d $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents ]; then\n mkdir $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents\n fi\n if [ ! -d $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources ]; then\n mkdir $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources\n fi\n if [ ! -d $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/DWARF ]; then\n mkdir $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/DWARF\n fi\n\n cp $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM/Contents/Info.plist $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Info.plist\n cp $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM/Contents/Resources/DWARF/$EXECUTABLE_NAME $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/DWARF/$EXECUTABLE_NAME\n \n rm $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM/Contents/Info.plist\n rm $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM/Contents/Resources/DWARF/$EXECUTABLE_NAME\n rmdir $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM/Contents/Resources/DWARF\n rmdir $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM/Contents/Resources\n rmdir $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM/Contents\n rmdir $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/$EXECUTABLE_NAME.dSYM\nrm -f $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/*.o\nrm -f $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/*.rst\nrm -f $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/*.res\nrm -f $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/*.ppu\nrm -f $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/*.or\nrm -f $BUILT_PRODUCTS_DIR/$EXECUTABLE_FOLDER_PATH/*.lfm\n\nfi\nfi";
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: iOS compilation fails
Hi Yeray,
Thank you for all,
I have the TeeChart version from the exe "TeeChart2012StandardSourceCode.exe" (Details file version : 0.4455.0.0 signed on 06/14/2012) and XE2 Update 4 Hotfix 1 too. I've added the FMI path in the Library list of my Delphi project as you mentioned me (except I'm in a 32 bit Windows...).
And the build of your iOS Demo project still failed. Though the 3 packages of TeeChart are installed and checked correctly in Delphi options : "TeeChart Standard 2012 Components", "TeeChart Standard 2012 FMI Components" and "TeeChart Standard 2012 FMX Components".
The error is : Can't find the file "FMXTee_Editor_Functions_Gallery.dcu". Indeed I don't have this file but I have the .pas file with the same name in FMI path (which is added to the Library list). So, I don't really know why it doesn't work with the .pas file.
Else, I build a very simple Delphi Firemonkey project which is one unit with a TChart (without Series). This project works fine on Windows. I have exported it to Xcode -> OK. And I've modified the line who starts by "shellScript" in the project.pbxproj as you told me. Then I've loaded the project in Xcode and tried to build it.
It results I have the same error as I've already posted before :
Best regards,
Arnaud
Thank you for all,
I have the TeeChart version from the exe "TeeChart2012StandardSourceCode.exe" (Details file version : 0.4455.0.0 signed on 06/14/2012) and XE2 Update 4 Hotfix 1 too. I've added the FMI path in the Library list of my Delphi project as you mentioned me (except I'm in a 32 bit Windows...).
And the build of your iOS Demo project still failed. Though the 3 packages of TeeChart are installed and checked correctly in Delphi options : "TeeChart Standard 2012 Components", "TeeChart Standard 2012 FMI Components" and "TeeChart Standard 2012 FMX Components".
The error is : Can't find the file "FMXTee_Editor_Functions_Gallery.dcu". Indeed I don't have this file but I have the .pas file with the same name in FMI path (which is added to the Library list). So, I don't really know why it doesn't work with the .pas file.
Else, I build a very simple Delphi Firemonkey project which is one unit with a TChart (without Series). This project works fine on Windows. I have exported it to Xcode -> OK. And I've modified the line who starts by "shellScript" in the project.pbxproj as you told me. Then I've loaded the project in Xcode and tried to build it.
It results I have the same error as I've already posted before :
Thank you very much,Compiling /Developer/Embarcadero/fmi/FMXTee_Canvas.pas
FMXTee_Canvas.pas(626,21) Error: Identifier not found "TAlphaColor"
FMXTee_Canvas.pas(626,21) Error: Error in type definition
FMXTee_Canvas.pas(656,30) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(658,43) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(670,29) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(670,29) Error: This kind of property can't be published
FMXTee_Canvas.pas(670,66) Error: Property can't have a default value
FMXTee_Canvas.pas(670,78) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(682,30) Error: Illegal expression
FMXTee_Canvas.pas(805,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(805,43) Error: Property can't have a default value
FMXTee_Canvas.pas(805,55) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(813,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(813,43) Error: Property can't have a default value
FMXTee_Canvas.pas(822,23) Error: This kind of property can't be published
FMXTee_Canvas.pas(822,43) Error: Property can't have a default value
FMXTee_Canvas.pas(822,55) Error: Identifier not found "TAlphaColors"
FMXTee_Canvas.pas(830,21) Error: Illegal expression
FMXTee_Canvas.pas(836,49) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(869,34) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(869,34) Error: This kind of property can't be published
FMXTee_Canvas.pas(869,77) Error: Property can't have a default value
FMXTee_Canvas.pas(870,40) Error: Identifier not found "clDefault"
FMXTee_Canvas.pas(870,40) Error: The default value of a property must be constant
FMXTee_Canvas.pas(1008,24) Error: Illegal expression
FMXTee_Canvas.pas(1035,39) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1050,25) Error: Illegal expression
FMXTee_Canvas.pas(1055,60) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1071,30) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1071,30) Error: This kind of property can't be published
FMXTee_Canvas.pas(1104,22) Error: Illegal expression
FMXTee_Canvas.pas(1105,22) Error: Illegal expression
FMXTee_Canvas.pas(1108,22) Error: Illegal expression
FMXTee_Canvas.pas(1122,35) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1139,54) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1139,74) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1141,42) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1143,42) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1146,44) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1156,24) Error: Illegal expression
FMXTee_Canvas.pas(1157,24) Error: Illegal expression
FMXTee_Canvas.pas(1158,24) Error: Illegal expression
FMXTee_Canvas.pas(1185,33) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1186,33) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1189,35) Error: Type "TColor" is not completely defined
FMXTee_Canvas.pas(1202,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1203,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1206,27) Error: This kind of property can't be published
FMXTee_Canvas.pas(1217,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1218,25) Error: This kind of property can't be published
FMXTee_Canvas.pas(1218,25) Fatal: There were 50 errors compiling module, stopping
Fatal: Compilation aborted
Showing first 200 notices only
Command /bin/sh failed with exit code 1
I found a previous post on the forum where the customer had the same error.
You had sent to him an email with a bug fix. May I have this version please ?
Best regards,
Arnaud
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: iOS compilation fails
Hi Arnaud,
TAlphaColor is defined at UITypes unit, which is not part of FMI. You should search for UITypes.pas and UIConsts.pas. If you removed the FMI folder of XE2 you may have removed them. They should be at some of the "-Fu" referenced folders so that XCode can find them.
TAlphaColor is defined at UITypes unit, which is not part of FMI. You should search for UITypes.pas and UIConsts.pas. If you removed the FMI folder of XE2 you may have removed them. They should be at some of the "-Fu" referenced folders so that XCode can find them.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: iOS compilation fails
Hi,
I created a small test project in Delphi XE2 using UITypes and UIConsts with a TAlphaColor object in a procedure. I exported to Xcode. And on the Mac side, the build is OK. So it can find UITypes and UIConsts units.
Moreover, in the "FMXTee_Canvas.pas" unit, I found :
and
in the Interface Uses section.
Are the "IFDEF D16" and "IFDEF D17" defined ?
Because, if those uses are not compiled then it's normal that TAlphaColor isn't found after in the source code.
Best Regards,
Arnaud
I created a small test project in Delphi XE2 using UITypes and UIConsts with a TAlphaColor object in a procedure. I exported to Xcode. And on the Mac side, the build is OK. So it can find UITypes and UIConsts units.
Moreover, in the "FMXTee_Canvas.pas" unit, I found :
Code: Select all
{$IFDEF D16}
{System.}UITypes,
{$ENDIF}
Code: Select all
{$IFDEF D17}
{System.}UIConsts,
{$ENDIF}
Are the "IFDEF D16" and "IFDEF D17" defined ?
Because, if those uses are not compiled then it's normal that TAlphaColor isn't found after in the source code.
Best Regards,
Arnaud
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: iOS compilation fails
Hi Arnaud,
Yes, they are defined at TeeDefs.inc.Are the "IFDEF D16" and "IFDEF D17" defined ?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |