Lazarus

Free Pascal => FV/Textmode IDE => Topic started by: garlar27 on November 17, 2016, 01:23:20 pm

Title: Free Vision: How do I get it?
Post by: garlar27 on November 17, 2016, 01:23:20 pm
Hi, it might be a silly question but, how do I get Free Vision?

I couldn't find the binary within the FPC's bin folder ....

Any help would be appreciated.
Title: Re: Free Vision: How do I get it?
Post by: dogriz on November 17, 2016, 01:42:36 pm
I guess you are thinking about fp?
Title: Re: Free Vision: How do I get it?
Post by: wp on November 17, 2016, 02:19:27 pm
The units are in the fpc source folder packages/fv/src. There is also a test application in packages/fv/examples.

Note: the test app only compiled after I commented "{$I platform.inc}" which is not found. And at runtime the mouse does not work. (Windows 10, Laz 1.6/fpc 3.0)
Title: Re: Free Vision: How do I get it?
Post by: marcov on November 17, 2016, 02:28:38 pm
To make the mouse work, turn off the "quickedit" property in the cmd.exe box. This turns off the copy-and-paste support and gives mouse events to the application.
Title: Re: Free Vision: How do I get it?
Post by: wp on November 17, 2016, 02:39:27 pm
Thank you, marco.

Any idea about the missing platform.inc file? I tested several old versions that I still have on my system. Only in the oldest one, Laz 1.0/fpc 2.6.0 I do find a platform.inc in the fv/src file?
Title: Re: Free Vision: How do I get it?
Post by: marcov on November 17, 2016, 02:44:03 pm
I can run make in examples/ and the application builds and runs with my 3.1.1 checkout.  I don't have a 3.0.x checkout or release source tree on my work machine. (only 3.0 minimal install for bootstrapping)
Title: Re: Free Vision: How do I get it?
Post by: Thaddy on November 17, 2016, 02:49:24 pm
If FP builds, FV builds too, because FP relies on FV. And both do build. So what's the problem?
Title: Re: Free Vision: How do I get it?
Post by: wp on November 17, 2016, 02:57:12 pm
I can run make in examples/ and the application builds and runs with my 3.1.1 checkout.  I don't have a 3.0.x checkout or release source tree on my work machine. (only 3.0 minimal install for bootstrapping)
I was wrong - too blind to see the platform.inc in the fv/src folder... After adding "../src" to the include path the demo does compile now (with fpc 3.1.1 / 3.0 / 2.6.4 / 2.6.0. Shouldn't it be there in the first place? And why does it compile with fpc 2.6.0 with an empty include path?
Title: Re: Free Vision: How do I get it?
Post by: marcov on November 17, 2016, 03:05:25 pm
I can run make in examples/ and the application builds and runs with my 3.1.1 checkout.  I don't have a 3.0.x checkout or release source tree on my work machine. (only 3.0 minimal install for bootstrapping)
I was wrong - too blind to see the platform.inc in the fv/src folder... After adding "../src" to the include path the demo does compile now (with fpc 3.1.1 / 3.0 / 2.6.4 / 2.6.0. Shouldn't it be there in the first place? And why does it compile with fpc 2.6.0 with an empty include path?

Makefile.fpc hat

[compiler]
includedir=../src

auch in Fixes?
Title: Re: Free Vision: How do I get it?
Post by: wp on November 17, 2016, 03:29:53 pm
includedir=../src is always present in Makefile.fpc (--> the demo compiles from the cmd line). But only if I add ../src to the Include search path of the project options (lpi) the demo compiles from Lazarus.
Title: Re: Free Vision: How do I get it?
Post by: Thaddy on November 17, 2016, 03:33:54 pm
auch in Fixes?
Tai  Vokietijos forume atsakymas?

Normally a knock or two on your own head puts you back in the correct language mode  O:-) 8-)
Title: Re: Free Vision: How do I get it?
Post by: marcov on November 17, 2016, 04:24:50 pm
includedir=../src is always present in Makefile.fpc (--> the demo compiles from the cmd line). But only if I add ../src to the Include search path of the project options (lpi) the demo compiles from Lazarus.

Ah ok. The lpi's are afaik committed by Florian for development purposes. But maybe better to file a bug, preferably with a patch.
Title: Re: Free Vision: How do I get it?
Post by: garlar27 on November 17, 2016, 04:49:36 pm
Thank you!

Now another silly question: How do I build it?

I've tried this but it didn't :
Quote
C:\Lazarus\Lazarus.1.6.2-FPC.3.0.0\fpc\3.0.0\bin\i386-win32>make.exe -C C:\Lazarus\Lazarus.1.6.2-FPC.3.0.0\fpc\3.0.0\source\packages\fv -f Makefile
make.exe: Entering directory `C:/Lazarus/Lazarus.1.6.2-FPC.3.0.0/fpc/3.0.0/source/packages/fv'
Makefile:29: *** You need the GNU utils package to use this Makefile.  Stop.
make.exe: Leaving directory `C:/Lazarus/Lazarus.1.6.2-FPC.3.0.0/fpc/3.0.0/source/packages/fv'

EDIT: I have two FPC versions installed so no global path is used.
Title: Re: Free Vision: How do I get it?
Post by: Thaddy on November 17, 2016, 05:00:06 pm
The FPC path makes no difference if it is just complaining about the GNU utils. These are either there - and in the path - or they are not, You are using Windows, so:
Try installing mingw or cygwin and/or cygwin64 if you use a 64 bit version.
Title: Re: Free Vision: How do I get it?
Post by: wp on November 17, 2016, 05:31:43 pm
Ah ok. The lpi's are afaik committed by Florian for development purposes. But maybe better to file a bug, preferably with a patch.

Bug reported with patch (http://bugs.freepascal.org/view.php?id=30945)
Title: Re: Free Vision: How do I get it?
Post by: marcov on November 17, 2016, 05:56:05 pm

EDIT: I have two FPC versions installed so no global path is used.

Then add it to the local path, iow within the cmd.exe instantiation with the PATH command.
Title: Re: Free Vision: How do I get it?
Post by: garlar27 on November 24, 2016, 05:52:20 pm
Just in case, temporarily I've added the path to the FPC bin folder and tried again but I'm getting an error.
What am I doing wrong?
Quote
C:\Lazarus\Lazarus.1.6.2-FPC.3.0.0\fpc\3.0.0\bin\i386-win32>make.exe --debug -C C:\Lazarus\Lazarus.1.6.2-FPC.3.0.0\fpc\3.0.0\source\packages\fv
GNU Make 3.82
Built for i686-pc-mingw32
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
 File `default' does not exist.
   File `all' does not exist.
     File `fpmake.exe' does not exist.
    Must remake target `fpmake.exe'.
Invoking recipe from Makefile:2360 to update target `fpmake.exe'.
make.exe: Entering directory `C:/Lazarus/Lazarus.1.6.2-FPC.3.0.0/fpc/3.0.0/source/packages/fv'
C:/Lazarus/Lazarus.1.6.2-FPC.3.0.0/fpc/3.0.0/bin/i386-win32/ppc386.exe fpmake.pp -n -Fu../../rtl -Fu../../packages/paszlib -Fu../../packages/fcl-process -Fu../../packages/hash -Fu../../packages/libtar -Fu../../packages/fpmkunit
Fatal: Can't find unit system used by fpmake
Fatal: Compilation aborted
make.exe: *** [fpmake.exe] Error 1
make.exe: Leaving directory `C:/Lazarus/Lazarus.1.6.2-FPC.3.0.0/fpc/3.0.0/source/packages/fv'
Title: Re: Free Vision: How do I get it?
Post by: garlar27 on November 25, 2016, 06:56:25 pm
Well I changed the location and now the error has changed:

Quote
C:\Lazarus\Lazarus.1.6.2-FPC.3.0.0\fpc\3.0.0\source\packages\fv>make.exe --debug
GNU Make 3.82
Built for i686-pc-mingw32
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
 File `default' does not exist.
   File `all' does not exist.
     File `fpmake.exe' does not exist.
       File `fpmake.pp' does not exist.
      Must remake target `fpmake.pp'.
make.exe: *** No rule to make target `fpmake.pp', needed by `fpmake.exe'.  Stop.

C:\Lazarus\Lazarus.1.6.2-FPC.3.0.0\fpc\3.0.0\source\packages\fv>
Where is the rule to build fpmake.pp?
Title: Re: Free Vision: How do I get it?
Post by: garlar27 on November 25, 2016, 07:00:26 pm
Oops!!!
I Accidentally moved fpmake.pp  :-[
I still have the same error as before:
Quote
C:\Lazarus\Lazarus.1.6.2-FPC.3.0.0\fpc\3.0.0\source\packages\fv>make.exe --debug
GNU Make 3.82
Built for i686-pc-mingw32
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
 File `default' does not exist.
   File `all' does not exist.
     File `fpmake.exe' does not exist.
    Must remake target `fpmake.exe'.
Invoking recipe from Makefile:2360 to update target `fpmake.exe'.
C:/Lazarus/Lazarus.1.6.2-FPC.3.0.0/fpc/3.0.0/bin/i386-win32/ppc386.exe fpmake.pp -n -Fu../../rtl -Fu../../packages/paszlib -Fu../../packages/fcl-process -Fu../../packages/hash -Fu../../packages/libtar -Fu../../packages/fpmkunit
Fatal: Can't find unit system used by fpmake
Fatal: Compilation aborted
make.exe: *** [fpmake.exe] Error 1
Title: Re: Free Vision: How do I get it?
Post by: marcov on November 25, 2016, 08:31:19 pm
There should be no need for running make or fpmake at all, fv should be prepackaged in the "units" dir of FPC.

Title: Re: Free Vision: How do I get it?
Post by: garlar27 on November 25, 2016, 09:52:38 pm
It is there though I couldn't find fv.exe...  :-\
Title: Re: Free Vision: How do I get it?
Post by: marcov on November 25, 2016, 10:41:58 pm
fv is a library.

The textmode IDE is in ide/  and called "fp" as said in the second post in this thread

I don't know if Lazarus delivers its source, or that it got stripped. Note that building it with debugging is involved, you are probably better served by just downloading a complete standalone FPC install.
TinyPortal © 2005-2018