Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Compilation on Mac
Re: Compilation on Mac [message #59466 is a reply to message #59464] Mon, 02 January 2023 17:04 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
brown wrote on Mon, 02 January 2023 09:24

my fork/sandbox is here: https://github.com/bfarago/ultimatepp/tree/IntegrationTest_o n_Mac_M2
Compare to the master: https://github.com/ultimatepp/ultimatepp/compare/master...bf arago:ultimatepp:IntegrationTest_on_Mac_M2
I did not committed all of my other local changes here, because I've plan to rebase to yours or master branch solution rather.
Happy new year!


In your fork I can see you introduced
 #include <sys/sysctl.h>

Are you trying to get cpu type? For what reasons? Building?

If that is the case then this should be sufficient? Eg
clang++ main.cpp -target arm64-apple-macos11

Starting point would be to create theide build method (*.bm) and test. I will try that later.

More info on (cross)building for arm cpu:
https:// stackoverflow.com/questions/65361672/build-apple-silicon-bin ary-on-intel-machine
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: clangd
Next Topic: Compilation on Linux +GUI,X11
Goto Forum:
  


Current Time: Wed Apr 30 05:24:32 CEST 2025

Total time taken to generate the page: 0.00787 seconds