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

Building on Mac OS X (documentation) #80

Open
reiyonsan opened this issue Oct 8, 2021 · 2 comments
Open

Building on Mac OS X (documentation) #80

reiyonsan opened this issue Oct 8, 2021 · 2 comments

Comments

@reiyonsan
Copy link

On Mac OS X (Big Sur 11.5.2) the homebrew (with the M1 chip) installed versions of llvm and qt are located at /opt/homebrew/opt/ instead of /usr/local/opt/, thus some lines are different from those in the documentation

# For compilers to find qt you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/qt/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/qt/include"

# For pkg-config to find qt you may need to set:
  export PKG_CONFIG_PATH="/opt/homebrew/opt/qt/lib/pkgconfig"

and

 # in repo's root
 cmake -DCMAKE_C_COMPILER="/opt/homebrew/opt/llvm/bin/clang" -DCMAKE_CXX_COMPILER="/opt/homebrew/opt/llvm/bin/clang++" .
@Lemonadel
Copy link

You are my hero. I was looking for this answer after following step by step the instruction and hitting my head with
"CMake Error at CMakeLists.txt:2 (project):
The CMAKE_CXX_COMPILER:

/usr/local/opt/llvm/bin/clang++

is not a full path to an existing compiler tool"

Why it's still not fixed in tutorial ?! It's 2024 !!! at:
https://github.com/TianZerL/Anime4KCPP/wiki/Building

@TianZerL
Copy link
Owner

TianZerL commented May 2, 2024

Why it's still not fixed in tutorial ?! It's 2024 !!! at: https://github.com/TianZerL/Anime4KCPP/wiki/Building

@Lemonadel
Because the part compiled on Mac was not written by me, I only referenced it from the contributors, and I cannot test it.

In addition, I am developing a new version that is almost completely rewritten. You can try compiling the v3-dev branch without any dependencies that require special configuration.

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

3 participants