Re: [Lazarus] Lazarus crashes when opening project under conversion, how to fix?

2020-05-21 Thread Luca Olivetti via lazarus

El 21/5/20 a les 23:39, Bo Berglund via lazarus ha escrit:



Or can I please open Lazarus *without a project* so I can decide
myself which project to load?


lazarus --help

will tell you all the available options, among them

--skip-last-project

which should start lazarus without loading the last project.

Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus crashes when opening project under conversion, how to fix?

2020-05-21 Thread Bo Berglund via lazarus
I am using Lazarus 2.0.8 32bit in Win 10 x64 with FPC 3.0.4

I am trying to convert a project created in Delphi7 and maintained in
D7 and Delphi 2007 so it can be worked on in Lazarus/FPC.

It is a service application so it uses TService, which does not exist
in FPC. The closest candidate is TDaemon, so on advice here or in the
forum I have tried adding a "rename":

type
  {$IFDEF FPC}
TService = class(TDaemon)
private
public
end;
  {$ENDIF}

When I did that Lazarus showed a lot of errors when trying to do a
test compile (as expected). I did not have time to fix it though at
the time so I closed Lazarus.

Now I have a problem to even start Lazarus, it immediately shows crash
dialogs saying:
An error occurred at last startup while loading
D:\Engineering\Projects\Sobversio...\RemoteServer.lpi

It is not very useful to see a path that is cut in the middle so I
cannot find where it is at...

How can I find *which* of the projects it is actually trying to load?
I have several test projects created during various attempts at
conversion...

Or can I please open Lazarus *without a project* so I can decide
myself which project to load?

It was half a week ago when I was last using Lazarus as described
above and I cannot remember exactly which version of the converted
code I was dealing with.

So now I am back again and I cannot even start Lazarus because it just
errors out on the old project while giving me no chance to get to the
editor to fix the problem.

It looks by the few dialogs I see before it crashes that the code
contains objects with incorrect or missing properties of some kind and
if I proceed anyway I get to an access violation and Lazarus crashes!

Seems like there is a Catch 22 built into the Lazarus project handling
that disallows one from using the editor to fix project problems

What can I do in order:
A) To find which actual project file it is having problems with?

B) To load the project into the editor so I can fix whatever problem
it is having?


-- 
Bo Berglund
Developer in Sweden

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


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Vojtěch Čihák via lazarus

IMO Inkscape works much better compared to Karbon (if it is what you meant 
LibreOffice Draw).
Therefore I prefer it, even if it is a little stranger (GTK app.) on my Plasma 
desktop.
 
V.
__

Od: "Werner Pamler via lazarus" 
Komu: lazarus@lists.lazarus-ide.org
Datum: 21.05.2020 18:54
Předmět: Re: [Lazarus] Tool to make icons ?


Am 21.05.2020 um 18:06 schrieb Michael Van Canneyt via lazarus:
> Now I still need to learn some Inkscape, but that's for later :-)

I feel with you... Unfortunately every graphics program has its own 
short cuts and places in the menus and toolbars, and yes, Inkscape, like 
the well-respsected Gimp, is not a master-piece in user-guidance, at 
least for my way of working.  Since the icons are stored in universal 
svg, however, you can also switch you other vector programs instead, 
like CorelDraw or LibreOffice Draw. But they have other issues...


--
___
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] Fwd: Consulta sobre Lazarus Ide

2020-05-21 Thread Alexander Nava via lazarus
Good afternoon

 I am developing an application with lazarus ide and freepascal on a
workstation that works with gnu linux debian 10 32 bits, we need to
port the application to windows 32 and 64 bits for the company I am
working with.

I have some questions:
1- As it is done for said application it can be ported to windows,
since I have followed the tutorials of the official page of lazarus
and freepascal, and nothing that allows us to port the application.

2.- In the same way, you could develop any application to other
operating systems such as unix and mac using the same code

3.- Lazarus ide and freepascal can port an application to mobile
phones, that is, for android and mac operating systems.
Thanks for your help.

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


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Werner Pamler via lazarus

Am 21.05.2020 um 18:06 schrieb Michael Van Canneyt via lazarus:

Now I still need to learn some Inkscape, but that's for later :-)


I feel with you... Unfortunately every graphics program has its own 
short cuts and places in the menus and toolbars, and yes, Inkscape, like 
the well-respsected Gimp, is not a master-piece in user-guidance, at 
least for my way of working.  Since the icons are stored in universal 
svg, however, you can also switch you other vector programs instead, 
like CorelDraw or LibreOffice Draw. But they have other issues...


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


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Vojtěch Čihák via lazarus

I also use Inkscape and rsvg-convert
 
I have a script for converting all *.svg icons to multiple sizes:
 
#!/bin/bash
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_64.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 56 -h 56 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_56.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 48 -h 48 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_48.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 40 -h 40 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_40.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 32 -h 32 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_32.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 28 -h 28 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_28.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 24 -h 24 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_24.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 20 -h 20 -a -o ../png_all/`echo 
$i | sed -e 's/.svg$/_20.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 16 -h 16 -a -o ../png_all/`echo 
$i | sed -e 's/svg$/png/'`; done          
 
 
Yes, non-integer scaling may be blury sometimes but nothing horrible.
 
V.
 
__

Od: "Michael Van Canneyt via lazarus" 
Komu: "Lazarus mailing list" 
Datum: 21.05.2020 16:14
Předmět: [Lazarus] Tool to make icons ?



Hi,

What is the tool used to make icons for standard Lazarus components ?
Every time I need to make an icon for a component, 
I find myself in the situation that I start looking for a tool on internet.


Should not lazarus come out of the box with a basic tool that allows you to
create component icons with the correct sizes ?

Michael.
--
___
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] Tool to make icons ?

2020-05-21 Thread Michael Van Canneyt via lazarus



On Thu, 21 May 2020, Werner Pamler via lazarus wrote:


Am 21.05.2020 um 17:45 schrieb Michael Van Canneyt via lazarus:

Where are the SVG sources for the icons ?


Great ! Thanks !

Now I still need to learn some Inkscape, but that's for later :-)

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


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Werner Pamler via lazarus

Am 21.05.2020 um 17:45 schrieb Michael Van Canneyt via lazarus:

Where are the SVG sources for the icons ?

https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/image_sources/
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Michael Van Canneyt via lazarus



On Thu, 21 May 2020, Werner Pamler via lazarus wrote:


Am 21.05.2020 um 16:13 schrieb Michael Van Canneyt via lazarus:

What is the tool used to make icons for standard Lazarus components ?


Roland Hahn who designed most of the palette and a good part of the 
toolbar icons is using Inkscape. This may be a bit surprising because 
Inkscape is a vector graphics program for svg drawings, but icons are 
bitmaps. The main advantage is that every feature of the drawing is 
available as a separate object, not merged together like in the bitmap 
programs (unless layers are supported). Producing svg vector drawings it 
is enough to do an image once and export the three resolutions (95ppi, 
144pii, 192ppi) from that single source file. Well - in principle 
because the 150% image usually becomes a bit blurred this way. Roland 
goes even a step further and does every size individually in order to 
fine-tune details.  And the final advantage is that we have svg files 
for the time when a future Lazarus will support to scalable svg images.


OK.

Where are the SVG sources for the icons ? I looked but can't find them.

I need to create a new dataset descendent image. It would be good to be able
to start from one of the existing SVGs and simply change the text.

So maybe the SVGs of the original icons could be included in the lazarus
distribution. That way people can take an existing one and change it.



In the meantime I tried Inkscape myself for some of my own components, 
and yes, once I learned the basic operations it is really well-suited.


I believe it.

Should not lazarus come out of the box with a basic tool that allows 
you to

create component icons with the correct sizes ?


It really would have to be an advanced program, most of all supporting 
layers, and I think that this would be too much work. Besides GreenFish 
there is also LazPaint, both written with Lazarus and are very good.


Yes and no. The goal is to be able to make a minimalistic icon quickly.
For this you don't need a full-blown editor. I expect such tool to be
included in Lazarus.

For Delphi I still use the icon editor that came with D7. 
Since they later removed it, I specially saved this program in a separate folder.

For example, I have my own TDatasource. I just changed the colors of the
TDatasource one. 
The icons will not win a beauty prize, but at least every component gets a

distinct icon.

Anyway, thanks everyone for the answers ! If the SVG files could be
committed, that would be nice.

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


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Werner Pamler via lazarus

Am 21.05.2020 um 16:13 schrieb Michael Van Canneyt via lazarus:

What is the tool used to make icons for standard Lazarus components ?


Roland Hahn who designed most of the palette and a good part of the 
toolbar icons is using Inkscape. This may be a bit surprising because 
Inkscape is a vector graphics program for svg drawings, but icons are 
bitmaps. The main advantage is that every feature of the drawing is 
available as a separate object, not merged together like in the bitmap 
programs (unless layers are supported). Producing svg vector drawings it 
is enough to do an image once and export the three resolutions (95ppi, 
144pii, 192ppi) from that single source file. Well - in principle 
because the 150% image usually becomes a bit blurred this way. Roland 
goes even a step further and does every size individually in order to 
fine-tune details.  And the final advantage is that we have svg files 
for the time when a future Lazarus will support to scalable svg images.


In the meantime I tried Inkscape myself for some of my own components, 
and yes, once I learned the basic operations it is really well-suited.



Should not lazarus come out of the box with a basic tool that allows 
you to

create component icons with the correct sizes ?


It really would have to be an advanced program, most of all supporting 
layers, and I think that this would be too much work. Besides GreenFish 
there is also LazPaint, both written with Lazarus and are very good.


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


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread gabor via lazarus

I use "Greenfish Icon Editor". GPL with FPC/Lazarus sources.
http://greenfishsoftware.org/gfie.php

W dniu 2020-05-21 o 16:13, Michael Van Canneyt via lazarus pisze:


Hi,

What is the tool used to make icons for standard Lazarus components ?
Every time I need to make an icon for a component, I find myself in the 
situation that I start looking for a tool on internet.


Should not lazarus come out of the box with a basic tool that allows you to
create component icons with the correct sizes ?

Michael.

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


Re: [Lazarus] Tool to make icons ?

2020-05-21 Thread Leyba Bronstain via lazarus

21.05.2020 17:13, Michael Van Canneyt via lazarus пишет:


Hi,

What is the tool used to make icons for standard Lazarus components ?
Every time I need to make an icon for a component, I find myself in 
the situation that I start looking for a tool on internet.


Should not lazarus come out of the box with a basic tool that allows 
you to

create component icons with the correct sizes ?

Michael.


IMO, inkscape

https://inkscape.org/

--
/-- with best regards, Zoltanleo aka Док/
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Tool to make icons ?

2020-05-21 Thread Michael Van Canneyt via lazarus


Hi,

What is the tool used to make icons for standard Lazarus components ?
Every time I need to make an icon for a component, 
I find myself in the situation that I start looking for a tool on internet.


Should not lazarus come out of the box with a basic tool that allows you to
create component icons with the correct sizes ?

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