Recent

Author Topic: I want to draw a line. Where is the graph.ppu  (Read 3547 times)

saezj

  • New Member
  • *
  • Posts: 10
I want to draw a line. Where is the graph.ppu
« on: January 29, 2016, 08:46:22 pm »
Hello,
I am and old user on TP and new on FP. I ´ve just installed FCP 3.0.0 for ARM on a rapsberry PI 2.
For learning purposes I just want to draw a line in graphic mode but I couldn´t find graph.ppu.
Where is that unit? Was it replace for a new unit?
Thank you for your help.

wp

  • Hero Member
  • *****
  • Posts: 12345
Re: I want to draw a line. Where is the graph.ppu
« Reply #1 on: January 29, 2016, 10:18:16 pm »
The old graph unit belongs to fpc. It is in "packages/graph/src" of the fpc sources directory. Just add it to uses, the compiler should find it.

saezj

  • New Member
  • *
  • Posts: 10
Re: I want to draw a line. Where is the graph.ppu
« Reply #2 on: January 29, 2016, 10:58:29 pm »
Thank for the aswer. I really don´t have the file. First thing I did was search for it over all the directories of FPC.
The installation of FPC was succesful without any error.  Could it be not present por fpc 3.0.0 linux-arm?
You said old unit, could you suggest me a new one that replace Graph.ppu ?

wp

  • Hero Member
  • *****
  • Posts: 12345
Re: I want to draw a line. Where is the graph.ppu
« Reply #3 on: January 29, 2016, 11:35:12 pm »
I'm sorry, I don't have any experience with RasPi/ARM. But maybe you are right: the source of graph.pp uses an x86 unit which probably is not available on the ARM. But in the unix graph folder there is also a "ggigraph.pp" which does not require it. You could look for this one.

Maybe my previous post was confusing, because I mentioned the sources folder, but I think fpc installs without sources. In my Linux the compiled graph unit is in in /usr/lib/fpc/<version>/units/i386-linux/

Leledumbo

  • Hero Member
  • *****
  • Posts: 8768
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: I want to draw a line. Where is the graph.ppu
« Reply #4 on: January 29, 2016, 11:39:23 pm »
Could it be not present por fpc 3.0.0 linux-arm?
There is no graph unit for arm-linux target, not even its interface compatible ptc/ggi (which are available for x86_64-linux but no native backend) or sdl backend implementation. So you're out of luck if you want to use it on arm-linux (feel free to port it if you want).
could you suggest me a new one that replace Graph.ppu ?
Lazarus runs fine on RPI and is available from official repository. LCL is certainly much better than graph, whose existence is actually to ease porting old TP graph programs. There are a bunch of graphic related articles in the wiki.

saezj

  • New Member
  • *
  • Posts: 10
Re: I want to draw a line. Where is the graph.ppu
« Reply #5 on: January 30, 2016, 12:06:33 am »
Installing Lazarus. Thanks for the answers. Very helpful.
Have a nice weekend.

 

TinyPortal © 2005-2018