jmpessoa / lazandroidmodulewizard

LAMW: Lazarus Android Module Wizard: Form Designer and Components development model!
251 stars 83 forks source link

Scrip fails and dont make ID nor FPC #32

Open AlfonsoMartitegui opened 7 years ago

AlfonsoMartitegui commented 7 years ago

I got this: ln: failed to create symbolic link 'arm-linux-androideabi-as': File exists ln: failed to create symbolic link 'arm-linux-androideabi-ld': File exists ln: failed to create symbolic link 'arm-linux-as': File exists ln: failed to create symbolic link 'arm-linux-ld': File exists This script should not be run as root MAKE THE WINDOWS win32 CROSSCOMPILER? yes

MAKE THE WINDOWS win64 CROSSCOMPILER?yes

MAKE THE ANDROID ARM CROSSCOMPILER?yes

MAKE THE ANDROID i386 CROSSCOMPILER?yes

BUILD LAZARUS?yes

/home/osboxes/bin/freepascal/fpc-setver-3.0.0.sh: line 29: /home/osboxes/bin/freepascal/fpc-bin/fpcmkcfg: No such file or directory

OK fpc.fpg contains a valid gcc path /usr/lib/gcc/x86_64-linux-gnu/5 make: No rule to make target 'distclean'. Stop. make: No rule to make target 'clean'. Stop. Processing makefile.fpc Error: Unable to open file "makefile.fpc" make: No rule to make target 'all'. Stop. make: No rule to make target 'install'. Stop. ls: cannot access '/home/osboxes/bin/freepascal/fpc_fixes_3_0/lib/fpc/3': No such file or directory basename: missing operand Try 'basename --help' for more information. unlink: cannot unlink '/home/osboxes/bin/freepascal/fpc-3.0.1': No such file or directory cp: cannot stat '/home/osboxes/bin/freepascal/fpc_fixes_3_0/lib/fpc//ppc': No such file or directory /home/osboxes/bin/freepascal/fpc-setver-.sh: line 29: /home/osboxes/bin/freepascal/fpc-bin/fpcmkcfg: No such file or directory

OK fpc.fpg contains a valid gcc path /usr/lib/gcc/x86_64-linux-gnu/5 Processing makefile.fpc Error: Unable to open file "makefile.fpc" make: No rule to make target 'crossinstall'. Stop. cp: cannot stat '/home/osboxes/bin/freepascal/fpc_fixes_3_0/lib/fpc//ppcross386': No such file or directory Processing makefile.fpc Error: Unable to open file "makefile.fpc" make: No rule to make target 'crossinstall'. Stop. cp: cannot stat '/home/osboxes/bin/freepascal/fpc_fixes_3_0/lib/fpc//ppcrossx86': No such file or directory Processing makefile.fpc Error: Unable to open file "makefile.fpc" make: No rule to make target 'clean'. Stop. make: No rule to make target 'crossinstall'. Stop. cp: cannot stat '/home/osboxes/bin/freepascal/fpc_fixes_3_0/lib/fpc//ppcrossarm': No such file or directory Processing makefile.fpc Error: Unable to open file "makefile.fpc" make: No rule to make target 'clean'. Stop. make: No rule to make target 'crossinstall'. Stop. cp: cannot stat '/home/osboxes/bin/freepascal/fpc_fixes_3_0/lib/fpc//ppcross386': No such file or directory cp: cannot stat '/home/osboxes/bin/freepascal/fpc_fixes_3_0/lib/fpc//ppcross386': No such file or directory make: No rule to make target 'clean'. Stop. make: No rule to make target 'all'. Stop. strip: 'lazarus': No such file strip: 'lazbuild': No such file strip: 'startlazarus': No such file --2017-10-27 13:00:13-- https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz

Sdk is installed, but no lazarus IDE nor fpc... where is the problem? Thanks

jmpessoa commented 7 years ago

Hello Alfonso.... there are some comments about the linux [fail] script here: http://forum.lazarus.freepascal.org/index.php/topic,38781.0.html

AlfonsoMartitegui commented 7 years ago

Thaks jmpessoa, but as it looks to me... 'im not sure any of your tips are the problem on script. Chacked again and... /home/osboxes/bin/freepascal/fpc-setver-3.0.0.sh: line 29: /home/osboxes/bin/freepascal/fpc-bin/fpcmkcfg: No such file or directory checking the folder, it looks right. There is no fpc-bin created (just a broken link (inode/symlink)). I tried to manually create that folder, and try again. I find that inside that folder I manually created, there is another broken link (inode/symlink) called 'bin' but rest of folder is empty. so there is not a 'fpcmkcfg' So i got: '/home/osboxes/bin/freepascal/fpc-setver-3.0.0.sh: line 29: /home/osboxes/bin/freepascal/fpc-bin/fpcmkcfg: No such file or directory' And there.... My question is. What permissions should the directory usr/bin/freepascal/ and children should have. Maybe if the problem you pointed are permissions ... The readme and the script says is should not be executed (script) as root, so script is launched as sudo user, but the owner of the folder i see is root, and the rights for group(root) and others is access files. (644) Iguess. Should it be different and thats why fails? Regards

renabor commented 7 years ago

Hello Alfonso, scripts have to be run in order and the first to run is 1-master-script.sh, that will call others properly. If you don't have a symlink like this: fpc-bin -> /home/renabor/bin/freepascal/fpc-3.0.4/bin/ the script will fail. Run all the configuration scripts (1-master-script.sh) and you will be ok! Regards

AlfonsoMartitegui commented 7 years ago

Thanks for your replay. sorry i'been on a working trip.Im back. fpc-bin -> /home/renabor/bin/freepascal/fpc-3.0.4/bin/ that renabor must exist? 'cause it doesnt... or that renarbor will be my user folder. I lauch the script just calling 1-master-script.sh .. but lemme try again, ill try to run in a clean ubuntu 16.

AlfonsoMartitegui commented 7 years ago

I Did a clean try. It seemed to work. an the end i got Lazarus installed, and everythig.. Or it looks like. But, there is a little problem i dont really understand why. the desktop launcher wont work. Nor the app launcher. does not give any message either. the launcher.sh has:

export PATH=/home/osboxes/bin/freepascal/fpc/bin:$PATH export PPC_CONFIG_PATH=/home/osboxes/bin/freepascal/fpc/bin /home/osboxes/bin/freepascal/lazarus/lazarus

I guess IDE must be copiled, right? I thought scripts would do it. confirm if Im wrong please. Thansk a lot man, Regards

renabor commented 7 years ago

Hello Alfonso! renabor is my $HOME, so replace it with osboxes! Be sure to check that in your ~.bashrc you have:

/home/osboxes/bin/freepascal/fpc-bin:

inside the definition of your PATH!

for launching lazarus I use a script like this: `

!/bin/bash

cd ~/bin/freepascal/lazarus /home/renabor/bin/freepascal/lazarus/lazarus --pcp=~/.lazarus_1.8RC5 ` P.S.

it is «fpc-bin» NOT «fpc/bin» ! ;-)