* * *

Author Topic: Free Vision: How do I get it?  (Read 4750 times)

garlar27

  • Sr. Member
  • ****
  • Posts: 488
Free Vision: How do I get it?
« 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.

dogriz

  • Jr. Member
  • **
  • Posts: 86
    • Tech blog - Delphi, Lazarus, Firebird, Windows, Linux, Android...
Re: Free Vision: How do I get it?
« Reply #1 on: November 17, 2016, 01:42:36 pm »
I guess you are thinking about fp?
FPC 3.0.3
Lazarus 1.6.5
Debian x86_64, arm

wp

  • Hero Member
  • *****
  • Posts: 3894
Re: Free Vision: How do I get it?
« Reply #2 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)
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5827
Re: Free Vision: How do I get it?
« Reply #3 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.

wp

  • Hero Member
  • *****
  • Posts: 3894
Re: Free Vision: How do I get it?
« Reply #4 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?
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5827
Re: Free Vision: How do I get it?
« Reply #5 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)

Thaddy

  • Hero Member
  • *****
  • Posts: 4650
Re: Free Vision: How do I get it?
« Reply #6 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?
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

wp

  • Hero Member
  • *****
  • Posts: 3894
Re: Free Vision: How do I get it?
« Reply #7 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?
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5827
Re: Free Vision: How do I get it?
« Reply #8 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?

wp

  • Hero Member
  • *****
  • Posts: 3894
Re: Free Vision: How do I get it?
« Reply #9 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.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Thaddy

  • Hero Member
  • *****
  • Posts: 4650
Re: Free Vision: How do I get it?
« Reply #10 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-)
« Last Edit: November 17, 2016, 03:39:00 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5827
Re: Free Vision: How do I get it?
« Reply #11 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.

garlar27

  • Sr. Member
  • ****
  • Posts: 488
Re: Free Vision: How do I get it?
« Reply #12 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.
« Last Edit: November 17, 2016, 04:53:00 pm by garlar27 »

Thaddy

  • Hero Member
  • *****
  • Posts: 4650
Re: Free Vision: How do I get it?
« Reply #13 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.
« Last Edit: November 17, 2016, 05:01:48 pm by Thaddy »
"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

wp

  • Hero Member
  • *****
  • Posts: 3894
Re: Free Vision: How do I get it?
« Reply #14 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)
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus