Recent

Author Topic: Bug? cursors.res empty  (Read 777 times)

rebzdu

  • Newbie
  • Posts: 3
Bug? cursors.res empty
« on: March 23, 2020, 01:12:58 pm »
I installed
lazarus-2.0.6-0.x86_64.rpm
from
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/Lazarus%202.0.6/
Wenn I compiled an new (empty) program, I get the error message:
"Error: No known file format detected for file '/usr/lib64/lazarus/lcl/units/x86_64-linux/cursors.res'
The file is a link to
../../cursors.res
but
/usr/lib64/lazarus/lcl/cursors.res
is an empty file (size 0)
Therefore I changed back to
lazarus-2.0.2-0.x86_64.rpm
and everything is fine.
Have I made any mistake?
« Last Edit: March 23, 2020, 01:15:46 pm by rebzdu »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3886
  • I like bugs.
Re: Bug? cursors.res empty
« Reply #1 on: March 23, 2020, 01:59:22 pm »
You forgot to mention your Linux distribution and version.
The provided *.deb and *.rpm packages do not work in every distro even if the package format matches. It depends on installed libraries and their versions etc.
I would recommend that you build Lazarus from sources after installing FPC from your distro package system.
Lazarus svn branch can be fixes_2_0 or trunk.

Other option is to switch to a distribution providing recent versions of SW, like Arch or Manjaro.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux.

rebzdu

  • Newbie
  • Posts: 3
Re: Bug? cursors.res empty
« Reply #2 on: March 23, 2020, 02:19:11 pm »
I've installed on Opensuse Leap 15.1

I think, it is not ok, that cursors.res has a size of 0, because in the package
lazarus-2.0.2-0.x86_64.rpm
I find a file with size 18.4k instead of a link to a zero-sized file.

...recommend that you build Lazarus from sources ... too much effort


winni

  • Hero Member
  • *****
  • Posts: 1996
Re: Bug? cursors.res empty
« Reply #3 on: March 23, 2020, 03:09:30 pm »
Hi!

Use the Lazarus/fpc packages from the Suse repository.

They work since years without problems.

Winni
« Last Edit: March 23, 2020, 03:12:33 pm by winni »

MoCityMM

  • Jr. Member
  • **
  • Posts: 72
Re: Bug? cursors.res empty
« Reply #4 on: March 23, 2020, 04:20:51 pm »
I have OpenSUSE 15.1 installed on a vm and fpc/lazarus installed from sourceforge (rpm), current release and zero issues with it.

You downloaded all 3 rpm files and installed from same source?

winni

  • Hero Member
  • *****
  • Posts: 1996
Re: Bug? cursors.res empty
« Reply #5 on: March 23, 2020, 05:24:37 pm »
Hi!

Yes I do that since years and never had a problem.

The Suse  fpc/Laz packages appear in the update repository 4-6 days after a new version is released. There are only stable versions, so if you need something from the trunk this does not work.

Winni

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3886
  • I like bugs.
Re: Bug? cursors.res empty
« Reply #6 on: March 23, 2020, 07:11:06 pm »
...recommend that you build Lazarus from sources ... too much effort
Not really. You don't need to install it. Just start the executable from its location. This is for trunk (development version) :
Code: [Select]
$ cd
$ svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus_trunk
$ cd lazarus_trunk
$ make
$ ./lazarus &
For more info see:
 https://wiki.lazarus.freepascal.org/Getting_Lazarus
Note, you can have many versions side by side. They don't bother each other, nor the properly installed version found in $PATH, especially when using --pcp= parameter for separate configurations.
« Last Edit: March 23, 2020, 07:13:30 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux.

rebzdu

  • Newbie
  • Posts: 3
Re: Bug? cursors.res empty
« Reply #7 on: March 23, 2020, 07:33:50 pm »
Meanwhile I succeeded.
It wasn't so easy, because neither in the main repo nor in Leap 15.1 you find version 2.0.2, these from packman and  sourceforge gave the cursors.res errors but finally I succeded with this on:
http://download.opensuse.org/repositories/devel:/languages:/pascal/openSUSE_Leap_15.1
But because the priority of this repo wasn't higher than the other ones, yast took the worse for fpcsrc.
So I had to force the installation from the devel: repo.
Next time I will set the priority of this repo higer than the other ones, so yast will take the right one.
But perhaps I will install from source the next time, now I will not change a running system ;-)
Many thanks and stay healthy
Reinhard

 

TinyPortal © 2005-2018