Forum > Beginners

I want to draw a line. Where is the graph.ppu

(1/2) > >>

saezj:
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:
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:
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:
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:

--- Quote from: saezj on January 29, 2016, 10:58:29 pm ---Could it be not present por fpc 3.0.0 linux-arm?

--- End quote ---
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).

--- Quote from: saezj on January 29, 2016, 10:58:29 pm ---could you suggest me a new one that replace Graph.ppu ?

--- End quote ---
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.

Navigation

[0] Message Index

[#] Next page

Go to full version