SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Android problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
Malcolm



Joined: 21 Jan 2003
Posts: 84
Location: Scotland

PostPosted: Mon Dec 09, 2013 12:25 pm    Post subject: Android problem Reply with quote

Hi

I just tried to add TsiLang to my small, working Android project (FMX).
But when I try to build or compile I get errors about missing .dcu and .o files.

I see that my design packages include TsiLang Component Suite (VCL Edition) and there are no runtime packages for TsiLang.

Does this mean that I have missed something from my installation (7.1) or is TsiLang not available for FMX projects?

Malcolm
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Dec 11, 2013 2:17 pm    Post subject: Reply with quote

FMX compiled units are installed under specific sub-folder which is not added to Library path automatically. So you just need to add this sub-folder to your project's library settings. Android units are installed under "Android" sub-folder.
Back to top
View user's profile Send private message
Malcolm



Joined: 21 Jan 2003
Posts: 84
Location: Scotland

PostPosted: Thu Dec 12, 2013 10:22 pm    Post subject: Reply with quote

OK, by adding the TsiLang\Units\ERS XE5\Android folder, the compiler finds the four .dcu files.

But now it can't find the *.o files, and they are nowhere on my computer.
So how do I create them?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Fri Dec 13, 2013 2:43 pm    Post subject: Reply with quote

Both DCUs and Os files were installed into this folder. May be you've deleted them? Try to re-install in case they were deleted.
Back to top
View user's profile Send private message
Malcolm



Joined: 21 Jan 2003
Posts: 84
Location: Scotland

PostPosted: Fri Dec 13, 2013 4:17 pm    Post subject: Reply with quote

That did not help. Very strange. Crying or Very sad

I uninstalled including Reg entries. That removed all but my .dic file

I ran the 7_1 setup as Administrator
I selected only the RAD Studio XE5 IDE plus the SIL Editor, Dictionary, Help and Wizards.

After the install the Units\ERS XE5\ folders for Android, iOS and OSX32 contain only the 4 .DCU files

No sign of any Android .o files.
Back to top
View user's profile Send private message
Malcolm



Joined: 21 Jan 2003
Posts: 84
Location: Scotland

PostPosted: Sat Dec 14, 2013 9:04 am    Post subject: Reply with quote

To add to the above, I installed only Delphi, not the C++
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Tue Dec 17, 2013 8:34 am    Post subject: Reply with quote

Sorry for this. You was right. The Full Source install script didn't include the .o files. We've fixed the script. You can download the .o files from http://www.sicomponents.com/tmp/Android.zip
Back to top
View user's profile Send private message
Malcolm



Joined: 21 Jan 2003
Posts: 84
Location: Scotland

PostPosted: Tue Dec 17, 2013 7:19 pm    Post subject: Reply with quote

Hi

I confirm that the install script now includes the .o files, thanks.

However, I now get build errors such as shown below. Note the references to "F:\Auxiliary/....... I am not sure where this path comes from.

[DCC Error] E2597 C:\Users\Public\Documents\RAD Studio\12.0\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: C:\Program Files\SiComponents\TsiLang\Units\ERS XE5\Android\siConsts.o: in function System::Generics::Collections::TEnumerable__1<System::DelphiObject<System::Classes::TComponent> >::ToArray():F:\Auxilary/siConsts.pas:2280: error: undefined reference to 'System::_InstCopy(System::DelphiObject<System::TObject>&, System::DelphiObject<System::TObject>)'

..followed by a lot of similar errors..

Is that me? Or where does the "F:\Auxiliary come from?

Malcolm
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Dec 18, 2013 1:26 pm    Post subject: Reply with quote

I'm not sure how Android compiler produces .o files but I can see F:\Auxilary reference in siConsts.o file. Actually "F:\Auxilary" is a path on our build station so may be the compiler uses some paths in .o file. But this is quite strange.
BUT as you have Full Source Edition you can easily re-build your project using TsiLang sources and produce compiled project on your side. Just be sure to define FMX in your Android project that uses TsiLang and add path to sources to project's options.
Please let me know if this helped.
Back to top
View user's profile Send private message
Malcolm



Joined: 21 Jan 2003
Posts: 84
Location: Scotland

PostPosted: Wed Dec 18, 2013 2:18 pm    Post subject: Reply with quote

Hi Igor

I suspected that it might be some path from your system.
Re-compiling is outside my comfort zone, so I will abandon the translation for now.

My project is in alpha now, so I can leave the translation until later. Hopefully these glitches will have been resolved by then in some update.

Malcolm
Back to top
View user's profile Send private message
Brov84



Joined: 20 Jan 2014
Posts: 2

PostPosted: Mon Jan 20, 2014 5:00 pm    Post subject: Reply with quote

Hi,

i have the same problem ([DCC Error] E2597 C:\Users\Public\Documents\RAD Studio\12.0\PlatformSDKs\android-ndk-r8e\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: C:\Program Files\SiComponents\TsiLang\Units\ERS XE5\Android\siConsts.o: in function System::Generics::Collections::TEnumerable__1<System::DelphiObject<System::Classes::TComponent> >::ToArray():F:\Auxilary/siConsts.pas:2280: error: undefined reference to 'System::_InstCopy(System::DelphiObject<System::TObject>&, System::DelphiObject<System::TObject>)' ) with the Full Source component version.

How can i fix it?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Jan 22, 2014 4:39 pm    Post subject: Reply with quote

Re-building sources fixed the problem.
Back to top
View user's profile Send private message
Dimitris Nomikos



Joined: 24 Jan 2014
Posts: 6

PostPosted: Fri Jan 24, 2014 2:04 pm    Post subject: Reply with quote

Hello,

i'm having the same problem as the people above...

isiticov can you tell us some steps on how to do that? Tried cleaning my project and rebuild again but i got the same error.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Mon Jan 27, 2014 11:14 am    Post subject: Reply with quote

Hello,

1. Add path to TsiLang units folder and Auxiliary sub-folder to your project's library path settings.
2. Add FMX conditional define to your project's options.
3. Re-build of your project.
Back to top
View user's profile Send private message
Dimitris Nomikos



Joined: 24 Jan 2014
Posts: 6

PostPosted: Mon Jan 27, 2014 11:49 am    Post subject: Reply with quote

In Tool, Options, Library, Android Platform, Library Path: i added C:\Program Files\SiComponents\TsiLang\Units\ERS XE5\Android

and on the Main Unit of the project i have siComp on my uses section. I still get the linker error.

Which folder do you mean as 'Auxiliary sub-folder'? Is this the only thing i am missing?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group