I am trying to link uWebSocket library on my MacBook Pro 2021 M1 Pro and getting linker error
ld: warning: ignoring file /usr/local/lib/libuv.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /usr/local/lib/libssl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /usr/local/lib/libcrypto.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
why do nim trying to build application for macOS-x86_64?, I tried to specify cpu myself with --cpu:arm64 flag but result still the same
I don't think --cpu:arm64 does anything right now. https://github.com/nim-lang/Nim/issues/22808
It has been a while, but last time I wanted arm64 builds I think I had to check out the Nim repo on my M1 laptop and build it myself and then use that for compilation of the project I wanted to build as arm64.
How did you install Nim? Homebrew, choosenim, or built it yourself?
At some point I’ve had some similar flavor (x86_64 vs ARM64) of problems on my Mac M2 when I installed Nim with choosenim. They all went away when I cloned repo and compiled Nim on my own.