Recent

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

CandyMan30

  • New Member
  • *
  • Posts: 17
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: 2401
    • 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: 17
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: 2401
    • 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: 17
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: 2401
    • 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: 17
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: 17
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: 2020
  • 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.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
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: 1058
Re: Free Vision - FV - on MacOS
« Reply #10 on: September 11, 2022, 09:01:32 pm »

 

TinyPortal © 2005-2018