Recent

Author Topic: Free Vision - FV - on MacOS  (Read 729 times)

CandyMan30

  • New Member
  • *
  • Posts: 11
Free Vision - FV - on MacOS
« on: September 10, 2022, 10:33:53 am »
Has anyone tried to run a program written in Free Vision for Mac? Compiled correctly and running but not responding to the mouse and keyboard.

AlexTP

  • Hero Member
  • *****
  • Posts: 1960
    • UVviewsoft
Re: Free Vision - FV - on MacOS
« Reply #1 on: September 10, 2022, 10:43:01 am »
Did you run the 'application bundle' ("open MyApp.app") or the binary file (MyApp.app/Content/MacOS/...) ? Try the opposite.

CandyMan30

  • New Member
  • *
  • Posts: 11
Re: Free Vision - FV - on MacOS
« Reply #2 on: September 10, 2022, 11:03:12 am »
I run my program as binary file in terminal compiled for Darwin x64.

AlexTP

  • Hero Member
  • *****
  • Posts: 1960
    • UVviewsoft
Re: Free Vision - FV - on MacOS
« Reply #3 on: September 10, 2022, 11:08:06 am »
Try to run the 'application bundle', it helps?

CandyMan30

  • New Member
  • *
  • Posts: 11
Re: Free Vision - FV - on MacOS
« Reply #4 on: September 10, 2022, 11:56:32 am »
I run ppcx64 test.pas and success compile.

I tied run test with command in terminal (test is in "macOS HDD/Users/candyman/public"):

/Applications/test.app/Contents/MacOS/test

no such file or directory

AlexTP

  • Hero Member
  • *****
  • Posts: 1960
    • UVviewsoft
Re: Free Vision - FV - on MacOS
« Reply #5 on: September 10, 2022, 11:58:46 am »
No, you cannot run "/Applications/test.app" because you did not copy 'test.app' there. Make the 'test.app' - ie IDE must make it! IDE has the button 'Create application bundle' in the main tab of Project Options dialog.
« Last Edit: September 10, 2022, 12:15:41 pm by AlexTP »

CandyMan30

  • New Member
  • *
  • Posts: 11
Re: Free Vision - FV - on MacOS
« Reply #6 on: September 10, 2022, 03:14:54 pm »
I managed to compile in Lazarus but still cannot run with command "open project1.app"

Code: Pascal  [Select][+][-]
  1. program Project1;
  2. uses App;
  3. var
  4.   Demo:TApplication;
  5. begin
  6.   Demo.Init;
  7.   Demo.Run;
  8.   Demo.Done;
  9. end.
  10.  

I was able to start but there is no window, only the icon is on the bar.

CandyMan30

  • New Member
  • *
  • Posts: 11
Re: Free Vision - FV - on MacOS
« Reply #7 on: September 10, 2022, 10:10:42 pm »
Only binary file working but keyboard and mouse not responding.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1998
  • Former Delphi 1-7, 10.2 user
Re: Free Vision - FV - on macOS
« Reply #8 on: September 11, 2022, 01:29:42 am »
As Alex said, you need to open the application bundle, not the executable.

At the command line: > open myapp.app

From the GUI: Left-Click on myapp.app in Finder

All this assumes that you have created an application bundle from within Lazarus as Alex also said.

For more information, see the Wiki article macOS Application Bundle

The Wiki macOS Portal has a substantial amount of macOS programming information.
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 x86_64 Xcode 13.4
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 aarch64 Xcode 13.4

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1019
Re: Free Vision - FV - on MacOS
« Reply #9 on: September 11, 2022, 08:04:32 am »
The mouse not responding is known, and is fixed in trunk: https://gitlab.com/freepascal.org/fpc/source/-/issues/39683

The keyboard not responding is strange though, that should work (even if you launch the program directly from Terminal).

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1019
Re: Free Vision - FV - on MacOS
« Reply #10 on: September 11, 2022, 09:01:32 pm »

 

TinyPortal © 2005-2018