On Wed, 14 Oct 2015 19:55:13 +0300, Juha Manninen <juha.mannine...@gmail.com> wrote:
>On Wed, Oct 14, 2015 at 7:36 PM, Bo Berglund <bo.bergl...@gmail.com> wrote: >> Even if the original make was done as su? > >No, then the generated files are owned by root and cannot be deleted >by normal users. >You should delete those files and switch to a normal user. >Building any programs as root is unusual and not recommended. > >> In any case given that I have a 3.1.1 fpc compiler (also built and >> installed as su) and have built the Lazarus IDE from trunk sources >> using the commands shown, can I then just do a svn update and then >> issue make as pi? > >Yes, after you have deleted the generated files which are owned by root. I am probably ways off now with the installation I did from the tutorial. How to rectify? 1) Remove the already compiled version How could I do that? It seems to exist in a this directory: /usr/local/share/lazarus which is listed as follows: drwxr-xr-x 18 root root 4096 Oct 10 14:27 lazarus When I did the build the checkout from svn went to: /usr/local/lazarus/source Then the following commands were executed inside that directory: make all OPT=-dFPC_ARMHF make install OPT=-dFPC_ARMHF PREFIX=/usr/local And then the tutorial had this: Remove sources: --------------- cd /usr/local rm -rf /usr/local/lazarus 2) Check out anew into the pi home directory: cd ~/development svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus 3) Build lazarus. How do I do this in the circumstances mentioned above? Is this the way or does one use another command? cd ~/development/lazarus make all or make all OPT=-dFPC_ARMHF In any case, where does the compiled program wind up? (So I can start it?) Or do I also run the second command: make install OPT=-dFPC_ARMHF PREFIX=/usr/local Sorry to be a nuisance, but I really want to get this right... -- Bo Berglund Developer in Sweden -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus