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-1042898940which 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