Created
June 29, 2020 08:01
-
-
Save chroming/2cfe557c15d54e41ca9bc85f9b98c2b8 to your computer and use it in GitHub Desktop.
Build source with libarchive error in macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Cannot find source file: | |
| ... /libraries/cmake/source/libarchive/src/libarchive/archive_acl.c | |
| Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm | |
| .hpp .hxx .in .txx | |
| Call Stack (most recent call first): | |
| libraries/cmake/source/libarchive/CMakeLists.txt:182 (libarchiveMain) | |
| CMake Error at libraries/cmake/source/libarchive/CMakeLists.txt:136 (add_library): | |
| No SOURCES given to target: thirdparty_libarchive | |
| Call Stack (most recent call first): | |
| libraries/cmake/source/libarchive/CMakeLists.txt:182 (libarchiveMain) | |
| 解决: | |
| brew install libarchive | |
| 之后在CMakeLists里加上: | |
| set(LibArchive_INCLUDE_DIR "/usr/local/opt/libarchive/include") | |
| https://stackoverflow.com/questions/61799988/how-to-install-libarchive-on-macos-and-make-compiler-will-detect-it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment