Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Error in compile for android on windows 7 11 years 2 months ago #4503

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
Hi all.

I have CT version 4.5.
When I want to compile android gives the following error:
"gtk2\gtk2int.pas(36,22) Fatal: Can't find unit gdk2x used by Gtk2Int"
I'm still not able to compile a program with CT for Android.

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

Error in compile for android on windows 7 11 years 2 months ago #4504

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sir
did you select LCLWidgetType "customdrawn" in application "Additions and overrides" page






PilotLogic Architect and Core Programmer
The following user(s) said Thank You: Ahmad

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

Last edit: by Sternas Stefanos.

Error in compile for android on windows 7 11 years 2 months ago #4508

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
Thanks for quick reply.

I've done these settings. But ...
The following error was encountered:

C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnproc.pas(89,17) Warning: An inherited method is hidden by "constructor Create;"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnprivate.pas(291,3) Note: Local variable "lCharCode" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsforms_android.inc(1,2) Warning: Illegal compiler directive "$MAINFORM"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsforms_android.inc(6,32) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsforms_android.inc(122,32) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsforms_android.inc(140,24) Warning: Comment level 2 found
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsforms_android.inc(147,32) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsforms_android.inc(151,32) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(116,5) Warning: Comment level 2 found
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(131,5) Warning: Comment level 2 found
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(293,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(429,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(489,9) Warning: Comment level 2 found
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(546,9) Warning: Comment level 2 found
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(569,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwscomctrls.pas(622,8) Warning: Comment level 2 found
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsextctrls.pas(229,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(548,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(579,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(878,3) Note: Local variable "lCDWinControl" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(879,3) Note: Local variable "lIntfComboBox" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(1570,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(1642,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(1672,28) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwsstdctrls.pas(1731,3) Note: Local variable "lCDWinControl" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwslazdeviceapis.pas(183,3) Note: Local variable "javaString_WINDOW_SERVICE" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwslazdeviceapis.pas(183,30) Note: Local variable "javaString_getDefaultDisplay" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(301,3) Note: Local variable "ARowStride" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(457,39) Warning: Constructing a class "TLazCanvas" with abstract method "DoCopyRect"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(457,39) Warning: Constructing a class "TLazCanvas" with abstract method "DoDraw"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(1126,56) Warning: Local variable "lState" does not seem to be initialized
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(1431,3) Note: Local variable "R" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(2800,3) Note: Local variable "ScrSize" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(3916,3) Note: Local variable "lFont" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(4690,3) Note: Local variable "PenPos" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(4690,11) Note: Local variable "LastPos" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(4942,3) Note: Local variable "LazDC" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(5207,3) Note: Local variable "lOrigBrush" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(5461,3) Note: Local variable "lObject" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(5461,12) Note: Local variable "lOldObject" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(5462,3) Note: Local variable "lOldControl" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(5463,3) Note: Local variable "lHandle" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(5838,3) Note: Local variable "lFont" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(6203,3) Note: Local variable "SrcRect" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(6203,12) Note: Local variable "DstRect" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi.inc(6203,21) Note: Local variable "MaskRect" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnlclintf.inc(277,3) Note: Local variable "lFormHandle" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnlclintf.inc(278,3) Note: Local variable "lForm" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(39,3) Note: Local variable "lTarget" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(40,3) Note: Local variable "lEventPos" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(132,3) Note: Local variable "lTarget" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(134,3) Note: Local variable "lCombinedAChar" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(273,10) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(303,3) Note: Local variable "arraylen" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(866,3) Note: Local variable "javaAndroidContentContextClass" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(871,3) Note: Local variable "lJavaFileObject" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(907,3) Note: Local variable "javaAndroidContentContextClass" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(964,3) Note: Local variable "lJavaArray" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(1103,3) Note: Local variable "javaString" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(1105,3) Note: Local variable "lNativeString" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(1174,45) Warning: Constructing a class "TLazCanvas" with abstract method "DoCopyRect"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(1174,45) Warning: Constructing a class "TLazCanvas" with abstract method "DoDraw"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(1420,23) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnobject_android.inc(1424,23) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi_android.inc(75,5) Warning: Comment level 2 found
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi_android.inc(1840,3) Note: Local variable "FontList" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi_android.inc(1841,3) Note: Local variable "i" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi_android.inc(2768,3) Note: Local variable "LazDC" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnwinapi_android.inc(3692,3) Note: Local variable "R" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnlclintf_android.inc(275,23) Warning: Function result does not seem to be set
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnproc.pas(315,3) Note: Local variable "lCount" is assigned but never used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnproc.pas(412,41) Warning: Constructing a class "TLazCanvas" with abstract method "DoCopyRect"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnproc.pas(412,41) Warning: Constructing a class "TLazCanvas" with abstract method "DoDraw"
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnproc.pas(469,16) Note: Local variable "lParentControl" not used
C:\codetyphon\typhon\lcl\interfaces\customdrawn\customdrawnproc.pas(471,3) Note: Local variable "lCanvas" not used
"Compiling package LCL 1.3" completed
Options changed, recompiling clean with -B
c:\codetyphon\fpc\bin\i386-win32\arm-linux-ld.exe: cannot find -ljnigraphics
project1.lpr(22) Error: Error while linking
project1.lpr(22) Fatal: There were 1 errors compiling module, stopping

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

Last edit: by Ahmad.

Error in compile for android on windows 7 11 years 1 month ago #4526

  • Michal
  • Michal's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 1
You must have a pack of Android NDK-r8e.
Set the path to the library according to the image.
Compile.
The first time I was able to compile arm-android (WIN7 32b) in CodeTyphon android 4.5. :)


Attachments:
The following user(s) said Thank You: Ahmad

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

Last edit: by Michal.

Error in compile for android on windows 7 11 years 1 month ago #4530

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
I was able to compile a project.Of course With your help.
But now a question:
How do I generate output for android?

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

Error in compile for android on windows 7 11 years 1 month ago #4536

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
Hi all,
Finally I understand how can generate android output file.
By android folder that is in this path: C:\codetyphon\CodeOcean\2_Basics\samples\androidlcl
1-Edit generate_debug_key.bat file and run it.
2-And so build_debug_apk.bat
But an error in last step:




I want know there is any other step that I didn't?

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

Last edit: by Ahmad.

Error in compile for android on windows 7 11 years 1 month ago #4537

  • sam
  • sam's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 2
Hello,

you won't get it running with Codetyphon. You can compile the project but the produced executable does not run.

You better follow exactly my tutorial
see here

Regards,

Sam
The following user(s) said Thank You: Ahmad

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

Last edit: by sam.

Error in compile for android on windows 7 11 years 1 month ago #4538

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
Hi all and thanks too.

By your method there are below errors.




and




I've attached the project

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

Last edit: by Ahmad.

Error in compile for android on windows 7 11 years 1 month ago #4539

  • sam
  • sam's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 2
I had a look at your files.
I saw you have selected "android-8".

Please select "android-14" in laztoapk and try again.


SET APK_SDK_PLATFORM=E:\android\sdk\platforms\android-14

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

  • Page:
  • 1