[fpc-pascal] problem with the opengl unit
YuGiOhJCJ Mailing-List
yugiohjcj-mailinglist at laposte.net
Sun May 4 12:37:51 CEST 2014
Indeed, I found an example in /usr/share/doc/fpc-2.6.4/opengl/examples/bounce.pp.
$ fpc bounce.pp
Free Pascal Compiler version 2.6.4 [2014/05/03] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling bounce.pp
bounce.pp(14,3) Fatal: Can't find unit gl used by bounce
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
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?
This is the way I have compiled fpc-2.6.4 (it can be useful):
$ tar xvf fpc-2.6.4.i386-linux.tar
$ tar xvf fpcbuild-2.6.4.tar.gz
$ cd fpc-2.6.4.i386-linux
$ mkdir binary.i386-linux
$ cd -
$ cd fpc-2.6.4.i386-linux/binary.i386-linux
$ tar xvf ../binary.i386-linux.tar
$ for each in *.tar.gz; do tar xvf ${each}; done
$ cd -
$ cd fpc-2.6.4.i386-linux/binary.i386-linux/bin
$ ln -s ../lib/fpc/2.6.4/ppc386
$ cd -
$ export PATH="${PWD}/fpc-2.6.4.i386-linux/binary.i386-linux/bin:${PATH}"
$ cd fpcbuild-2.6.4
$ fpcmake -Tall
$ make build NOGDB=1
$ make NOGDB=1 PREFIX=/tmp/fpc-2.6.4/usr install
$ cd -
$ cd /tmp/fpc-2.6.4/usr/bin
$ ln -s ../lib/fpc/2.6.4/ppc386
$ cd -
$ rm -rfv fpc-2.6.4.i386-linux fpcbuild-2.6.4
Do you see why my opengl unit is not found?
On Sat, 3 May 2014 21:29:44 +0200
Reimar Grabowski <reimgrab at gmail.com> wrote:
> On Sat, 3 May 2014 20:48:02 +0200
> YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist at laposte.net> wrote:
>
> > I am not looking for learning OpenGL, I just want a minimal example to be sure that my OpenGL unit is working correctly.
> > Do you have something like that?
> There should be some in fpcsrcdir/packages/opengl/examples/.
>
> hih
>
> R.
> _______________________________________________
> 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