[fpc-pascal] problem with the opengl unit
YuGiOhJCJ Mailing-List
yugiohjcj-mailinglist at laposte.net
Sun May 4 14:40:35 CEST 2014
This is where fpc is searching:
$ fpc -vt bounce.pp | grep "unit path"
Using unit path: /usr/lib/fpc/2.6.4/units/i386-linux/rtl/
Using unit path: /usr/lib/fpc/2.6.4/
I am wondering if it is correct because that is what I have in this last directory:
$ ls /usr/lib/fpc/2.6.4/
ide msg ppc386 samplecfg units
For the configuration file, I had no one with the compilation steps I have given you in a previous message.
I need to add these steps to generate configuration files:
[...]
/tmp/fpc-2.6.4/usr/lib/fpc/2.6.4/samplecfg /tmp/fpc-2.6.4/usr/lib/fpc/2.6.4 /tmp/fpc-2.6.4/etc/
sed -i -e "s:/tmp/fpc-2.6.4::g" /tmp/fpc-2.6.4/etc/fpc.cfg
sed -i -e "s:/tmp/fpc-2.6.4::g" /tmp/fpc-2.6.4/usr/lib/fpc/2.6.4/ide/text/fp.cfg
[...]
Now, in my /etc/fpc.cfg file, I can see the correct lines:
$ cat /etc/fpc.cfg | grep "Fu"
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd13/
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd20
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd22
-Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/*
It seems to be good, as there is the -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* line.
Do you know why the unit path is "/usr/lib/fpc/2.6.4/" instead of "/usr/lib/fpc/2.6.4/units/"?
On Sun, 4 May 2014 03:51:14 -0700 (PDT)
leledumbo <leledumbo_cool at yahoo.co.id> wrote:
> > So there is really a problem with my GL (or gl) unit.
> > If this is only a problem of upper case, can you tell me how I can fix it?
>
> I think it's rather a unit path problem. Compile with -vt and grep -i "unit
> path"
> Make sure it lists path to your opengl units. If it doesn't, then check your
> fpc.cfg. There should be -Fu line pointing to the opengl units directory.
> Note that -Fu supports wildcard, so if you don't alter the layout, a single
> line of -Fu ending with * should be enough since the default layout is:
> $(fpc)/$(fpcversion)/units/$(fpctarget)/<package name>.
>
>
>
> --
> View this message in context: http://free-pascal-general.1045716.n5.nabble.com/problem-with-the-opengl-unit-tp5719120p5719126.html
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list