Forum
× Discussions for CodeTyphon Studio Installation and Setup.

Question Cross compiling problem

  • William
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 4 days ago #13582 by William
Cross compiling problem was created by William
I followed the instructions at www.pilotlogic.com/sitejoom/index.php/wiki?id=222
to build a simple android program.

If I compile with CodeTyphon32, I get this error:

Compile with CodeTyphon32
Error: Compiler "C:\codetyphon\fp(\fpc32\bin\i386—win32\fpc.exe" does not support target arm-android


If I compile with CodeTyphon64, I get this error:

Compile with CodeTyphon64
Linking C:\CodeTyphonProjects\Basichm\project1
c:\codetyphon\fpc\fpc64\bin\)<86_64-win64\arm-android-ld.exe: error: C:\CodeTyphonProjects\Basichm\link.res:350:8: syntax error, unexpected STRING
c:\c0detyphon\fpc\fpc64\bin\x86_64-win64\arm-android-Id.exe: fatal error: unable to parse script file C:\CodeTyphonProjects\BasicPgm\link.res
projectl.ppr(B,0) Error: Error while linking

link.res:350:8 = INSERT BEFORE .data1


Any help / suggestions appreciated.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 3 days ago - 1 month 3 days ago #13583 by Sternas Stefanos
Replied by Sternas Stefanos on topic Cross compiling problem
For Typhon32 you must first build FPC32 cross-Element arm-android

please follow these steps https://www.pilotlogic.com/sitejoom/index.php/wiki?id=222

and please give us more info
your OS, RAM, CT ver, etc

PilotLogic Architect and Core Programmer
Last edit: 1 month 3 days ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • William
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 3 days ago - 1 month 3 days ago #13585 by William
Replied by William on topic Cross compiling problem
System Description:

Operating System Microsoft Windows 7 Pro 64-Bit
Manufacturer Dell Inc.
Model OptiPlex 980
Number of Processors 4
Processor Description Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz
Total Memory 8192MB

I had build FPC32 cross-Element arm-android for 64, but not for 32.
It is compiling ok now in Typhon32.
Last edit: 1 month 3 days ago by William.

Please Log in or Create an account to join the conversation.

  • William
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 3 days ago #13587 by William
Replied by William on topic Cross compiling problem
Can someone tell me how I can package my executable into an APK so I can install it on my phone to test it?

Thanks

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 3 days ago - 1 month 3 days ago #13588 by Sternas Stefanos
Replied by Sternas Stefanos on topic Cross compiling problem
Sir
CodeTyphon don't support apk.* files build.
ark file is a simple zip file and you can open it with applications like 7zip, Rar, etc

Please search on the web for a solution

PS: Your CodeTyphon version ?

PilotLogic Architect and Core Programmer
Last edit: 1 month 3 days ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • William
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 3 days ago #13589 by William
Replied by William on topic Cross compiling problem
CodeTyphon 6.80.

I am not familiar with running an android app that wasn't installed. I can load my CodeTyphon android app on my phone, but I don't know how to execute it. It tries to open it with text browsers only.

Please Log in or Create an account to join the conversation.