Recent

Author Topic: Problem with bgrabitmap-9.9.4  (Read 2914 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Problem with bgrabitmap-9.9.4
« on: May 30, 2019, 07:49:31 pm »
Hi guys, on a new ubuntu 19.04 machine I want to install lazarus and some of its packages. I found it difficult with the installation of bgrabitmap not even successful with the online package manager. Then I downloaded the latest version by hand (bgrabitmap-9.9.4) but still have problems with the installation. Do you know why?
Code: [Select]
Messaggi, avvertimenti: 75, suggerimenti: 208
Warning: linker: /usr/bin/ld: cannot find -lGL
lazarus.pp(167,1) Error: Error while linking
make[2]: *** [Makefile:4354: lazarus] Error 1
make[1]: *** [Makefile:4784: idepkg] Error 2
Error: make: *** [Makefile:3277: idepkg] Error 2

With an older version the bgrabitmap9.1 gave me a different problem:

bgratext.pas(345,30) Error: Identifier not found "lpNoGUI"
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Problem with bgrabitmap-9.9.4
« Reply #1 on: May 31, 2019, 02:00:32 pm »
No idea?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

bigeno

  • Sr. Member
  • ****
  • Posts: 266
Re: Problem with bgrabitmap-9.9.4
« Reply #2 on: May 31, 2019, 02:42:06 pm »
Do you have libGL.so ? in lib dir ?

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Problem with bgrabitmap-9.9.4
« Reply #3 on: May 31, 2019, 07:05:02 pm »
Do you have libGL.so ? in lib dir ?
I run this command: sudo apt-get install libgl1

but error persist
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

bigeno

  • Sr. Member
  • ****
  • Posts: 266
Re: Problem with bgrabitmap-9.9.4
« Reply #4 on: June 01, 2019, 06:57:50 pm »
Can you show output of
Code: Pascal  [Select][+][-]
  1. find /usr -name libGL.so*
?
or try install libgl-dev
« Last Edit: June 01, 2019, 06:59:31 pm by bigeno »

circular

  • Hero Member
  • *****
  • Posts: 4471
    • Personal webpage
Re: Problem with bgrabitmap-9.9.4
« Reply #5 on: June 01, 2019, 07:07:02 pm »
OpenGL is not really necessary for BGRABitmap. If that's the problem, you could remove BGRAOpenGL... units from the package.
Conscience is the debugger of the mind

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Problem with bgrabitmap-9.9.4
« Reply #6 on: June 02, 2019, 10:18:37 am »
Can you show output of
Code: Pascal  [Select][+][-]
  1. find /usr -name libGL.so*
?
or try install libgl-dev

$ find /usr -name libGL.so*
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

circular

  • Hero Member
  • *****
  • Posts: 4471
    • Personal webpage
Re: Problem with bgrabitmap-9.9.4
« Reply #7 on: June 04, 2019, 10:26:48 pm »
Also about lpNoGUI identifier, it is has existed for some time now.

What is the actual version of your Lazarus?
Conscience is the debugger of the mind

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Problem with bgrabitmap-9.9.4
« Reply #8 on: June 25, 2019, 09:30:41 am »
Also about lpNoGUI identifier, it is has existed for some time now.

What is the actual version of your Lazarus?
2.1.0
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

circular

  • Hero Member
  • *****
  • Posts: 4471
    • Personal webpage
Re: Problem with bgrabitmap-9.9.4
« Reply #9 on: July 04, 2019, 07:41:57 pm »
Hmm that may be a problem with trunk.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4471
    • Personal webpage
Re: Problem with bgrabitmap-9.9.4
« Reply #10 on: July 09, 2019, 03:54:51 pm »
I had the same problem when trying to install LazOpenGLcontext.

I found the following help:
https://wiki.lazarus.freepascal.org/Lazarus_Faq#I_receive_an_error_during_the_linking_that_states_.2Fusr.2Fbin.2Fld:_cannot_find_-l.3Csome_lib.3E

So I did
Code: Bash  [Select][+][-]
  1. sudo apt-get install apt-file
  2. apt-file search libGL.so

It turns out the library libGL.so.1 but not libGL.so.
The library libglvnd-dev (Vendor neutral GL dispatch library -- development files) does.
Code: [Select]
libgl1: /usr/lib/x86_64-linux-gnu/libGL.so.1
libgl1: /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
libglvnd-dev: /usr/lib/x86_64-linux-gnu/libGL.so

So finally I did:
Code: Bash  [Select][+][-]
  1. sudo apt-get install libglvnd-dev

And I could compile Lazarus.  :)
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018