Я пытался установить и скомпилировать aseprite на mi MacBookPro с macOs Catalina 10.15.6. Я установил все необходимое для сборки, xcode, cmake, ninja, et c. Я также пропустил этап сборки skia, установив его прямо из GitHub и разархивировав сборку macOs в свой $ HOME / deps / skia. Это изображение показывает место установки. Организация папок
Затем я ввел следующие команды независимо друг от друга на моем терминале, используя zsh, Iterm2.
cd aseprite
mkdir build
cd build
cmake \
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk \
-DUSE_ALLEG4_BACKEND=OFF \
-DUSE_SKIA_BACKEND=ON \
-DSKIA_DIR=$HOME/deps/skia \
-DWITH_HarfBuzz=OFF \
-G Ninja \
..
ninja aseprite (Could not do this command as previous cmake stage fails)
имея в виду, что я изменил OSX_SYS ROOT на то место, где находится мой ma c os sdk, который находится в /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk Проблема в том, что это результат, который эта команда дает мне
simonb@MacBook-Pro-de-Simon build % cmake \
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 \
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk \
-DUSE_ALLEG4_BACKEND=OFF \
-DUSE_SKIA_BACKEND=ON \
-DSKIA_DIR=$HOME/deps/skia \
-DWITH_HarfBuzz=OFF \
-G Ninja \
..
CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
The OLD behavior for policy CMP0046 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Symbol prefix:
-- Could NOT find Threads (missing: Threads_FOUND)
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Adding -lm flag.
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Performing Test WEBP_HAVE_FLAG_SSE41
-- Performing Test WEBP_HAVE_FLAG_SSE41 - Failed
-- Performing Test WEBP_HAVE_FLAG_SSE41
-- Performing Test WEBP_HAVE_FLAG_SSE41 - Success
-- Performing Test WEBP_HAVE_FLAG_SSE2
-- Performing Test WEBP_HAVE_FLAG_SSE2 - Success
-- Performing Test WEBP_HAVE_FLAG_MIPS32
-- Performing Test WEBP_HAVE_FLAG_MIPS32 - Failed
-- Performing Test WEBP_HAVE_FLAG_MIPS32
-- Performing Test WEBP_HAVE_FLAG_MIPS32 - Failed
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2 - Failed
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2 - Failed
-- Performing Test HAS_COMPILE_FLAG
-- Performing Test HAS_COMPILE_FLAG - Success
-- Performing Test WEBP_HAVE_FLAG_NEON
-- Performing Test WEBP_HAVE_FLAG_NEON - Failed
-- Performing Test WEBP_HAVE_FLAG_NEON
-- Performing Test WEBP_HAVE_FLAG_NEON - Failed
-- Performing Test WEBP_HAVE_FLAG_MSA
-- Performing Test WEBP_HAVE_FLAG_MSA - Failed
-- Performing Test WEBP_HAVE_FLAG_MSA
-- Performing Test WEBP_HAVE_FLAG_MSA - Failed
-- Found GLUT: /System/Library/Frameworks/GLUT.framework
-- Performing Test HAS_NO_DEPRECATED
-- Performing Test HAS_NO_DEPRECATED - Success
-- curl version=[7.21.6]
-- LDAP_H not found CURL_DISABLE_LDAP set ON
CMake Warning (dev) at third_party/curl/CMakeLists.txt:562 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "HAVE_FCNTL_O_NONBLOCK" will no longer be
dereferenced when the policy is set to NEW. Since the policy is not set
the OLD behavior will be used.
Call Stack (most recent call first):
third_party/curl/CMakeLists.txt:664 (curl_internal_test)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at third_party/curl/CMakeLists.txt:594 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "HAVE_GLIBC_STRERROR_R_COMPILE" will no longer be
dereferenced when the policy is set to NEW. Since the policy is not set
the OLD behavior will be used.
Call Stack (most recent call first):
third_party/curl/CMakeLists.txt:673 (curl_internal_test_run)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at third_party/curl/CMake/CurlCheckCSourceCompiles.cmake:16 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "curl_cv_recv" will no longer be dereferenced when
the policy is set to NEW. Since the policy is not set the OLD behavior
will be used.
Call Stack (most recent call first):
third_party/curl/CMake/OtherTests.cmake:31 (curl_check_c_source_compiles)
third_party/curl/CMakeLists.txt:792 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at third_party/curl/CMake/OtherTests.cmake:89 (message):
Unable to link function recv
Call Stack (most recent call first):
third_party/curl/CMakeLists.txt:792 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/simonb/aseprite/build/CMakeFiles/CMakeOutput.log".
See also "/Users/simonb/aseprite/build/CMakeFiles/CMakeError.log".
Я весь день пытался решить эту проблему. Если кто-нибудь может помочь мне скомпилировать, это будет здорово!
Оба журнала вывода Cmake можно найти здесь: https://gist.github.com/NotVeryGoodAtCodingButOk/d929c2f0c76c8290cb98d6875f832104
Организация папок следующая образ