On Sun, 4 May 2014 14:40:35 +0200
YuGiOhJCJ Mailing-List wrote:
> 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/
These are the default unit paths of the compiler.
It norma
> Do you know why the unit path is "/usr/lib/fpc/2.6.4/" instead of
"/usr/lib/fpc/2.6.4/units/"?
No, but I did have problems with that many -Fu lines, which is why I reduce
to just two:
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/*
And it wo
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 samp
> 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.
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
On Sat, 3 May 2014 20:48:02 +0200
YuGiOhJCJ Mailing-List 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.
__
I don't know if I use {$mode objfpc} or {$mode delphi}.
How to know it?
Strange that glut.pas is not correct because I have directly picked it from
here:
http://wiki.freepascal.org/OpenGL_Tutorial
Is it an old tutorial?
In CMakeLists.txt, nothing about GL:
$ find . -name "CMakeLists.txt" -exec g
> It does not work with my glut.pas code
Do you use {$mode objfpc} or {$mode delphi}? ParamStr should return
AnsiString instead of ShortString there, and it's convertible to PChar.
Otherwise, you can cast the result to AnsiString first.
P.S.: I don't recommend glut, not even freeglut, for learnin