U++ framework
Do not panic. Ask here before giving up.

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: Sat Apr 25 23:37:33 GMT+2 2026

Total time taken to generate the page: 0.00711 seconds