Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Joe via lazarus

Am 21.02.2019 um 22:01 schrieb Joe via lazarus:

Hi, Bo,

I switched the test system from locale German to locale English-UK and 
rebooted. Then I started  Lazarus 2.0 and run my ToggleBox test again. 
This time it run flawslesly!  How can a locale setting influence the 
inner workings of Lararus 2.0 in such a manner? Any ideas in the 
community?


Could you perhaps switch temporarely to German locale and try to run 
the ToggleBox test again?


Your solution for the crtbegin/crtend-phenomenon is very interesting. 
I'll try it tomorrow.


--  Joe



Hi, all,

another finding: After this test with locale English-UK  I switched the 
system back to locale German and to character set UTF-8. This time, the 
Toggle Box test program was compiled and run - despite the German 
environment. Looks like the charcter set could be the culprit as well.


-- Joe
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Joe via lazarus

Hi, Bo,

I switched the test system from locale German to locale English-UK and 
rebooted. Then I started  Lazarus 2.0 and run my ToggleBox test again. 
This time it run flawslesly!  How can a locale setting influence the 
inner workings of Lararus 2.0 in such a manner? Any ideas in the community?


Could you perhaps switch temporarely to German locale and try to run the 
ToggleBox test again?


Your solution for the crtbegin/crtend-phenomenon is very interesting. 
I'll try it tomorrow.


--  Joe


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Bo Berglund via lazarus
On Thu, 21 Feb 2019 20:50:41 +0100, Bo Berglund via lazarus
 wrote:

>project1.lpr(23,0) Warning: "crtbegin.o" not found, this will probably
>cause a linking failure
>project1.lpr(23,0) Warning: "crtend.o" not found, this will probably
>cause a linking failure
>(I have seen this crtbegin-crtend warning before, but have forgotten
>how to fix it, it is caused by something inside fpc.conf, I believe.)
>

I found a solution to this:
nano ~/.fpc.cnf

A few pages down there is a section like this:

# searchpath for libraries
#-Fl/home/pi/lib/fpc/$fpcversion/lib
#-Fl/lib;/usr/lib
-Fl/home/pi/lib/fpc/$fpcversion/lib/$FPCTARGET

Here I added this after the above line:
#Added to get rid of crtbegin.o and crtend.o warnings when compiling
in Lazarus
-Fl/usr/lib/gcc/arm-linux-gnueabihf/6/

The path was found by doing a search:

$ sudo find / -name crtend.o
find: ‘/proc/761/task/761/net’: Invalid argument
find: ‘/proc/761/net’: Invalid argument
/usr/lib/gcc/arm-linux-gnueabihf/6/crtend.o

After  this was added I compiled the project again and now these
warnings were gone.


-- 
Bo Berglund
Developer in Sweden

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Bo Berglund via lazarus
On Thu, 21 Feb 2019 19:06:48 +0100, Joe via lazarus
 wrote:

>But unfortunately, this Lazarus didn't compile my test programs. Error 
>message:
>"Project1.lpr(23,0): Error: resource compiler "fpcres" not found, 
>switching to external mode"
>
>Steps to reproduce:
>Create a new Raspian Stretch (Nov 2018) system, switch locale to German, 
>create Lazarus 2.0.0 with Bo's script.
>with this Lazarus create a new project. Put a ToggleBox ToggleBox1 on 
>Form1; Create an On Change
>event handler for ToggleBox1, content "ShowMessage ('Hello')". Try to 
>compile.
>
>'sum'-Checksum of the script: 12667
>Hardware: Pi 3B+
>Result of 'sudo find / -name fpcres':
>/home/pi/dev/fpc/3.0.4/utils/fpcres
>/home/pi/bin/fpcres
>/home/pi/share/src/fpc-3.0.4/fpc/utils/fpcres

As I have written in the script it deposits the fpc and lazarus
entirely within the users home dir, thus not polluting the system.
So /home/pi/bin is on path and where the binaries built by make all
and deposited by make install results in using this dir.

On my test machine:
$ which fpcres
/home/pi/bin/fpcres

I.e. exactly like you have.

So I proceeded to do what you described to replicate.
Compile messages:

Compile Project, Target: /home/pi/tmp/project1: Success, Warnings: 2
project1.lpr(23,0) Warning: "crtbegin.o" not found, this will probably
cause a linking failure
project1.lpr(23,0) Warning: "crtend.o" not found, this will probably
cause a linking failure
(I have seen this crtbegin-crtend warning before, but have forgotten
how to fix it, it is caused by something inside fpc.conf, I believe.)


And finally if I hit the green arrow to run the project it compiles
again and then runs and shows the form with the togglebox. When
clicked the message is show normally.

The only difference from your steps is that I have not changed locale
of my Pi
And Raspbian is what I already have:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:Raspbian GNU/Linux 9.6 (stretch)
Release:9.6
Codename:   stretch

I don't know any command to use to get any more info regarding
Raspbian...

-- 
Bo Berglund
Developer in Sweden

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Joe via lazarus

Hi,

now Bo's script (current version as of this afternoon) created Lazarus 
2.0, SVN Revision 60471.


But unfortunately, this Lazarus didn't compile my test programs. Error 
message:
"Project1.lpr(23,0): Error: resource compiler "fpcres" not found, 
switching to external mode"


Steps to reproduce:
Create a new Raspian Stretch (Nov 2018) system, switch locale to German, 
create Lazarus 2.0.0 with Bo's script.
with this Lazarus create a new project. Put a ToggleBox ToggleBox1 on 
Form1; Create an On Change
event handler for ToggleBox1, content "ShowMessage ('Hello')". Try to 
compile.


'sum'-Checksum of the script: 12667
Hardware: Pi 3B+
Result of 'sudo find / -name fpcres':
/home/pi/dev/fpc/3.0.4/utils/fpcres
/home/pi/bin/fpcres
/home/pi/share/src/fpc-3.0.4/fpc/utils/fpcres

--  Joe




--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread wkitty42--- via lazarus

On 2/21/19 9:48 AM, Bo Berglund via lazarus wrote:

On Thu, 21 Feb 2019 09:14:40 -0500, wkitty42--- via lazarus

if you are still getting the same file even after it has been changed,
that means that something between you and the source server is caching it
and hasn't updated the cache since the version you keep getting was
originally pulled and cached... >

I did not upload the modified script where I had removed the double
quotes from the svn command



ahh! that would explain it :)


--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list unless*
   *a signed and pre-paid contract is in effect with us.*
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Bo Berglund via lazarus
On Thu, 21 Feb 2019 09:14:40 -0500, wkitty42--- via lazarus
 wrote:

>On 2/21/19 5:38 AM, Joe via lazarus wrote:
>> Am 21.02.2019 um 00:09 schrieb Bo Berglund via lazarus:
>>> What kind of network connection do you have? I am on 250/100 Mbit/s
>>> fiber myself.
>> 
>> We have a VDSL connection with 265/42 Mbit/s.
>> 
>> I tried (at 11:30 hours local time) to download the newest version of your 
>> script from
>> 
>> http://blog.boberglund.com/install_lazfpc_local_pi_blog.sh,
>> 
>> but still got this:
>
>
>if you are still getting the same file even after it has been changed, that 
>means that something between you and the source server is caching it and 
>hasn't 
>updated the cache since the version you keep getting was originally pulled and 
>cached...
>

I did not upload the modified script where I had removed the double
quotes from the svn command to retrieve lazarus sources since I proved
that the command would work anyway and the person reporting the
problem he had showed a network access erroer well into the svn
download.
However, I have now uploaded the script where the quotes are cleaned
out also for the svn lazarus command. Also changed the modification
notes

-- 
Bo Berglund
Developer in Sweden

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread wkitty42--- via lazarus

On 2/21/19 5:38 AM, Joe via lazarus wrote:

Am 21.02.2019 um 00:09 schrieb Bo Berglund via lazarus:

What kind of network connection do you have? I am on 250/100 Mbit/s
fiber myself.


We have a VDSL connection with 265/42 Mbit/s.

I tried (at 11:30 hours local time) to download the newest version of your 
script from


http://blog.boberglund.com/install_lazfpc_local_pi_blog.sh,

but still got this:



if you are still getting the same file even after it has been changed, that 
means that something between you and the source server is caching it and hasn't 
updated the cache since the version you keep getting was originally pulled and 
cached...



FWIW: attached is the version that i just pulled and this is the first time i've 
pulled it...



--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list unless*
   *a signed and pre-paid contract is in effect with us.*


install_lazfpc_local_pi_blog.sh
Description: application/shellscript
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Bo Berglund via lazarus
On Thu, 21 Feb 2019 11:38:45 +0100, Joe via lazarus
 wrote:

>but still got this:

The only change should be that I removed the double quotes around the
svn arguments in the command that had it.
I tested that in a cut down version of the script just having the
parameter definitions and svn commands.


-- 
Bo Berglund
Developer in Sweden

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Fppkg error on IDE start with FPC 3.2 fixes

2019-02-21 Thread Martok via lazarus
Am 21.02.2019 um 13:14 schrieb Sven Barth via lazarus:
> The RTL package is not part of the packages directory, but is parallel to 
> that.
> Nevertheless it contains an fpmake.pp declaring it as a package. 

It also doesn't create a fpmkinst file, is that intentional? Only the packages
from /packages/ do.

-- 
Regards,
Martok

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Fppkg error on IDE start with FPC 3.2 fixes

2019-02-21 Thread Sven Barth via lazarus
Am Do., 21. Feb. 2019, 11:40 hat AlexeyT via lazarus <
lazarus@lists.lazarus-ide.org> geschrieben:

> function TFppkgHelper.IsProperlyConfigured: Boolean;
> {$IF FPC_FULLVERSION>30100}
> var
>CompilerFilename: string;
> {$ENDIF FPC_FULLVERSION>30100}
> begin
>{$IF FPC_FULLVERSION>30100}
>if Assigned(FFPpkg) and (FIsProperlyConfigured=fpcUnknown) then
>  begin
>  FIsProperlyConfigured := fpcYes;
>
>  if not HasPackage('rtl') then
>FIsProperlyConfigured := fpcNo
>
> here I see req for package "rtl", while FPC fixes3.2 don't have "rtl"
> folder in /home/user/fpcupdeluxe/fpcsrc/packages. It has folders
> rtl-console, rtl-extra, rtl-generics, rtl-objpas, rtl-unicode.
>

The RTL package is not part of the packages directory, but is parallel to
that. Nevertheless it contains an fpmake.pp declaring it as a package.

Regards,
Sven

>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Fppkg error on IDE start with FPC 3.2 fixes

2019-02-21 Thread AlexeyT via lazarus

function TFppkgHelper.IsProperlyConfigured: Boolean;
{$IF FPC_FULLVERSION>30100}
var
  CompilerFilename: string;
{$ENDIF FPC_FULLVERSION>30100}
begin
  {$IF FPC_FULLVERSION>30100}
  if Assigned(FFPpkg) and (FIsProperlyConfigured=fpcUnknown) then
    begin
    FIsProperlyConfigured := fpcYes;

    if not HasPackage('rtl') then
  FIsProperlyConfigured := fpcNo

here I see req for package "rtl", while FPC fixes3.2 don't have "rtl" 
folder in /home/user/fpcupdeluxe/fpcsrc/packages. It has folders 
rtl-console, rtl-extra, rtl-generics, rtl-objpas, rtl-unicode.


--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Raspbian FPC 3.3.1 and Lazarus 2.0 Available

2019-02-21 Thread Joe via lazarus

Am 21.02.2019 um 00:09 schrieb Bo Berglund via lazarus:

What kind of network connection do you have? I am on 250/100 Mbit/s
fiber myself.


We have a VDSL connection with 265/42 Mbit/s.

I tried (at 11:30 hours local time) to download the newest version of 
your script from


http://blog.boberglund.com/install_lazfpc_local_pi_blog.sh,
 
but still got this:


#!/bin/bash
# This script is used to install FreePascal 3.0.0 and Lazarus 1.6 on a 
Raspberry Pi2/3 running Raspbian Jessie
# Original script by Jim Kueneman (http://www.mustangpeak.net/install_laz.sh)
# Modified 2016-01-07 by Bo Berglund as follows:
...
#Fpc and Lazarus tags and versions
FPCTAG=release_3_0_4
FPCVER=3.0.4
LAZTAG=lazarus_2_0_0
LAZVER=2.0.0
...

--  Joe



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus