Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread Werner Pamler via lazarus

Am 22.02.2023 um 21:15 schrieb Bo Berglund via lazarus:

Now running that older version but with a partially installed package...
bglcontrols.lpk is not installed but bgrabitmappack.lpk is. So the whole thing
is partially installed.

How can I *remove it totally* such that it is not existing at all in my system?
I don't want this component to reinstall when I add another package and rebuild
Lazarus.


You uninstall a package in the "Package" > "Install/Uninstall packages" 
dialog. Select the package to be removed in the left list, click 
"Uninstall selection" and then "Save and Rebuild IDE".


This will remove bglcontrols which is a runtime/designtime package, but 
it will not remove bgrabitmappack - it is a runtime package and thus is 
not compiled into the IDE. This cannot crash the compilation of the IDE. 
If you also want to get rid of it, go to "Package" > "Package Links", 
find it in the list, check it and click "Delete selected". This removes 
the path to the package from an internal list so that the IDE no longer 
knows where the package is (the files are still there, though - but you 
can delete them manually in the OS).


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


[Lazarus] rapid apps development for fpcjvm android

2023-02-22 Thread Mgr. Janusz Chmiel via lazarus
Dear users and developers,   Does somebody of us know about The project, which allow to use rapid applications development when using FPCJVM and Android target?I do not like Lsamw, because it is not simply possible to choose AN GUI element from The components tree and simply add This component to form.I would like to know, how complex would be to develop new Lazarus packages or package, which would allow developers to use FPCJVM Android target in combination with rapid application development stratégy. Similarly, like when someone develop Windows non console GUi app in Lazarus.So user could choose The GUI element from The components tree and when choosing it, it would appear in The corresponding form automatically.And Lazarus would allow developer to choose default event for Tedit for example. It would be very interesting adventure to combine Pandroid with this new feature. 
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread Bo Berglund via lazarus
On Wed, 22 Feb 2023 18:05:25 +0100, Ondrej Pokorny via lazarus
 wrote:

>On 22.02.2023 18:01, Bo Berglund via lazarus wrote:
>> So now I have found a package in OnLinePackageManager that will hose Lazarus 
>> if
>> installed:
>>   BGRABitmap
>>
>> Up until installing that I was fine, but now Lazarus won't start
>>
>> The Initial image is shown for 3 seconds and then disappears.
>> Then nothing...
>>
>> What can I do to get into Lazarus and remove the BGRABitmap?
>>
>> Or is there somewhere a file or such I can edit and then rebuild the IDE from
>> the command line?
>>
>> This is on Linux (Raspberry Pi  OS).
>
>Usually there is an "old" Lazarus executable (lazarus.old) next to the 
>Lazarus executable. I usually switch to that if something is wrong with 
>the new one. A problem arises if the old exe doesn't work either because 
>it has been overwritten etc. Try it, that might be the quickest help.
>

Thanks Ondrej!
I had no idea such a 1-level backup existed!

Now running that older version but with a partially installed package...
bglcontrols.lpk is not installed but bgrabitmappack.lpk is. So the whole thing
is partially installed.

How can I *remove it totally* such that it is not existing at all in my system?
I don't want this component to reinstall when I add another package and rebuild
Lazarus.

Note:
I did the same OLPM install on a Linux Mint (PC platform) and there the whole
package was installed just fine. No crash on that CPU.


-- 
Bo Berglund
Developer in Sweden

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


Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread John Landmesser via lazarus

Am 22.02.23 um 18:01 schrieb Bo Berglund via lazarus:

On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus
  wrote:


Lacking any advice here I started over by removing the old Lazarus directory and
the pcp dir and then build from start with a new set of source files in a fresh
2.2.4 subdir...

All was Ok until again the OLPM packages were installed when the new Lazarus
also failed to start. It seems like at least one of the packages I use from OLPM
will hose Lazarus!

So now I will repeat the effort but this time I will install one package after
another using OLPM and rebuild Lazarus IDE after each. This way I would be able
to pinpoint the one that causes the problem.

So now I have found a package in OnLinePackageManager that will hose Lazarus if
installed:
  BGRABitmap


*I could install this package on my:*

*Lazarus 2.3.0 (rev main-2_3-2873-g17b66f88c4) FPC 3.2.2 x86_64-linux-gtk2*

*Linux manjaro 6.1.12-1-MANJARO #1 SMP PREEMPT_DYNAMIC Tue Feb 14
21:59:10 UTC 2023 x86_64 GNU/Linux
*

*
*

*Perhaps start lazarus from terminal to see what its telling ?!*




Up until installing that I was fine, but now Lazarus won't start

The Initial image is shown for 3 seconds and then disappears.
Then nothing...

What can I do to get into Lazarus and remove the BGRABitmap?

Or is there somewhere a file or such I can edit and then rebuild the IDE from
the command line?

This is on Linux (Raspberry Pi  OS).


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


Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread Ondrej Pokorny via lazarus

On 22.02.2023 18:01, Bo Berglund via lazarus wrote:

On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus
 wrote:


Lacking any advice here I started over by removing the old Lazarus directory and
the pcp dir and then build from start with a new set of source files in a fresh
2.2.4 subdir...

All was Ok until again the OLPM packages were installed when the new Lazarus
also failed to start. It seems like at least one of the packages I use from OLPM
will hose Lazarus!

So now I will repeat the effort but this time I will install one package after
another using OLPM and rebuild Lazarus IDE after each. This way I would be able
to pinpoint the one that causes the problem.

So now I have found a package in OnLinePackageManager that will hose Lazarus if
installed:
  BGRABitmap

Up until installing that I was fine, but now Lazarus won't start

The Initial image is shown for 3 seconds and then disappears.
Then nothing...

What can I do to get into Lazarus and remove the BGRABitmap?

Or is there somewhere a file or such I can edit and then rebuild the IDE from
the command line?

This is on Linux (Raspberry Pi  OS).


Usually there is an "old" Lazarus executable (lazarus.old) next to the 
Lazarus executable. I usually switch to that if something is wrong with 
the new one. A problem arises if the old exe doesn't work either because 
it has been overwritten etc. Try it, that might be the quickest help.


Ondrej

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


Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread Bo Berglund via lazarus
On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus
 wrote:

>Lacking any advice here I started over by removing the old Lazarus directory 
>and
>the pcp dir and then build from start with a new set of source files in a fresh
>2.2.4 subdir...
>
>All was Ok until again the OLPM packages were installed when the new Lazarus
>also failed to start. It seems like at least one of the packages I use from 
>OLPM
>will hose Lazarus!
>
>So now I will repeat the effort but this time I will install one package after
>another using OLPM and rebuild Lazarus IDE after each. This way I would be able
>to pinpoint the one that causes the problem.

So now I have found a package in OnLinePackageManager that will hose Lazarus if
installed:
 BGRABitmap

Up until installing that I was fine, but now Lazarus won't start

The Initial image is shown for 3 seconds and then disappears.
Then nothing...

What can I do to get into Lazarus and remove the BGRABitmap?

Or is there somewhere a file or such I can edit and then rebuild the IDE from
the command line?

This is on Linux (Raspberry Pi  OS).


-- 
Bo Berglund
Developer in Sweden

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


Re: [Lazarus] Lazarus and FreePascal version relations on Linux and Windows?

2023-02-22 Thread Michael Van Canneyt via lazarus




On Wed, 22 Feb 2023, Bo Berglund via lazarus wrote:


I have used Lazarus on Windows and Linux many years and I have built the Linux
versions from sources but used the official installer for Windows.

On Linux I have had parallel versions of Lazarus but usually the same FPC and
this has worked fine. I think that on Linux the FPC becomes a global version and
then new Lazarus gets confused...

On Windows the installer separates the complete package into a separate
directory which contains both Lazarus and FPC and none is put on system path.
So when I have say 6 different versions of Lazarus on Windows they are all
separate and do not conflict with each other.

Now I am having problems installing Lazarus 2.2.4 on Linux systems where older
Lazarus version exist because they use an older FPC which the new Lazarus cannot
use (3.0.4 vs 3.2.2).

On Linux FPC is put on path and so the instant one installs 3.2.2 on a system
already using 3.0.4 disaster follows...


On my home PC, I have 16 FPC versions installed, and 4 or 5 different lazarus 
systems.
(in fact, a single lazarus installation, just with different --pcp options)

Yet I experience none of the problems that you experience.

The only thing that is different from a default setup is that I make symlinks
/usr/local/bin/ppcx64-3.2.2 -> /usr/local/lib/fpc/3.2.2/ppcx64
(similar for the other tools)

A lazarus install always refers to a versioned ppc/fpc tool.

What we could possibly do is to install fpc with the version numbers
suffixed, and an extra symlink to the current version without suffix.
This way, when you install a newer version, the old version is still
available.

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


Re: [Lazarus] Lazarus and FreePascal version relations on Linux and Windows?

2023-02-22 Thread Martin Frb via lazarus

On 22/02/2023 10:00, Bo Berglund via lazarus wrote:

Now I am having problems installing Lazarus 2.2.4 on Linux systems where older
Lazarus version exist because they use an older FPC which the new Lazarus cannot
use (3.0.4 vs 3.2.2).

You can install several fpc on Linux.

** But you need to remove the global /etc/fpc.cfg and have it local to 
the install. **

You can look at the output of
    fpc -va  empty_project.pas | grep fpc.cfg
to find the locations were fpc looks for it.

There may also be a way (I don't know) to have the IDE pass a param to 
fpc telling fpc which fpc.cfg to use



And you either need to start the IDE via a script, setting a suitable 
%PATH env, so the correct fpc can be found. And fpc can find the correct 
ppc.

Or if you don't cross compile, you can invoke ppc directly .

I use the below. It allows several builds, even of the same version 
(debug / opt)


#!/bin/sh

mkdir -p /home/m/fpc/$INSTSRC
mkdir -p /home/m/fpc/$INSTSRC/source
cd /home/m/fpc/$INSTSRC/source

git -C  /home/m/fpc/svn/source --work-tree=/home/m/fpc/$INSTSRC/source 
restore .


### have a full working fpc in path to start the build

mkdir -p /home/m/fpc/$INSTPATH/
mkdir -p /home/m/fpc/$INSTPATH/def

cd /home/m/fpc/$INSTSRC/source

make clean
make all  OPT="-g- -gl -O-2  "
make install INSTALL_PREFIX=/home/m/fpc/$INSTPATH/def

mkdir -p /home/m/fpc/$INSTPATH/def/lib/fpc/etc
mkdir -p /home/m/fpc/$INSTPATH/def/etc

cd /home/m/fpc/$INSTPATH
def/bin/fpcmkcfg -d basepath=/home/m/fpc/$INSTPATH/def/lib/fpc/$INSTVERS 
> def/lib/fpc/etc/fpc.cfg
def/bin/fpcmkcfg -d basepath=/home/m/fpc/$INSTPATH/def/lib/fpc/$INSTVERS 
> def/etc/fpc.cfg


ln -s /home/m/fpc/$INSTPATH/def/lib/fpc/$INSTVERS/ppcx64 
/home/m/fpc/$INSTPATH/def/bin/ppcx64


## use in the IDE /home/m/fpc/$INSTPATH/def/lib/fpc/$INSTVERS/ppcx64



And another question:

How can I force Lazarus to show the initial configuration page, which is shown
on the very first start after installing Lazarus and later is skipped?

lazarus --setup

In the git main version of lazarus you can also force certain checks to 
be skipped (including fppkg)

lazarus --help

--skip-checks=LazarusDir,FpcExe,FpcSrc,Make,Debbugger,Fppkg,Setup,MissingPackageFile,InstallDir,SingleInstance,All
  Skip selected checks at startup.

You can put those into the
  lazarus.cfg
file (in the same directory as your lazarus exe // or your startlazarus 
exe, in case you use that and your lazarus is it the primary conf path)



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


Re: [Lazarus] Lazarus and FreePascal version relations on Linux and Windows?

2023-02-22 Thread John Landmesser via lazarus

Am 22.02.23 um 10:00 schrieb Bo Berglund via lazarus:

I have used Lazarus on Windows and Linux many years and I have built the Linux
versions from sources but used the official installer for Windows.

On Linux I have had parallel versions of Lazarus but usually the same FPC and
this has worked fine. I think that on Linux the FPC becomes a global version and
then new Lazarus gets confused...


*
*

*Which fpc is needed tells you the release notes ... that changes
sometimes!*




On Windows the installer separates the complete package into a separate
directory which contains both Lazarus and FPC and none is put on system path.
So when I have say 6 different versions of Lazarus on Windows they are all
separate and do not conflict with each other.

Now I am having problems installing Lazarus 2.2.4 on Linux systems where older
Lazarus version exist because they use an older FPC which the new Lazarus cannot
use (3.0.4 vs 3.2.2).

On Linux FPC is put on path and so the instant one installs 3.2.2 on a system
already using 3.0.4 disaster follows...

Is this the reason for the continued problems with fppkg?

And another question:

How can I force Lazarus to show the initial configuration page, which is shown
on the very first start after installing Lazarus and later is skipped?


*
*

*That is in terminal lazarus --setup*



I think I remember that there is a way to show it from within Lazarus but I
cannot find where now...

Either way I would like to look at the config page for a working system so I can
see the differences between that and a Lazarus that behaves bad.


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


Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread Bo Berglund via lazarus
On Tue, 21 Feb 2023 19:18:28 +0100, Bo Berglund via lazarus
 wrote:

>I was trying to nail down the reason for the fppkg errors on start of Lazarus
>2.2.4.
>I had the install running fine except for the Config screen showing up on every
>start of Lazarus with an error message about fppkg...
>
>So I proceeded to install my usual set of packages from OLPM, but when I had
>selected the set I usually install and it was done and asked about rebuilding
>Lazarus it did so and at the end closed itself and did not re-appear!
>Now I cannot start Lazarus at all
>
>I tried to move the pcp dir away but it did not work either and starting with 
>an
>empty pcp dir does also not work.
>
>So I tried to start over by going to the Lazarus dir and issue make clean, but
>that did also not work:
>
>~/dev/lazarus/2.2.4 $ make clean
>Makefile:234: *** The Makefile doesn't support target can't-executed,, please
>run fpcmake first.  Stop.
>
>What would be the correct procedure now to start over?

Lacking any advice here I started over by removing the old Lazarus directory and
the pcp dir and then build from start with a new set of source files in a fresh
2.2.4 subdir...

All was Ok until again the OLPM packages were installed when the new Lazarus
also failed to start. It seems like at least one of the packages I use from OLPM
will hose Lazarus!

So now I will repeat the effort but this time I will install one package after
another using OLPM and rebuild Lazarus IDE after each. This way I would be able
to pinpoint the one that causes the problem.

Finally:

I have looked at https://wiki.freepascal.org/lazbuild and want to know:

Is there a way to specify the compiler *path* to use for lazbuild?
For example (on one line):

lazbuild --build-ide= --pcp=$HOME/.lazarus_2.2.4
--compiler=$HOME/lib/fpc/3.2.2/ppcarm

According to the wiki it is unclear to me if a path can be used rather than only
the file name (in which case it needs to be on path?)...


-- 
Bo Berglund
Developer in Sweden

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


[Lazarus] Lazarus and FreePascal version relations on Linux and Windows?

2023-02-22 Thread Bo Berglund via lazarus
I have used Lazarus on Windows and Linux many years and I have built the Linux
versions from sources but used the official installer for Windows.

On Linux I have had parallel versions of Lazarus but usually the same FPC and
this has worked fine. I think that on Linux the FPC becomes a global version and
then new Lazarus gets confused...

On Windows the installer separates the complete package into a separate
directory which contains both Lazarus and FPC and none is put on system path.
So when I have say 6 different versions of Lazarus on Windows they are all
separate and do not conflict with each other.

Now I am having problems installing Lazarus 2.2.4 on Linux systems where older
Lazarus version exist because they use an older FPC which the new Lazarus cannot
use (3.0.4 vs 3.2.2).

On Linux FPC is put on path and so the instant one installs 3.2.2 on a system
already using 3.0.4 disaster follows...

Is this the reason for the continued problems with fppkg?

And another question:

How can I force Lazarus to show the initial configuration page, which is shown
on the very first start after installing Lazarus and later is skipped?

I think I remember that there is a way to show it from within Lazarus but I
cannot find where now...

Either way I would like to look at the config page for a working system so I can
see the differences between that and a Lazarus that behaves bad.


-- 
Bo Berglund
Developer in Sweden

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