Re: [Lazarus] Raspberry Pi bundles now available

2016-01-21 Thread Bo Berglund
On Sun, 17 Jan 2016 23:21:00 +0800, Dennis 
wrote:

>> Hi,
>> I need a working lazarus on a RPi1B 256MB in order to compile a simple
>> program that I have converted from Delphi7 on an RPi2B. On the RPi2B
>> it works just fine but if I transfer it to the RPi1B it causes an
>> exception on start. I guess it is because some hardware option has
>> been compiled into it on the RPi2B. So I need to compile on the actual
>> hardware...
>>
>>
>>
>Are you running exactly the same OS on both RPi2b and RPi1b?  New 
>raspbian OS has something called device tree that was not present in old 
>raspbian.
>That could interact differently to your program.
>
I gave up on the RPi1B 256M device and bought another RPi2B instead.
Then I could just copy the already compiled program and get it running
directly.
I will scrap the old RPi1B now so I won't get tempted again


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2016-01-17 Thread Dennis



Bo Berglund wrote:

Second posting of this, first one seems to have disappeared...

On Sun, 6 Dec 2015 22:18:09 -0500, Anthony Walter 
wrote:


Another, possibly more useful bundle I've created is Free Pascal 3.0 with
Lazarus for the Raspberry Pi. I've taken great care to reduce the install
size of both fpc and Lazarus with this bundle for the Pi.


If you're interested in trying this version of Free Pascal 3.0 with
Lazarus, here is where you can get it:

http://www.getlazarus.org/setup/?download#raspberry_pi

If you have a Pi, just follow the instructions in the setup script. You can
choose your install folder and have the option to creaate a application
shortcut you can pin to the Pi menu,


Hi,
I need a working lazarus on a RPi1B 256MB in order to compile a simple
program that I have converted from Delphi7 on an RPi2B. On the RPi2B
it works just fine but if I transfer it to the RPi1B it causes an
exception on start. I guess it is because some hardware option has
been compiled into it on the RPi2B. So I need to compile on the actual
hardware...



Are you running exactly the same OS on both RPi2b and RPi1b?  New 
raspbian OS has something called device tree that was not present in old 
raspbian.

That could interact differently to your program.

Dennis


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2016-01-16 Thread Bo Berglund
On Sun, 6 Dec 2015 22:18:09 -0500, Anthony Walter 
wrote:

>Another, possibly more useful bundle I've created is Free Pascal 3.0 with
>Lazarus for the Raspberry Pi. I've taken great care to reduce the install
>size of both fpc and Lazarus with this bundle for the Pi.
>
>
>If you're interested in trying this version of Free Pascal 3.0 with
>Lazarus, here is where you can get it:
>
>http://www.getlazarus.org/setup/?download#raspberry_pi
>
>If you have a Pi, just follow the instructions in the setup script. You can
>choose your install folder and have the option to creaate a application
>shortcut you can pin to the Pi menu,
>

Hi,
I need a working lazarus on a RPi1B 256MB in order to compile a simple
program that I have converted from Delphi7 on an RPi2B. On the RPi2B
it works just fine but if I transfer it to the RPi1B it causes an
exception on start. I guess it is because some hardware option has
been compiled into it on the RPi2B. So I need to compile on the actual
hardware...

I downloaded your script using wget, it was a bit hard because it
resulted in a strange looking file name. Solved now anyway.

When I ran the script it complained about missing packages and
suggested a sudo command to run in order to get it installed. So I
executed that and after a while could restart your script and it went
a long way, downloading 62MB in about 15 minutes and then started to
run a lot of lines across the screen.
But in the end this resulted in:

...
lazarus/components/cairocanvas/Makefile.compiled
lazarus/fpmake_add.inc
lazarus/lazbuild
An unhandled exception occurred at $00013870:
EAccessViolation: Access violation
  $00013870

cp: cannot stat
‘/home/pi/Development/FreePascal/lazarus/lazarus.desktop’: No such
file or directory
mv: cannot stat
‘/home/pi/Development/FreePascal/lazarus/lazarus.desktop’: No such
file or directory

Your Free Pascal 3.0 with Lazarus is now installed


I do not think it is successfully installed...
The lazarus desktop file seems not to have been created.

So instead I used a terminal and moved to the lazarus directory where
I tried to run startlazarus directly, but the result was an exception:
EAccesviolation $0002F070

What has happened and what can I do to repair?

Or maybe your script does not work on an RPi1B with as little RAM as
256MB?


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2016-01-16 Thread Bo Berglund
Second posting of this, first one seems to have disappeared...

On Sun, 6 Dec 2015 22:18:09 -0500, Anthony Walter 
wrote:

>Another, possibly more useful bundle I've created is Free Pascal 3.0 with
>Lazarus for the Raspberry Pi. I've taken great care to reduce the install
>size of both fpc and Lazarus with this bundle for the Pi.
>
>
>If you're interested in trying this version of Free Pascal 3.0 with
>Lazarus, here is where you can get it:
>
>http://www.getlazarus.org/setup/?download#raspberry_pi
>
>If you have a Pi, just follow the instructions in the setup script. You can
>choose your install folder and have the option to creaate a application
>shortcut you can pin to the Pi menu,
>

Hi,
I need a working lazarus on a RPi1B 256MB in order to compile a simple
program that I have converted from Delphi7 on an RPi2B. On the RPi2B
it works just fine but if I transfer it to the RPi1B it causes an
exception on start. I guess it is because some hardware option has
been compiled into it on the RPi2B. So I need to compile on the actual
hardware...

I downloaded your script using wget, it was a bit hard because it
resulted in a strange looking file name. Solved now anyway.

When I ran the script it complained about missing packages and
suggested a sudo command to run in order to get it installed. So I
executed that and after a while could restart your script and it went
a long way, downloading 62MB in about 15 minutes and then started to
run a lot of lines across the screen.
But in the end this resulted in:
[quote]
...
lazarus/components/cairocanvas/Makefile.compiled
lazarus/fpmake_add.inc
lazarus/lazbuild
An unhandled exception occurred at $00013870:
EAccessViolation: Access violation
  $00013870

cp: cannot stat
‘/home/pi/Development/FreePascal/lazarus/lazarus.desktop’: No such
file or directory
mv: cannot stat
‘/home/pi/Development/FreePascal/lazarus/lazarus.desktop’: No such
file or directory

Your Free Pascal 3.0 with Lazarus is now installed
[/quote]

I do not think it is successfully installed...
The lazarus desktop file seems not to have been created.

So instead I used a terminal and moved to the lazarus directory where
I tried to run startlazarus directly, but the result was an exception:
EAccesviolation $0002F070

What has happened and what can I do to repair?

Or maybe your script does not work on an RPi1B with as little RAM as
256MB?


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2015-12-19 Thread Anthony Walter
Don, thanks for the interest. I'm currently using a trunk revision. When
1.6 is final, I'll switch it to that.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2015-12-18 Thread Donald Ziesig

Hi Anthony,

What version of Lazarus is installed with this script?

Thanks for the great work.

Don Ziesig

On 12/06/2015 10:18 PM, Anthony Walter wrote:
I've uploaded a few Raspberry Pi files and scripts at 
http://www.getlazarus.org


This is a minimal fpc 3.0.0 compiler. It's stripped down to be small 
and only includes the compiler, the text mode IDE, and the run time 
library. It's a good starting point on the Raspberry Pi if you want to 
do command line compiling using only the rtl or if you want to use it 
as a starting point for building the fpc trunk or other compiler 
branches on your Raspberry Pi. Total install size will be 45MB, for 
those of you conscious about using up the limited space on your Pi's 
SD card.


http://cache.getlazarus.org//archives/fpc-3.0.0.raspberry-min.tar.gz

Just download the above then "fpc-3.0.0.raspberry-min.tar.gz && 
./setup.sh". The setup does not need super user rights. It will let 
you choose a fpc compiler installation location, somewhere under your 
$HOME, and give you the option to create a shortcut to a terminal 
where the fpc environment is ready for you. That is with the minimal 
fpc 3.0 in your path and fpc.cfg environment variable configured.


Another, possibly more useful bundle I've created is Free Pascal 3.0 
with Lazarus for the Raspberry Pi. I've taken great care to reduce the 
install size of both fpc and Lazarus with this bundle for the Pi.


I've eliminated a lot of fpc packages which don't make sense to have 
on a Pi. All cross platform package and runtime files have been 
removed (I don't imagine people cross compiling from the Pi to say 
Windows for example). I've also eliminate the lazarus tool sources, 
source images files (res files remain), and quite a few components 
which are very unlikely to be used on the Pi. Basically I've gotten 
the install size from a full fpc and lazarus from 1.5GB down to around 
216MB.


If you're interested in trying this version of Free Pascal 3.0 with 
Lazarus, here is where you can get it:


http://www.getlazarus.org/setup/?download#raspberry_pi

If you have a Pi, just follow the instructions in the setup script. 
You can choose your install folder and have the option to creaate a 
application shortcut you can pin to the Pi menu,


In the next week I'll be working on updating the other platform 
installers to include a minimal versiomn, as well as updated install 
scripts where you can choose you install folder and create more 
shortcuts, be they fpc terminal shortcuts or applicationd esktop 
shortcuts.


Pi users, if your interested I am developing an SDL 2 installer along 
with a few bare demos which should work with either the minimal or the 
more complete compilers mentioned above. Let me know if you're 
inerested in using the SDL 2 on the Pi and I may setup a forum for it.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2015-12-08 Thread Alexandre privé
A great news! I try it when i can, i spend lot of time without succes for 
compil on raspberry.
must be put in FAQ

Thanks for your work.

From: Anthony Walter 
Sent: Monday, December 07, 2015 4:54 AM
To: Lazarus mailing list 
Subject: Re: [Lazarus] Raspberry Pi bundles now available

A correction. The Raspberry Pi minimal compiler url is:

http://cache.getlazarus.org/archives/fpc-3.0.0.raspberry-min.tar.gz




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2015-12-08 Thread Anthony Walter
All versions of the Pi use an ARM chip, which is a specific reduced
instruction set (RISC) chip architecture. I believe they are compatible
save for their VPF or hard float processors. Raspbian, the required OS for
this bundle, has general hard float support built into its libraries.

When you type "fpc -ic" using my build, this will be the result:

ARMV3
ARMV4
ARMV4T
ARMV5
ARMV5T
ARMV5TE
ARMV5TEJ
ARMV6
ARMV6K
ARMV6T2
ARMV6Z
ARMV6M
ARMV7
ARMV7A
ARMV7R
ARMV7M
ARMV7EM

This means the user can add any arm specific architecture optimization to
his programs by adding -CpARMV7 (or anything from the list above) when
compiling. I've had a few people on reddit contact me and so far the issues
were minor (I changed the requirement to force gtk+ dev packages be
installed), but so far they all say the IDE was fast and now that the
install has been correct it works smoothly.

If you or anyone has an original Pi, Pi B, or even the Pi Zero, give it a
try. I added a Raspberry Pi forum to discuss technical issues should you
want to notify me of issue or need help resolving some specific problem:

http://www.getlazarus.org/forums/viewforum.php?f=22

What's next is me writing an SDL 2 install page (requires the user to make
and install SDL 2 from source) or I may just write an SDL 2 setup script,
perhaps appending it to the original setup as an option. Then I will write
a few Raspberry Pi specific full screen graphic and sound demos (source
code) which should easily be compile and run using either the minimal
compiler or Lazarus for Pi.

Again, if anyone wants to contribute, just send me note.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2015-12-08 Thread Bo Berglund
On Sun, 6 Dec 2015 22:54:24 -0500, Anthony Walter 
wrote:

>A correction. The Raspberry Pi minimal compiler url is:
>
>http://cache.getlazarus.org/archives/fpc-3.0.0.raspberry-min.tar.gz

When you say Raspberry Pi do you mean RPi1 or RPi2 or both?
They run on different CPU hardware so I think binaries have to be
compiled with different flags.


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Raspberry Pi bundles now available

2015-12-06 Thread Anthony Walter
I've uploaded a few Raspberry Pi files and scripts at
http://www.getlazarus.org

This is a minimal fpc 3.0.0 compiler. It's stripped down to be small and
only includes the compiler, the text mode IDE, and the run time library.
It's a good starting point on the Raspberry Pi if you want to do command
line compiling using only the rtl or if you want to use it as a starting
point for building the fpc trunk or other compiler branches on your
Raspberry Pi. Total install size will be 45MB, for those of you conscious
about using up the limited space on your Pi's SD card.

http://cache.getlazarus.org//archives/fpc-3.0.0.raspberry-min.tar.gz

Just download the above then "fpc-3.0.0.raspberry-min.tar.gz &&
./setup.sh". The setup does not need super user rights. It will let you
choose a fpc compiler installation location, somewhere under your $HOME,
and give you the option to create a shortcut to a terminal where the fpc
environment is ready for you. That is with the minimal fpc 3.0 in your path
and fpc.cfg environment variable configured.

Another, possibly more useful bundle I've created is Free Pascal 3.0 with
Lazarus for the Raspberry Pi. I've taken great care to reduce the install
size of both fpc and Lazarus with this bundle for the Pi.

I've eliminated a lot of fpc packages which don't make sense to have on a
Pi. All cross platform package and runtime files have been removed (I don't
imagine people cross compiling from the Pi to say Windows for example).
I've also eliminate the lazarus tool sources, source images files (res
files remain), and quite a few components which are very unlikely to be
used on the Pi. Basically I've gotten the install size from a full fpc and
lazarus from 1.5GB down to around 216MB.

If you're interested in trying this version of Free Pascal 3.0 with
Lazarus, here is where you can get it:

http://www.getlazarus.org/setup/?download#raspberry_pi

If you have a Pi, just follow the instructions in the setup script. You can
choose your install folder and have the option to creaate a application
shortcut you can pin to the Pi menu,

In the next week I'll be working on updating the other platform installers
to include a minimal versiomn, as well as updated install scripts where you
can choose you install folder and create more shortcuts, be they fpc
terminal shortcuts or applicationd esktop shortcuts.

Pi users, if your interested I am developing an SDL 2 installer along with
a few bare demos which should work with either the minimal or the more
complete compilers mentioned above. Let me know if you're inerested in
using the SDL 2 on the Pi and I may setup a forum for it.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Raspberry Pi bundles now available

2015-12-06 Thread Anthony Walter
A correction. The Raspberry Pi minimal compiler url is:

http://cache.getlazarus.org/archives/fpc-3.0.0.raspberry-min.tar.gz
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus