compiling program on M1 chip

compiling program on M1 chip

Postby plantenkennis » Tue Mar 22, 2022 9:28 am

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.
Kind regards,

René Koot
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands

Re: compiling program on M1 chip

Postby Antonio Linares » Tue Mar 22, 2022 11:22 am

Dear René,

We are going to check it

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: compiling program on M1 chip

Postby Antonio Linares » Tue Mar 22, 2022 5:14 pm

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 :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: compiling program on M1 chip

Postby goosfancito » Sun Dec 24, 2023 10:56 am

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.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 1 guest