TianZerL / Anime4KCPP

A high performance anime upscaler
MIT License
1.77k stars 139 forks source link

Building on Mac OS X (documentation) #80

Open reiyonsan opened 2 years ago

reiyonsan commented 2 years ago

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 commented 1 month ago

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 commented 1 month ago

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.