Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support macos #28

Open
pinventado opened this issue Aug 14, 2020 · 0 comments
Open

support macos #28

pinventado opened this issue Aug 14, 2020 · 0 comments

Comments

@pinventado
Copy link
Member

pinventado commented Aug 14, 2020

So far, here are steps we might need to do to support Mac

  1. Install XQuartz https://www.xquartz.org/
  2. Also install linux packages
    1. brew install coreutils
    2. brew install llvm (takes forever)
      1. ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
      2. ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"
  3. Install googletest
    git clone https://github.com/google/googletest
    cd googletest
    mkdir build
    cd build
    cmake .. -DCMAKE_CXX_STANDARD=17
    make
    make install
  4. Change makefiles. Can we add/remove flags depending on the OS? Add these for Mac but not for Linux?
    1. Compilation: add -lm -I/opt/X11/include -lpthread -lX11 -lstdc++ -I/usr/X11R6/include -L/usr/X11R6/lib
    2. unittest: add -lm -lpthread -lX11 -I/usr/X11R6/include -L/usr/X11R6/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant