Recent

Author Topic: fv on macOS M3  (Read 854 times)

bnl

  • New Member
  • *
  • Posts: 19
fv on macOS M3
« on: February 13, 2025, 08:56:32 am »
Hi,
I install Lazarus 3.8 with fpc 3.2.2 on my M3 Mac Air.
it runs  macOS Sequoia 15.3 (24D60).
I had a Lazarus project from say 5 year back - developed on an Intel Mac.
It compiles and works as it should.

I now try to compile the free vision test program.
Opening the project in Lazarus gives me
an error like (screenshot has all details)
Cannot find Edito sused by testapp .... ppu in wrong dir=/usr/local/lib/fpc/3.2.2/units/aarch64-darwin/fv/editors.tpu

and that is tru. I have
bnlair:examples bnl$ ls /usr/local/lib/fpc/3.2.2/units/aarch64-darwin/fv/editors.*
/usr/local/lib/fpc/3.2.2/units/aarch64-darwin/fv/editors.o   /usr/local/lib/fpc/3.2.2/units/aarch64-darwin/fv/editors.rsj
/usr/local/lib/fpc/3.2.2/units/aarch64-darwin/fv/editors.ppu

ie ppu and not tpu.

finding an old posting here points to https://github.com/elfmz/far2l/issues/1255#issuecomment-1042898940
which says

replace Makefile.fpc with ...
run fpcmake
run make

and it works (changing testuapp to testapp)
I get a testapp and a testapp.app.

./testapp
and
open testapp
works - but no mouse input (I saw that elewher - use the bundle)

open testapp.app - something blinks and disappears.

Still - I'd like to do something from within Lazarus.
How do I point it to the right directory?

I cannot find the editors.tpu

bnlair:fpc bnl$ pwd
/usr/local/lib/fpc

bnlair:fpc bnl$ find . -name editors.ppu
./3.2.2/units/aarch64-darwin/fv/editors.ppu
./3.2.2/units/i386-darwin/fv/editors.ppu
./3.2.2/units/x86_64-darwin/fv/editors.ppu

bnlair:fpc bnl$ find . -name editors.tpu


thanks
/Björn





« Last Edit: February 14, 2025, 05:50:46 pm by bnl »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12116
  • FPC developer.
Re: fv on macOS M3
« Reply #1 on: February 13, 2025, 10:43:46 am »
FPC never used TPU, so if you find TPU anywhere or in any message that is highly suspect.

Afaik the problem on Mac is that the universal interfaces have unit names that conflict with FV.

When I still used mac, I worked around that by moving the univint directory out of the unit dir, as I didn't use it.

In the next major version this will probably be done differently using namespaces.

Thaddy

  • Hero Member
  • *****
  • Posts: 16653
  • Kallstadt seems a good place to evict Trump to.
Re: fv on macOS M3
« Reply #2 on: February 13, 2025, 11:28:43 am »
The attachment it not safe, plz remove. If you want a serious answer.
The ping has a load. >:(
 Doesn.t fool me or my systems.
« Last Edit: February 13, 2025, 11:30:29 am by Thaddy »
But I am sure they don't want the Trumps back...

TRon

  • Hero Member
  • *****
  • Posts: 4154
Re: fv on macOS M3
« Reply #3 on: February 13, 2025, 11:36:52 am »
That's strange Thaddy.  I am only able to locate an over-excessive load of exif data, including video-card details such as tone reproduction curves, matrix columns etc. You know, the standard adobe/apple shite that consumes a ton of data.
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 16653
  • Kallstadt seems a good place to evict Trump to.
Re: fv on macOS M3
« Reply #4 on: February 13, 2025, 12:20:04 pm »
Well, it is not accepted by my defence systems, which I mostly wrote myself.
As a test i also used Edge for a change. Same result,
But I am sure they don't want the Trumps back...

TRon

  • Hero Member
  • *****
  • Posts: 4154
Re: fv on macOS M3
« Reply #5 on: February 13, 2025, 12:23:24 pm »
Does this attachment (exif stripped, -47kb) have any approval ?
Today is tomorrow's yesterday.

bnl

  • New Member
  • *
  • Posts: 19
Re: fv on macOS M3
« Reply #6 on: February 13, 2025, 01:46:17 pm »
hmm, the attachment is taken with shift-ctrl-command-4 and then marking the area of the window you see.
Taht was pasted to 'Preview' and then saved as a .png.
I don't see how that can trigger any malware programs

/Björn

bnl

  • New Member
  • *
  • Posts: 19
Re: fv on macOS M3
« Reply #7 on: February 13, 2025, 01:52:30 pm »
Oh, I got the message wrong. It says
Cannot find Editors used by testapp .... ppu in wrong dir=/usr/local/lib/fpc/3.2.2/units/aarch64-darwin/fv/editors.ppu

so it says ppu - and not tpu as I read it first.
And the editors.ppu exists in the named directory. But where should it be placed?

/Björn

bnl

  • New Member
  • *
  • Posts: 19
Re: fv on macOS M3
« Reply #8 on: February 13, 2025, 01:55:01 pm »
Can I remove the attachemnt only - or does that kil the post as well?
Or the thread.
Or should I delete the post and then repost without attachment?
/Björn

TRon

  • Hero Member
  • *****
  • Posts: 4154
Re: fv on macOS M3
« Reply #9 on: February 13, 2025, 08:38:55 pm »
Can I remove the attachemnt only - or does that kil the post as well?
The post can be edited. When doing so, underneath the message are the attachments to the post listed and you can opt to remove a particular attachment.

After having removed, save the message and the attachment should be gone.

afaik you did nothing wrong, it is just that the method you use seem to be adding a complete color-profile including detailed "video-card" and colour correction related information. In some ecosystems that is probably a (very) good thing to have, for simple screenshots perhaps a bit overkill. At least M$ seems to be staggering about it (or whatever software that seem to have triggered such a report such as mentioned by Thaddy).

PS: also note that you can simply copy the error messages from the IDE, which is a) readable (without the need for a graphical viewer: not everyone has a 20-20 eyesight), b) searchable and c) occupies less room on the forums. But please take that as a hint for next time (in case there is any).
« Last Edit: February 13, 2025, 08:48:24 pm by TRon »
Today is tomorrow's yesterday.

 

TinyPortal © 2005-2018