TexasSolver icon indicating copy to clipboard operation
TexasSolver copied to clipboard

Support for Mac M1?

Open Andrewzhang217 opened this issue 2 years ago • 8 comments

Hi, has console version been tested on Mac with M1 chip? It seems that it can not build on my machine with some linking errors

Andrewzhang217 avatar Aug 27 '22 08:08 Andrewzhang217

Hi, has console version been tested on Mac with M1 chip? It seems that it can not build on my machine with some linking errors

Actually no, I don't have an target machine, If you are interested, you can try compile from source.

bupticybee avatar Aug 29 '22 03:08 bupticybee

Hi, has console version been tested on Mac with M1 chip? It seems that it can not build on my machine with some linking errors

Actually no, I don't have an target machine, If you are interested, you can try compile from source.

Thank you for your reply! I was actually compiling from the source code on console branch and it seems that it has some issues with fmt.h and could not build. At first, it has issues with omp.h as well but I think omp is not extensively used in your code base so I guess that one does not matter. image

Andrewzhang217 avatar Aug 29 '22 17:08 Andrewzhang217

Hi, has console version been tested on Mac with M1 chip? It seems that it can not build on my machine with some linking errors

Actually no, I don't have an target machine, If you are interested, you can try compile from source.

Thank you for your reply! I was actually compiling from the source code on console branch and it seems that it has some issues with fmt.h and could not build. At first, it has issues with omp.h as well but I think omp is not extensively used in your code base so I guess that one does not matter. image

Actually, omp is used, it's multi thread feature is core to this program. So I would suggest use compiler that supports omp to compile the program.

bupticybee avatar Aug 30 '22 07:08 bupticybee

Has anyone managed to build this on ARM64/M1 yet?

darrenmhill avatar Sep 27 '22 23:09 darrenmhill

Got it built, here's what I had to do:

  • Install llvm through brew
  • Tell cmake to use that:
export CC=/opt/homebrew/opt/llvm/bin/clang
export CXX=/opt/homebrew/opt/llvm/bin/clang++
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
  • Tell it where to find the standard lib:
export LIBRARY_PATH="$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"
  • cmake -> make

imre-kerr avatar Nov 10 '22 21:11 imre-kerr

Has anyone managed to build this on ARM64/M1 yet?

You can try to solve your problem the way @imre-kerr did.

bupticybee avatar Nov 14 '22 04:11 bupticybee

It would be nice to have a universal mac binary distributed (as well as a fresh 0.2.1 release). I see the github workflow only supports an AppImage?

Tokarak avatar Jan 23 '24 20:01 Tokarak

It would be nice to have a universal mac binary distributed (as well as a fresh 0.2.1 release). I see the github workflow only supports an AppImage?

But I don't have an mac M1 machine.

bupticybee avatar Jan 24 '24 01:01 bupticybee