Recent

Author Topic: Compile Greenfish Icon Editor Pro 3.6  (Read 738 times)

Roland57

  • Full Member
  • ***
  • Posts: 180
Compile Greenfish Icon Editor Pro 3.6
« on: April 03, 2021, 05:36:00 am »
Hello!

Has somebody ever tried to compile Greenfish Icon Editor?

I just did a quick test, on Linux. I tried to create the gfComp component (as explained in how-to-compile.txt). It looks like the headers of functions, in the implementation section, are truncated. I wonder if I missed something.

I used the source included in the Linux portable version.



« Last Edit: April 03, 2021, 05:39:30 am by Roland57 »

Fred vS

  • Hero Member
  • *****
  • Posts: 2210
    • StrumPract is the musicians best friend
Re: Compile Greenfish Icon Editor Pro 3.6
« Reply #1 on: April 03, 2021, 08:24:05 pm »
Hello Roland.

In case you have no luck with GreenFish, LazPaint can also deal with icons and cursors.

Fre;D
« Last Edit: April 03, 2021, 08:27:55 pm by Fred vS »
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Roland57

  • Full Member
  • ***
  • Posts: 180
Re: Compile Greenfish Icon Editor Pro 3.6
« Reply #2 on: April 03, 2021, 08:44:34 pm »
Thank you Fred. Yes, I know. In fact, I don't really need GIE. Anyway, I can use the binary provided by the author. But it is a very well written project, where there are many things to learn (at least for me), and I would be glad to be able to compile it.
« Last Edit: April 03, 2021, 08:46:35 pm by Roland57 »

Fred vS

  • Hero Member
  • *****
  • Posts: 2210
    • StrumPract is the musicians best friend
Re: Compile Greenfish Icon Editor Pro 3.6
« Reply #3 on: April 03, 2021, 08:52:42 pm »
Hello Roland.

I did try to compile it with Lazarus 2.0.10 but get error with package "gfComp" not found.

And I dont find it too.

Indeed it seems to be a great fpc project but is it still maintained, last version is from 2017?
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9284
  • FPC developer.
Re: Compile Greenfish Icon Editor Pro 3.6
« Reply #4 on: April 03, 2021, 09:14:36 pm »
I found a reference to gfcomp in atsynedit sources.

Fred vS

  • Hero Member
  • *****
  • Posts: 2210
    • StrumPract is the musicians best friend
Re: Compile Greenfish Icon Editor Pro 3.6
« Reply #5 on: April 03, 2021, 09:20:17 pm »
In the how-to-compile.txt it is explained how to create the new Lazarus package gfComp but I did not get how to do.

Quote
*** The main program

It may be the best to use a Lazarus daily snapshot with fpc version at least 2.7.1 for compilation. (see http://mirrors.iwi.me/lazarus/snapshots/) The latest, cutting-edge compiler may optimize code more and will enable the use of some advanced syntax GFIE uses.

WARNING: these daily Lazarus snapshots may be dangerous to use, and no one other than you is liable for any possible damage to your computer, your data or anything valuable. (see disclaimer here: http://freepascal.dfmk.hu/test/lazarus/)

To compile GFIE, first create a new Lazarus package gfComp which references all files under the Components folder. Then build and install this package (this may include recompiling Lazarus). Now you can load the gfie.lpi project file into Lazarus and it should compile.

*** Other programs

Some utilized programs are written in other languages and need to be compiled separately:
* libgfiec is written in C++. Use Code::Blocks to compile this one. The c folder contains the necessary files to compile libgfie32c.dll (Release32 target) and libgfie64c.dll (Release64 target).
* Image Converter is written in C#.

*** Performance note

Note that currently GFIE is optimized for the i386 (32-bit desktop) and x86_64 (64-bit desktop) architectures. It will probably compile under other architectures like PowerPC, too, but performance may be affected as the FastDiv library (which enables fast division with small numbers) will fall back to use the simple division instruction, which will be probably very slow, partly due to the added function call. You should either
   * make a FastDiv variant on these architectures (see the libdivide library),
or
   * eliminate FastDiv completely and rewrite those pieces of code which use FastDiv to simple division.
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

Roland57

  • Full Member
  • ***
  • Posts: 180
Re: Compile Greenfish Icon Editor Pro 3.6
« Reply #6 on: April 04, 2021, 07:55:48 am »
I just did a quick test, on Linux. I tried to create the gfComp component (as explained in how-to-compile.txt). It looks like the headers of functions, in the implementation section, are truncated. I wonder if I missed something.

Indeed, I missed... the Delphi mode.  :-[

 

TinyPortal © 2005-2018