laztoapk error lazarus / 43-Android ---------------------------------------------------------------------- cnmcdee · 2014-04-16 20:08 E:\PL\project001\android>C:\laztoapk\downloads\laz4android\lazbuild.ex e "E:\PL\project001\project001android.lpi" primary config path: C:\laztoapk\downloads\laz4android\config TBuildManager.CheckIfProjectNeedsCompilation  Compile was incomplete for Project TCompiler.Compile WorkingDir="E:\PL\project001\" CompilerFilename="c:\ laztoapk\downloads\laz4android\fpc\2.7.1\bin\i386-win32\fpc.exe" CompilerParams=" -MObjFPC -Scghi -O1 -Tandroid -Parm -vewnhi -FiE:\PL\project001\lib\arm-android -FlC:\laztoapk\downloads\ndk\platforms\android-14\arch-arm\usr\lib -Fuc:\laztoapk\downloads\laz4android\lcl\units\arm-android\customdrawn -Fuc:\laztoapk\downloads\laz4android\lcl\units\arm-android -Fuc:\laztoapk\downloads\laz4android\components\lazutils\lib\arm- android -Fuc:\laztoapk\downloads\laz4android\packager\units\arm- android -FuE:\PL\project001\ -FUE:\PL\project001\lib\arm-android\ -l -FEE:\PL\project001\android\libs\armeabi\ -oliblclapp.so -dLCL -dLCLcustomdrawn -dANDROID -Xd -CpARMV6 Project001android.lpr" [TCompiler.Compile] CmdLine="c:\laztoapk\downloads\laz4android\fpc\2.7 .1\bin\i386-win32\fpc.exe  -MObjFPC -Scghi -O1 -Tandroid -Parm -vewnhi -FiE:\PL\project001\lib\arm-android -FlC:\laztoapk\downloads\ndk\platforms\android-14\arch-arm\usr\lib -Fuc:\laztoapk\downloads\laz4android\lcl\units\arm-android\customdrawn -Fuc:\laztoapk\downloads\laz4android\lcl\units\arm-android -Fuc:\laztoapk\downloads\laz4android\components\lazutils\lib\arm- android -Fuc:\laztoapk\downloads\laz4android\packager\units\arm- android - FuE:\PL\project001\ -FUE:\PL\project001\lib\arm-android\ -l -FEE:\PL\project001\android\libs\armeabi\ -oliblclapp.so -dLCL -dLCLcustomdrawn -dANDROID -Xd -CpARMV6 Project001android.lpr" Hint: Start of reading config file c:\laztoapk\downloads\laz4android\fpc\2.7.1\bin\i386-win32\fpc.cfg Hint: End of reading config file c:\laztoapk\downloads\laz4android\fpc\2.7.1\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.7.1 [2013/12/23] for arm Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Android for ARMEL Compiling Project001android.lpr Compiling project001main.pas project001main.pas(44,26) Hint: Parameter "Sender" not used project001main.pas(43,25) Hint: Parameter "Sender" not used project001main.pas(43,46) Hint: Parameter "CloseAction" not used project001main.pas(40,30) Hint: Parameter "Sender" not used project001main.pas(85,20) Warning: range check error while evaluating constants (4282533186 must be between -2147483648 and 2147483647) project001main.pas(85,20) Warning: range check error while evaluating constants (4280888361 must be between -2147483648 and 2147483647) project001main.pas(41,30) Hint: Parameter "Sender" not used project001main.pas(42,30) Hint: Parameter "Sender" not used project001main.pas(45,27) Hint: Parameter "Sender" not used project001main.pas(21,3) Hint: Unit "strutils" not used in Project001main Assembling project001main Assembling project001android Compiling resource E:\PL\project001\lib\arm- android\Project001android.or Linking E:\PL\project001\android\libs\armeabi\liblclapp.so c :\laztoapk\downloads\laz4android\fpc\2.7.1\bin\i386-win32\arm-linux- androideabi-ld.bfd.exe: cannot find -ljnigraphics Project001android.lpr(35,36) Error: Error while linking Project001android.lpr(35,36) Fatal: There were 1 errors compiling module, stopping ERROR: failed compiling of project E:\PL\project001\project001android.lpi E:\PL\project001\android>REM pause ---------------------------------------------------------------------- cnmcdee · 2014-04-16 20:09 Any ideas? I am running Windows GREP through the source code of laztoapk to see if anything comes up. ---------------------------------------------------------------------- DelphiFreak · 2014-04-18 08:36 Hi, i am on holidays and can not investigate your problem at the moment. Did you follow my tutorial exactly? ---------------------------------------------------------------------- WizardNo.7 · 2014-06-20 07:23 Hi DelphiFreak, I have downloaded the newest LazToApk and followed your tutorial EXACTLY, yet I get an error at the part in page 12 where you click on [Build & Deploy]. I get the dialog asking me for the password, but not the second one telling me to remember to set the password when prompted. A Command prompt window just flashes after entering the password in the dialog and then nothing happens. LazToApk shows a red error: QuoteFailed to build Project . Please start the batch-file manually and analyze the output. Any help will be greatly appreciated! ---------------------------------------------------------------------- DelphiFreak · 2014-06-20 07:48 Hello WizardNo.7, all sourcecode of laztoapk is available at here: http://sourceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/ There are 3 .pas files. The most interesting one is called http://sour ceforge.net/p/laztoapk/svn/HEAD/tree/trunk/source/apkmanagermain.pas Now some explanation how laztoapk works: laztoapk creates .bat-files and start's these batch-files. To find out more about your problem, just take the windows file- explorer and edit the batch file and add the word "pause" at the end. Then save&close the file and run the batch-file just from windows file-explorer. Carefully analyze the output text to find out your problem or post the output text here in the forum. Regards, DelphiFreak ---------------------------------------------------------------------- WizardNo.7 · 2014-06-20 08:49 Hello DelphiFreak, Thanks for the response. I have done as you told me and posted the output of the .bat file: Code: [Select]C:\laztoapk\projects\project1\android>C:\laztoapk\3rdpar ty\laz4android\lazbuild. exe "C:\laztoapk\projects\project1\project1android.lpi" primary config path: C:\laztoapk\3rdparty\laz4android\config Error: invalid Lazarus directory "": directory lcl not found Failed building C:\laztoapk\projects\project1\project1android.lpi C:\laztoapk\projects\project1\android>REM pause C:\laztoapk\projects\project1\android>pause Press any key to continue . . . If the "lcl" folder that is being reffered to is the one found within laz4android then I can confirm that it is infact there so I don't know why the .bat file fails to find it. Any ideas? ---------------------------------------------------------------------- DelphiFreak · 2014-06-20 09:15 Ok, there is something wrong with your lazarus installation or you had already an installation on your disk and some environment path variables point to wrong locations. Ar you sure that  Step 04: Start Lazarus and install package „CustomDrawn“ worked for you ? ---------------------------------------------------------------------- WizardNo.7 · 2014-06-20 09:29 Well at Step 4 I had an error the first time round,  but then I completely removed Lazarus and everything of laztoapk and reinstalled the Lazarus in my signature and reinstalled laztoapk as well. After the reinstallations i went on successfully and ended up where I am now? ---------------------------------------------------------------------- DelphiFreak · 2014-06-20 09:55 Hi, I fear I can not help. I used windows xp 32 bit. You use windows 8 pro 64bit? So I look's like you must try to solve the problem by yourself. I have the feeling it has someting to do with your laz4android installation. Sorry. ---------------------------------------------------------------------- BigChimp · 2014-06-20 10:05 The error you're seeing Code: [Select]invalid Lazarus directory "": directory lcl not found indeed indicates your Lazarus install is incorrectly set up. For a regular Lazarus install, you'd need to go to tools/options/environment/files, and set the correct lazarus directory - the one where your current lazarus.exe is located and which should contain the lcl subdirectory. I suppose it can also be a permissions issue - make sure your account has full control (read/write etc) access to your lazarus directory so that you don't need to start lazarus (or laztoapk etc) using UAC/as administrator. No idea what modifications laztoapk etc expect though. ---------------------------------------------------------------------- WizardNo.7 · 2014-06-20 10:38 Hi BigChimp / DelphiFreak, I checked again, and redirected everything to the correct related paths and tried again still getting the same error... I also tried starting both Lazarus and LazToApk as Administrator but I think that is unneeded because this is the only and administrator account anyway... ---------------------------------------------------------------------- BigChimp · 2014-06-20 10:42 Quote from: WizardNo.7 on June 20, 2014, 12:38:09 pmI also tried starting both Lazarus and LazToApk as Administrator but I think that is unneeded because this is the only and administrator account anyway... Please read up on UAC and administrative privileges. Your account may be able to run as administrator but does not do so by default... ---------------------------------------------------------------------- WizardNo.7 · 2014-06-20 11:08 Oh yeah, No worries BigChimp... Already sorted that out a while ago with security policies etc... I trust myself enough to always be in Admin mode and therefore set that up. That's also why I said it couldn't be that. ---------------------------------------------------------------------- BigChimp · 2014-06-20 11:33 Quote from: WizardNo.7 on June 20, 2014, 01:08:32 pmThat's also why I said it couldn't be that.  Fair enough ---------------------------------------------------------------------- almora · 2015-09-16 15:45 Hi.. I get an error like this. What can I do. C:\laztoapk\projects\android>C:\laztoapk\downloads\laz4android\lazbuil d.exe "C:\ laztoapk\projects\projectsandroid.lpi" Hint: (lazarus) Last compile was incomplete for FCL 1.0.1   State file="C:\laztoapk\downloads\laz4android\packager\units\arm- android\FCL.c ompiled" Hint: (lazarus) Missing state file of LazUtils 1.0:  C:\laztoapk\downloads\laz4an droid\components\lazutils\lib\arm-android\LazUtils.compiled Hint: (lazarus) Missing state file of LCLBase 1.5: C:\laztoapk\downloads\laz4and roid\lcl\units\arm-android\LCLBase.compiled RunTool C:\laztoapk\downloads\laz4android\fpc\3.1.1\bin\i386-win32\fpc.exe "-iWT OTP" "-Parm" "-Tandroid" RunTool C:\laztoapk\downloads\laz4android\fpc\3.1.1\bin\i386-win32\fpc.exe "-va"  "-Parm" "-Tandroid" "compilertest.pas" C:\laztoapk\projects\android>C:\laztoapk\downloads\laz4android\lazbuil d.exe "C:\ laztoapk\projects\projectsandroid.lpi" Hint: (lazarus) Last compile was incomplete for FCL 1.0.1   State file="C:\laztoapk\downloads\laz4android\packager\units\arm- android\FCL.c ompiled" Hint: (lazarus) Missing state file of LazUtils 1.0: C:\laztoapk\downloads\laz4an droid\components\lazutils\lib\arm-android\LazUtils.compiled Hint: (lazarus) Missing state file of LCLBase 1.5: C:\laztoapk\downloads\laz4and roid\lcl\units\arm-android\LCLBase.compiled RunTool C:\laztoapk\downloads\laz4android\fpc\3.1.1\bin\i386-win32\fpc.exe "-iWT OTP" "-Parm" "-Tandroid" RunTool C:\laztoapk\downloads\laz4android\fpc\3.1.1\bin\i386-win32\fpc.exe "-va"  "-Parm" "-Tandroid" "compilertest.pas"