Page 1 of 1

compiling program on M1 chip

PostPosted: Tue Mar 22, 2022 9:28 am
by plantenkennis
Hello,
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:
Code: Select all  Expand view

xcrun: error: unable to load libxcrun (dlopen(/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib, 0x0005): tried: '/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)).
 

How can I build a program on a M1 chip.

Re: compiling program on M1 chip

PostPosted: Tue Mar 22, 2022 11:22 am
by Antonio Linares
Dear René,

We are going to check it

Is there a chance that you could provide me remote access to your M1 mac ?

Re: compiling program on M1 chip

PostPosted: Tue Mar 22, 2022 5:14 pm
by Antonio Linares
Dear Rene,

It seems as you restored xcode from Time Machine, thats why it does not work as it is, and a new xcode installation is required (M1 architecture is arm)

Once finished, we will rebuild Harbour and FiveMac and it should be working fine again :)

Re: compiling program on M1 chip

PostPosted: Sun Dec 24, 2023 10:56 am
by goosfancito
plantenkennis wrote:Hello,
I have bought a new laptop with a M1-chip. Now when I run 'make' I get the following error:
Code: Select all  Expand view

xcrun: error: unable to load libxcrun (dlopen(/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib, 0x0005): tried: '/Applications/Xcode.app/Contents/Developer/usr/lib/libxcrun.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libxcrun.dylib' (no such file)).
 

How can I build a program on a M1 chip.


Hello Rene, I want to communicate with you that you are developing in mac and fivewin, my email is gusmavf at gmail dot com. thanks.