Free Vision: How do I get it? lazarus / 65-FV-Textmode IDE ---------------------------------------------------------------------- garlar27 · 2016-11-17 12:23 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. ---------------------------------------------------------------------- dogriz · 2016-11-17 12:42 I guess you are thinking about fp? ---------------------------------------------------------------------- wp · 2016-11-17 13:19 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) ---------------------------------------------------------------------- marcov · 2016-11-17 13:28 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. ---------------------------------------------------------------------- wp · 2016-11-17 13:39 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? ---------------------------------------------------------------------- marcov · 2016-11-17 13:44 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) ---------------------------------------------------------------------- Thaddy · 2016-11-17 13:49 If FP builds, FV builds too, because FP relies on FV. And both do build. So what's the problem? ---------------------------------------------------------------------- wp · 2016-11-17 13:57 Quote from: marcov on November 17, 2016, 02:44:03 pmI 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? ---------------------------------------------------------------------- marcov · 2016-11-17 14:05 Quote from: wp on November 17, 2016, 02:57:12 pmQuote from: marcov on November 17, 2016, 02:44:03 pmI 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? ---------------------------------------------------------------------- wp · 2016-11-17 14:29 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. ---------------------------------------------------------------------- Thaddy · 2016-11-17 14:33 Quote from: marcov on November 17, 2016, 03:05:25 pmauch in Fixes? Tai  Vokietijos forume atsakymas? Normally a knock or two on your own head puts you back in the correct language mode ---------------------------------------------------------------------- marcov · 2016-11-17 15:24 Quote from: wp on November 17, 2016, 03:29:53 pmincludedir=../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. ---------------------------------------------------------------------- garlar27 · 2016-11-17 15:49 Thank you! Now another silly question: How do I build it? I've tried this but it didn't : QuoteC:\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. ---------------------------------------------------------------------- Thaddy · 2016-11-17 16:00 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. ---------------------------------------------------------------------- wp · 2016-11-17 16:31 Quote from: marcov on November 17, 2016, 04:24:50 pmAh 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) ---------------------------------------------------------------------- marcov · 2016-11-17 16:56 Quote from: garlar27 on November 17, 2016, 04:49:36 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. ---------------------------------------------------------------------- garlar27 · 2016-11-24 16:52 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? QuoteC:\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 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' ---------------------------------------------------------------------- garlar27 · 2016-11-25 17:56 Well I changed the location and now the error has changed: QuoteC:\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 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? ---------------------------------------------------------------------- garlar27 · 2016-11-25 18:00 Oops!!! I Accidentally moved fpmake.pp  I still have the same error as before: QuoteC:\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 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 ---------------------------------------------------------------------- marcov · 2016-11-25 19:31 There should be no need for running make or fpmake at all, fv should be prepackaged in the "units" dir of FPC. ---------------------------------------------------------------------- garlar27 · 2016-11-25 20:52 It is there though I couldn't find fv.exe... ---------------------------------------------------------------------- marcov · 2016-11-25 21:41 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.