Home » Developing U++ » U++ Developers corner » Compilation on Mac
Re: Compilation on Mac [message #59469 is a reply to message #59468] |
Tue, 03 January 2023 01:56   |
brown
Messages: 8 Registered: July 2015 Location: Budapest
|
Promising Member |
|
|
Thank you, it works with an earlier theide...
I got the point, added your branch as an assembly, using the default arch settings, then I got an error for crypto due to the different arch:
(): ld: warning: ignoring file /opt/homebrew/Cellar/openssl@3/3.0.7/lib/libcrypto.a,
building for macOS-x86_64 but attempting to link with file built for macOS-arm64
When I change the build config to add -target arm64-apple-macos11, then I get again the previous problem (sysctl related compiler error).
Therefore I add again the #include <sys/sysctl.h> onto your source tree, and the compilation + link gets success then. (no error, 32 warning)
Furtheremore the newly built "ide" app is running on m2:
% file ./ide
./ide: Mach-O 64-bit executable arm64
while the downloaded previous upp theide is x86
file ./theide
./theide: Mach-O 64-bit executable x86_64
There was an .so / lib problem popup regarding libClang with the new ide, also only an external debugger can be run ( lldb ) but internal gdb method is not working.
Obviously, I have to set the CLANG.bm correctly. by adding openssl include and lib as well.
I will soon retest my projects based on arm64 and the latest possible sources...
|
|
|
 |
|
Compilation on Mac
By: Novo on Fri, 14 October 2022 20:33
|
 |
|
Re: Compilation on Mac
By: brown on Sun, 01 January 2023 02:25
|
 |
|
Re: Compilation on Mac
By: fudadmin on Sun, 01 January 2023 16:54
|
 |
|
Re: Compilation on Mac
By: fudadmin on Mon, 02 January 2023 06:50
|
 |
|
Re: Compilation on Mac
By: brown on Mon, 02 January 2023 10:24
|
 |
|
Re: Compilation on Mac
By: fudadmin on Mon, 02 January 2023 16:21
|
 |
|
Re: Compilation on Mac
By: fudadmin on Mon, 02 January 2023 17:04
|
 |
|
Re: Compilation on Mac
By: brown on Mon, 02 January 2023 18:03
|
 |
|
Re: Compilation on Mac
By: fudadmin on Mon, 02 January 2023 18:51
|
 |
|
Re: Compilation on Mac
By: brown on Tue, 03 January 2023 01:56
|
 |
|
Re: Compilation on Mac
By: fudadmin on Tue, 03 January 2023 02:27
|
 |
|
Re: Compilation on Mac
By: fudadmin on Tue, 03 January 2023 05:59
|
Goto Forum:
Current Time: Wed Apr 30 02:22:06 CEST 2025
Total time taken to generate the page: 0.04511 seconds
|