You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so modify /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk in ./CMakeCache.txt
error CMake Error at GUI/CMakeLists.txt:67 (install): install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable target "Anime4KCPP_GUI".
X. finally build done, with an empty app is created😂 (tried another times with nothing generated...)
-- Found OpenMP_CXX: -fopenmp=libomp -Wno-unused-command-line-argument
-- Failed to complie has_filesystem.cpp, will use boost::filesystem instead of std::filesystem
Change Dir: /path/to/Anime4KCPP/tmp/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_a8706/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_a8706.dir/build.make CMakeFiles/cmTC_a8706.dir/build
Building CXX object CMakeFiles/cmTC_a8706.dir/has_filesystem.cpp.o
/opt/homebrew/opt/llvm/bin/clang++ -fopenmp=libomp -Wno-unused-command-line-argument -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -std=c++17 -MD -MT CMakeFiles/cmTC_a8706.dir/has_filesystem.cpp.o -MF CMakeFiles/cmTC_a8706.dir/has_filesystem.cpp.o.d -o CMakeFiles/cmTC_a8706.dir/has_filesystem.cpp.o -c /Users/tdt/Documents/Code/GitHub/Anime4KCPP/cmake/DetectionSample/has_filesystem.cpp
Linking CXX executable cmTC_a8706
/opt/homebrew/Cellar/cmake/3.22.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a8706.dir/link.txt --verbose=1
/opt/homebrew/opt/llvm/bin/clang++ -fopenmp=libomp -Wno-unused-command-line-argument -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_a8706.dir/has_filesystem.cpp.o -o cmTC_a8706
ld: library not found for -lomp
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_a8706] Error 1
make: *** [cmTC_a8706/fast] Error 2
-- Building information:
Build date: 2022-01-02
Build CLI ON
Build GUI OFF
Build VapourSynth plugin OFF
Build AviSynthPlus plugin OFF
Build C wrapper OFF
Build static C wrapper OFF
Build static core ON
Built-in kernel ON
Use Boost filesystem ON
Use Eigen3 OFF
Use legacy OpenCL API ON
Ryzen optimization OFF
Native optimization OFF
Other optimization for core OFF
Other optimization for other OFF
Enable arm neon OFF
Enable SSE4.2 OFF
Enable AVX OFF
Enable AVX2 OFF
Enable IPO OFF
Enable OpenCL ON
Enable CUDA OFF
Enable NCNN OFF
Enable OpenCV DNN OFF
Enable video ON
Enable preview GUI ON
Enable image IO ON
Disable parallel OFF
Parallel library OpenMP
-- Build type:
-- C++ compiler flags:
-fopenmp=libomp -Wno-unused-command-line-argument
-- CLI: libcurl found, enable web image download support.
-- Found OpenMP_CXX: -fopenmp=libomp -Wno-unused-command-line-argument
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_C_COMPILER
-- Build files have been written to: /path/to/Anime4KCPP
The text was updated successfully, but these errors were encountered:
ENV:
M1, macOS Monterey 12.1
Xcode 13.2.1
I know nothing about cmake and qt, but google knows🐶
/usr/local/opt/llvm/bin/clang++ is not a full path to an existing compiler tool.
which clang++
==>/opt/homebrew/opt/llvm/bin/clang++
that means
should be
Could not find a package configuration file provided by "Qt5" with any of the following names
add
-DCMAKE_PREFIX_PATH=$(brew --prefix qt5)
Failed to find "gl.h" in "/System/Library/Frameworks/OpenGL.framework/Headers;/System/Library/Frameworks/AGL.framework/Headers".
this problem seems related to
CMAKE_OSX_SYSROOT
, andCMAKE_OSX_SYSROOT
directory is not exists(picture 1).grep -r CMAKE_OSX_SYSROOT
== >./CMakeCache.txt:CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
but
MacOSX10.15.sdk
is valid for legacy Xcode.so modify
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
to/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
in./CMakeCache.txt
Could NOT find OpenMP
add these code before
if(APPLE)
inCMakeLists.txt
CMake Error at GUI/CMakeLists.txt:67 (install): install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable target "Anime4KCPP_GUI".
https://cmake.org/cmake/help/v3.9/policy/CMP0006.html
add
BUNDLE DESTINATION bin
inGUI/CMakeLists.txt
CMake Error in core/CMakeLists.txt: Imported target "OpenCL::OpenCL" includes non-existent path "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenCL.framework"
replace all
MacOSX10.15.sdk
toMacOSX.sdk
inCMakeCache.txt
(same as error 3)Could NOT find Threads (missing: Threads_FOUND)
find solution here
add code in the beginning of
CMakeLists.txt
X. finally build done, with an empty app is created😂 (tried another times with nothing generated...)
The text was updated successfully, but these errors were encountered: