Recent

Author Topic: Graph unit  (Read 4354 times)

Jay

  • New Member
  • *
  • Posts: 31
Graph unit
« on: November 13, 2016, 04:57:55 pm »
I'm getting an error trying to run a program which uses the graph unit:

Quote
/usr/bin/ld: cannot find -lvga

The wiki says that this is because either libvga and/or the development package isn't installed or the folder where it's installed isn't in the linker path.

However I'm using Debian jessie and can't find any package similar to "libvga" on my system or using apt-get. Any linux users out there have any suggestions? Thanks.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Graph unit
« Reply #1 on: November 13, 2016, 05:04:02 pm »
Try to search for "svgalib".  That package installs libvga because of some ancient compatibility reasons.

Thaddy

  • Hero Member
  • *****
  • Posts: 14214
  • Probably until I exterminate Putin.
Re: Graph unit
« Reply #2 on: November 13, 2016, 05:06:54 pm »
Can also be a CPU issue. It is not available for arm-linux and x86_64 linux only i386, afaik.

Check if the package graph is installed in /usr/local/lib/fpc/<version>/units/<platform>

If it isn't then graph is not supported

In my case /usr/local/lib/fpc/3.1.1/units/arm-linux does not contain graph because it is not supported on arm.
« Last Edit: November 13, 2016, 05:17:39 pm by Thaddy »
Specialize a type, not a var.

Jay

  • New Member
  • *
  • Posts: 31
Re: Graph unit
« Reply #3 on: November 16, 2016, 11:16:14 am »
Thanks, I should have mentioned I'm using linux 32, and the graph unit is in /usr/lib/fpc/3.0.0/units/i386-linux/graph.

I had no luck with using "svgalib" instead of "libvga".

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Graph unit
« Reply #4 on: November 16, 2016, 11:42:28 am »
seems indeed that svgalib is removed from debian after wheezy:

https://tracker.debian.org/pkg/svgalib

 

TinyPortal © 2005-2018