Recent

Author Topic: How to install image library for freepascal on linux?  (Read 12676 times)

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #15 on: August 02, 2023, 11:51:27 am »
Interesting. I never know Xed Editor can use Tahoma or Arial Black fonts.

I can check what font I use (when I will be on Linux). I've spended time installing new fans and they go on full throttle 1800 kind of noizy and frustrating. I need to find some software for Win XP to get it under control since I run linux on VM.

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #16 on: August 02, 2023, 07:02:38 pm »
Interesting. I never know Xed Editor can use Tahoma or Arial Black fonts.

So in xed I am using scheme Oblivion. It seems that the font is Monospace regular.

So I set Monospace Regular, same size and it is not identical in Lazarus. Lazarus uses very big spaces. For example this:
"ReadPNG(Img, 'w.png');"
looks like this
"R e a d P N G (  I  mg , ' w. p n g '  )  ;"

This is very unpleasant for me very inconvenient. But in the same time I'm having another inconvenient problem when I hear the noise from new fan(s). An I cannot find how to get down the RPMs. It seems like no support in OS, while on Win XP Speedfan detects it, it does not slow it down. And lm-sensort on Linux mint, did not detect.

Handoko

  • Hero Member
  • *****
  • Posts: 5536
  • My goal: build my own game engine using Lazarus
Re: How to install image library for freepascal on linux?
« Reply #17 on: August 03, 2023, 07:15:22 am »
Lazarus uses very big spaces.

Please provide a screenshot.

Lazarus has been used by a lot of users for years, I never heard the font issue as you described. The img1 below is the screenshot of my Lazarus Source Editor, using its default font DejaVu Sans Mono and its default settings.

If yours looks much different from the img1, maybe you have accidentally changed the settings, see img2. Or maybe there were some problems with your installation.

An I cannot find how to get down the RPMs.

Did you mean the Linux rpm packages? If yes, here is the link:
https://sourceforge.net/projects/lazarus/files/

It seems like no support in OS, while on Win XP Speedfan detects it, it does not slow it down. And lm-sensort on Linux mint, did not detect.

I cannot fully understand what you meant. Please provide more information.
« Last Edit: August 03, 2023, 07:19:29 am by Handoko »

Thaddy

  • Hero Member
  • *****
  • Posts: 19124
  • Glad to be alive.
Re: How to install image library for freepascal on linux?
« Reply #18 on: August 03, 2023, 09:13:04 am »
As long as you install those fonts correctly, it does.... And cross-platform.
The issue at hand is simply that the font - or the font family - is not there.
objects are fine constructs. You can even initialize them with constructors.

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #19 on: August 03, 2023, 01:04:44 pm »
An I cannot find how to get down the RPMs.
I fixed the issue with fans. I found BIOS option Monitor->Q-Fan profile->Quite
Not it is very quite. "RPM" I mean the unit for fan speed rotations per minute.


Ok, I gonna start the VM to send screenshot.

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #20 on: August 03, 2023, 01:54:48 pm »
I have tried to install CodeTyphon with GTK2 and it was unsuccessful. After I removed it, Lazarus cannot find fpc. I don't know how to fix it.

Sending the screenshots.


Handoko

  • Hero Member
  • *****
  • Posts: 5536
  • My goal: build my own game engine using Lazarus
Re: How to install image library for freepascal on linux?
« Reply #21 on: August 03, 2023, 02:36:07 pm »
I can see your issue now. Unfortunately I don't know what causes it. My guesses, maybe the font files were damaged or maybe you need to reinstall your Lazarus.

I saw you're using older version of Lazarus installed using your OS software manager. Don't use that. You should use the latest version provided by official Lazarus team, here:
https://sourceforge.net/projects/lazarus/files/

I think before you reinstall the Lazarus, you may need to do a complete Lazarus/FPC removal:
https://forum.lazarus.freepascal.org/index.php/topic,38828.msg265293.html#msg265293

I don't know why you want to use CodeTyphon. I and many users here do not use CodeTyphon, you should ask your CodeTyphon issue on their forum.

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #22 on: August 04, 2023, 12:12:28 am »
I can try reinstall, but I doubt it will run. Win XP - VM machine->Mint 20-> updates stopped... The updates bring worsening of RAM consumption. I'm not completely ready to go on non-VM mint installation. I'm sure with 8GB RAM there would be no problems, but I think I could find another problem like I still need some Windows XP applications, possible drivers issues, etc. I'm using VM for I am learning the basics on linux that I need before I go to fresh non-VM installation.

wp

  • Hero Member
  • *****
  • Posts: 13503
Re: How to install image library for freepascal on linux?
« Reply #23 on: August 04, 2023, 12:51:09 am »
I get a similar screenshot as your laz01.png when I set the editor font to a proportional font - see my screen shot (here: Deja Vu Sans Light). As I already said: don't do this. Select a mono-spaced font, such as Deja Vu Sans Mono (see the other screenshot) and it will work.

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #24 on: August 04, 2023, 01:32:46 am »
I get a similar screenshot as your laz01.png when I set the editor font to a proportional font - see my screen shot (here: Deja Vu Sans Light). As I already said: don't do this. Select a mono-spaced font, such as Deja Vu Sans Mono (see the other screenshot) and it will work.

I dont see the settings, just uninstalled lazarus. I cannot install it according the guide as posted above.

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #25 on: August 04, 2023, 10:11:10 am »
I reinstalled Lazarus and never will follow any guide like that one complicated in future (as described in the link). The only safe solution for me as newbie is the Lazarus from repo installation. I have put there Libration Open as far as I remember it correctly, but I would prefer to find a bolder one. The current mono fonts are somewhat thin for me so I need to enlarge the size to 20 instead stayin' with 16.

Dzandaa

  • Hero Member
  • *****
  • Posts: 531
  • From C# to Lazarus
Re: How to install image library for freepascal on linux?
« Reply #26 on: August 04, 2023, 11:07:16 am »
Hi,

I use Linux Mint for many years and Pascal Lazarus for about one year.

I've just installed it for a friend on a old laptop 2 cores a few days ago.

I'm on Linux Mint 20.2 Cinnamon 64Bits, Kernel 5.15.0-78-generic
newer versions have sometimes problems with old computers and NVidia Graphics cards.

Don't use the Lazarus version on Mint repository, it is not the latest.

Uninstall it  with the "Software manager"

or

Uninstall it completely with "Synaptic Package Manager"

Search for "fpc", look what is installed (Green square), select  it with Right Click and  "Mark for Removal" then "Apply"
Do the same with "lazarus"

For the installation, I download the 3 packages from here:

https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.6/

I install the 3 packages in order:

fpc-laz_3.2.2-210709_amd64.deb
fpc-src_3.2.2-210709_amd64.deb
lazarus-project_2.2.6-0_amd64.deb

By clicking on the .deb file you run the "Archive Manager" then "Install"

After the first run, I install "anchordockingdsgn" from "Package->Install/Uninstall Packages" to have a pleasant environment.

For Graphic, I use "BGRABitmap" and "BGRAControls" from "Package->Online Package Manager"

Hope that help.

B->

Regards,
Dzandaa

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #27 on: August 09, 2023, 11:19:51 pm »
Hi,

I use Linux Mint for many years and Pascal Lazarus for about one year.

I've just installed it for a friend on a old laptop 2 cores a few days ago.

I'm on Linux Mint 20.2 Cinnamon 64Bits, Kernel 5.15.0-78-generic
newer versions have sometimes problems with old computers and NVidia Graphics cards.

Don't use the Lazarus version on Mint repository, it is not the latest.

Uninstall it  with the "Software manager"

or

Uninstall it completely with "Synaptic Package Manager"

Search for "fpc", look what is installed (Green square), select  it with Right Click and  "Mark for Removal" then "Apply"
Do the same with "lazarus"

For the installation, I download the 3 packages from here:

https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.6/

I install the 3 packages in order:

fpc-laz_3.2.2-210709_amd64.deb
fpc-src_3.2.2-210709_amd64.deb
lazarus-project_2.2.6-0_amd64.deb

By clicking on the .deb file you run the "Archive Manager" then "Install"

After the first run, I install "anchordockingdsgn" from "Package->Install/Uninstall Packages" to have a pleasant environment.

For Graphic, I use "BGRABitmap" and "BGRAControls" from "Package->Online Package Manager"

Hope that help.

B->

Thank you for your description and links.

lazarus, fpc, fpc src and fp (fp unit) was needed to uninstall all the things.

Now I'm not sure if to uninstall the libfprint, probably something different, so not.


Now installing

sudo gdebi -n -q  fpc-laz_3.2.2-210709_amd64.deb fpc-src_3.2.2-210709_amd64.deb lazarus-project_2.2.6-0_amd64.deb

It seems that it is installed but I cannot run it:

sudo gdebi -n -q fpc-laz_3.2.2-210709_amd64.deb fpc-src_3.2.2-210709_amd64.deb lazarus-project_2.2.6-0_amd64.deb
(Database is loading... currently 436,567 files and directories are installed.)
Preparing to replace fpc-laz_3.2.2-210709_amd64.deb...
Unpacking fpc-laz (3.2.2)...
Setting up package fpc-laz (3.2.2)...
Running on Linux
Write permission in /etc.
Writing a sample configuration file to /etc/fpc.cfg
Writing a sample configuration file to /usr/lib/fpc/3.2.2/ide/text/fp.cfg
Writing a sample configuration file to /usr/lib/fpc/3.2.2/ide/text/fp.ini
Writing a sample configuration file to /etc/fppkg.cfg
Writing a sample configuration file to /etc/fppkg/default
Processing triggers for package man-db (2.9.1-1)...
$ lazarus
bash: lazarus: command not found
$ fpc-laz
bash: fpc-laz: command not found

fpc is installed. I cannot find the lazarus in xFce menu (mint 20)

« Last Edit: August 09, 2023, 11:41:15 pm by barracuda »

Dzandaa

  • Hero Member
  • *****
  • Posts: 531
  • From C# to Lazarus
Re: How to install image library for freepascal on linux?
« Reply #28 on: August 10, 2023, 10:26:13 am »
Hi Barracuda

I don't use Mint xFce, but Cinnamon.

If your computer is not to old and 64bits, I recommend Cinnamon.

Lazarus is the menu "Programming->Lazarus".

Lazarus is installed in /usr/bin

The Command is "startlazarus"

or "startlazarus yourproject"

B->
Regards,
Dzandaa

barracuda

  • Full Member
  • ***
  • Posts: 133
Re: How to install image library for freepascal on linux?
« Reply #29 on: August 10, 2023, 10:56:23 am »
The lazarus project cannot be installed. Thank you.

RAD tool for Free Pascal
Lazarus is a free and open-source IDE and RAD tool for Free Pascal, utilizing the Lazarus Component Library (LCL). The LCL is also included in this package.
Visit http://www.lazarus.freepascal.org
Do you wish to install the package? [Y/n]: Y
Selecting the previously unselected package lazarus-project.
dpkg: considering lazarus-project_2.2.6-0_amd64.deb containing package lazarus-project:
lazarus-project is in conflict with lazarus-src
lazarus-src-2.0 provides lazarus-src and is present and installed.
dpkg: error processing archive lazarus-project_2.2.6-0_amd64.deb (--install):
package conflict - will not install lazarus-project
Errors were encountered while processing:
lazarus-project_2.2.6-0_amd64.deb

 

TinyPortal © 2005-2018