Re: [Lazarus] IDE rebuild fails on raspi4

2020-02-16 Thread Tom Lisjac via lazarus
Hi Bo,

Again, thanks for your many useful replies.

Your approach to doing a local user build is a good one and what I'll also
do on the problematic Raspbian. May also try it on another distro I like
called Devuan. They used to release Pi versions but stopped with the 4B, so
I'll have to build their latest 2.1 from scratch as well. Your install
script is very readable and clarifies the OS configuration I'll need to
support Lazarus builds.

It will be time consuming to build both the OS and Lazarus on the PI4, but
I'm sure it will be a more enjoyable use of my spare time then trying to
find something intelligent to watch on US TV. :)

Thanks,

-Tom


On Wed, Feb 12, 2020 at 9:31 AM Bo Berglund via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> On Wed, 12 Feb 2020 00:21:06 +0000, Tom Lisjac via lazarus
>  wrote:
>
> >
> >https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian
> >
> >Is your build process similar on the pi4?
>
> No, I am not building any packages for my installations.
>
> Instead I have written a script that handles everything for the
> *installation* including dependencies etc.
> It is designed to be executed on a pristine RPi3B or RPi4B device and
> the result is an installation within the pi user's home directory,
> below /home/pi/dev and using /home/pi/bin and a few other local dirs.
>
> I have posted the script and RPi seed compilers on my blog site:
> http://blog.boberglund.com/
>
> The script there is now updated to use the current release versions
> Fpc 3.0.4 and Lazarus 2.0.6 and download the help files.
>
> (Also sent the script privately to Tom Lisjac )
>
>
> --
> Bo Berglund
> Developer in Sweden
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE rebuild fails on raspi4

2020-02-11 Thread Tom Lisjac via lazarus
HI Bo,

Thanks for your reply and comments... very helpful!

Since your svn builds work without issue on the pi4, it looks like my
persistence problem is with the lazarus package from the raspbian repo.
Otto Dominguez also replied privately and provided some details about why.
He also generously included a links to a set of 2.0.6 Lazarus packages he
made for the pi4:

https://app.box.com/s/7g54gml6p9bfn10157go430oyputw2au

I'm going to uninstall the raspbian package and try Otto's. Ultimately I'd
like to do my own builds on the pi as it appears the 4B is actually usable
for serious development were previous versions were too slow for my taste.
:) Otto included a link to a forum thread where he announced his build
procedure and packages:

https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian

Is your build process similar on the pi4?

Thanks,

-Tom



On Mon, Feb 10, 2020 at 1:41 PM Bo Berglund via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> On Fri, 7 Feb 2020 10:16:36 +0000, Tom Lisjac via lazarus
>  wrote:
>
> >Trying to get Lazarus working on the raspberry pi 4 with the latest
> >Raspbian (Debian 10.2).
>
> I guess you mean Raspbian Buster then?
>
> I have FPC/Lazarus on several of my RPi units ranging from RPi2B via
> RPi3B to RPi4B.
>
> I have had no problems installing release versions FPC 3.0.4 + Lazarus
> 2.0.6 from sources obtained by SVN checkout.
> I am using an old and trusted install script I wrote several years ago
> and it "just works" to get the basic stuff installed.
>
> It does so to /home/pi/dev/... in order to not mess with anything in
> /usr/... etc.
>
> Also I use pcp directories for every install I have, right now 2.0.2,
> 2.0.4 and 2.0.6 on my latest RPi4B.
>
> Concerning the small screen:
> I run my systems via VNC from my big screen Windows PC and the only
> glitch I have had so far is that the Lazarus IDE may suddenly crash
> unexpectedly.
> But this has not happened once since I installed AutoSave in Lazarus
> via OnLine Package Manager, so this is for sure something I recommend
> using (plus of course subversion for project sources).
>
> HTH
>
> --
> Bo Berglund
> Developer in Sweden
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE rebuild fails on raspi4

2020-02-09 Thread Tom Lisjac via lazarus
Thanks Werner.

You are correct that oleutils is outside the Windows endif... my apologies.
The monitor I'm using for the pi is very small and I should have used a
magnifying glass to confirm the problem description before posting.

Per your comments, I was able to complete the IDE rebuild after manually
compiling fpdebug, lclextensions, virtualtreeview and the
onlinepackagemanager. However when I restart Lazarus, I have to recompile
them again to do another rebuild. Not sure what's causing the lack of
persistence, but Otto Dominguez also sent me a link to a set of 2.0.6
packages he's made for the pi4 and I think I'll give those a try.

Thanks again for your reply and suggestions,

-Tom




On Fri, Feb 7, 2020 at 11:09 AM Werner Pamler via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Am 07.02.2020 um 11:16 schrieb Tom Lisjac via lazarus:
> > Trying to get Lazarus working on the raspberry pi 4 with the latest
> > Raspbian (Debian 10.2). Installed 2.0.0+dfsg-2 with synaptic from the
> > Raspbian repos, but haven't been able to install components and
> > rebuild the IDE, due to:
> >
> >   VirtualTrees.pas(70,3) Fatal: Cannot find OleUtils used by
> VirtualTrees.
> >
> > Got past a similar issue with fpdebug buy compiling it manually, but
> > the VirtualTrees source shows OleUtils inside a Windows ifdef which
> > isn't going to resolve on the pi:
> >
> > unit VirtualTrees;
> > {$ifdef Windows}
> >   ...
> >   OleUtils,
>
> I checked several versions of the Lazarus port on Luiz's github
> ((https://github.com/blikblum/VirtualTreeView-Lazarus - the version
> included in Lazarus is based on v5)), and they all have OleUtils outside
> the Windows ifdef, the code is:
>
> uses
>{$ifdef Windows}
>Windows,
>ActiveX,
>CommCtrl,
>{$else}
>laz.FakeActiveX,
>{$endif}
>OleUtils,
>
>
> In fact, OleUtils is a unit which provides some Windows-functionality
> for other widgetsets. However, it does not belong the VirtualTreeViews -
> it is contained in the lclextensions package which you must compile
> first, before touching VirtualTreeViews. Maybe it is sufficient to
> simply do a clean rebuild of the IDE.
>
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] IDE rebuild fails on raspi4

2020-02-07 Thread Tom Lisjac via lazarus
Trying to get Lazarus working on the raspberry pi 4 with the latest
Raspbian (Debian 10.2). Installed 2.0.0+dfsg-2 with synaptic from the
Raspbian repos, but haven't been able to install components and rebuild the
IDE, due to:

  VirtualTrees.pas(70,3) Fatal: Cannot find OleUtils used by VirtualTrees.

Got past a similar issue with fpdebug buy compiling it manually, but the
VirtualTrees source shows OleUtils inside a Windows ifdef which isn't going
to resolve on the pi:

unit VirtualTrees;
{$ifdef Windows}
  ...
  OleUtils,

Google hasn't been much help. Any suggestions for getting around this would
be greatly appreciated.

Thanks,

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


Re: [Lazarus] Jedi Code Formatter (JCF) issues

2019-05-20 Thread Tom Lisjac via lazarus
Waking up an old thread as I'm also having trouble getting some basic
formatting options to work with JCF in 2.0.2. I want the code to look like
the following, which the fpc tools ptop formatter does by default:

if something then
  begin
 statement;
 statement
  end

But no matter what combination of settings I try, JCF insists on doing
either this:

if something then
  begin
  statement;
  statement
  end

or this:

if something then
begin
  statement;
  statement
end

I'd like to get this working out of the ide rather then having to break out
to run ptop from the command line. Any suggestions would be greatly
appreciated.

Thanks,

-Tom


On Tue, Feb 28, 2017 at 11:45 AM Graeme Geldenhuys via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Hi,
>
> Is there an actual JCF (included with Lazarus) maintainer? I've recently
> been using it quite a bit and noticed a couple of problems. I'll
> obviously try and fix them myself (free time is very limited, but I'll
> try my best).
>
> The two most important ones for me:
>
> * Some code formatting is not applied (ignored) based on configuration
>   settings.
> * Some configuration changes are not persisted, so user defined options
>   can't actually be applied in the code formatting.
>
> Regards,
>   Graeme
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> My public PGP key:  http://tinyurl.com/graeme-pgp
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread Tom Lisjac via Lazarus
Thanks Zeljke, Péter and Mattias.

Plenty of space on all three OS'es and I installed all the dependencies
that the rpm's (from sourceforge) required.

I've upgraded the Fedora 19 install many times without issues. This is the
error after upgrading to 1.8.0 when compiling a blank form or the IDE from
the ide:

Build IDE: Exit code 512, Errors: 1
[lazarus] Error 1
[idepkg] Error 2
make: *** [idepkg] Error 2
lazarus.pp(161,1) Error: Error while linking

It was originally the same on a new Fedora 23, but booted the VM up again
today and now see this with a blank form compile:

Compile Project, Target: /home/user/tmp/project1: Exit code 256, Errors: 1,
Warnings: 2
project1.lpr(20,1) Warning: "crtbeginS.o" not found, this will probably
cause a linking failure
project1.lpr(20,1) Warning: "crtendS.o" not found, this will probably cause
a linking failure
project1.lpr(20,1) Error: Error while linking

A forum search search suggested checking the path in /etc/fpc.cfg:

# path to the gcclib
#ifdef cpui386
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.3/32
#endif
#ifdef cpux86_64
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.3
#endif

Both are correct on Fedora 19 as I can see crtbeginS.o and crtendS.o in
those directories, but neither of those entries are present in the
/etc/fpc.cfg on Fedora 23, so it's still not clear what the problem is and
how to fix it.

Thanks,

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


[Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-10 Thread Tom Lisjac via Lazarus
Hi all,

Getting "Error while linking" when trying to compile the 1.8.0 ide or any
test programs on an old Fedora 19 and fresh installs of Fedora 23 and
Centos 6.8. Reviewed some bugs and forum postings, but there doesn't seem
to be a fix or workaround available.

I'd like to get this working on an RPM based distro, but am wondering if
I'd have better luck trying a debian flavor.

Any suggestions would be appreciated.

Thanks,

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


Re: [Lazarus] Disabling selected text boxes

2017-02-12 Thread Tom Lisjac via Lazarus
That did it... many thanks, Michael.

On Sun, Feb 12, 2017 at 1:53 AM, Michael Van Canneyt via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:

>
>
> On Sun, 12 Feb 2017, Tom Lisjac via Lazarus wrote:
>
> I would appreciate if someone could tell me how to disable the source
>> editor from drawing boxes around selected text matches in 1.6.2? No idea
>> what to google for as I don't have any idea what this option is called.
>>
>
> The options for this behaviour are under
> 'Editor-Display-Markup and Matches'  "Highlight of word under Caret"
>
> And then the checkbox:
> 'Disable timer for markup current word'
>
> Michael.
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus