PDA

View Full Version : Can't find X.pas



dazappa
12-01-2011, 02:58 AM
So I have a little netbook running Ubuntu Netbook Edition, and to save space I only installed FPC. When I try to compile one of the miku examples, it says that it cannot find unit X used by zgl_main. I tried installing the fpc sources, but didn't have any luck there either. Google has been absolutely worthless (it was treating unit, x, and fpc all as different search terms. I was mostly getting results like SomeRandomUnit on Mac OS X *sigh*)

ZenGL apps compiled on a different computer still run great on this though :P

quick edit: fpc 2.2.4-3 is what I'm using, zengl .2 rc 5

JSoftware
12-01-2011, 03:56 AM
X or x?

x should be in units/X11/ if you have downloaded fp-packages too. The old fpc(2.2.4 is really old :P) distribution on Ubuntu had it split up in all those fp-* things

Andru
12-01-2011, 06:22 AM
Hm, did you install all this packages?


fp-compiler, fp-docs, fp-ide, fp-units-base, fp-units-db, fp-units-fcl, fp-units-fv, fp-units-gfx, fp-units-gnome1, fp-units-gtk, fp-units-gtk2, fp-units-i386, fp-units-math, fp-units-misc, fp-units-multimedia, fp-units-net, fp-units-rtl, fp-utils


I think you have some problem with your fpc.cfg, or there is no x.ppu in $path_to_freepascal/$version/units/i386-linux/x11/

dazappa
16-01-2011, 01:12 AM
Ahh, yeah I was missing a few of those packages. Works like a charm now ;) Been a bit busy lately, so sorry I'm a little slow.