-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
$ brew tap nuspell/nuspell
$ brew install nuspell
The above installs nuspell & icu4c, which is a "keg-only" Homebrew formula, meaning it is not symlinked into the Homebrew base prefix. This formula sets ICU_ROOT as it's calling cmake directly: https://github.com/nuspell/homebrew-nuspell/blob/master/Formula/nuspell.rb
$ luarocks install lua-nuspell
Installing https://luarocks.org/lua-nuspell-0.3alpha-1.src.rock
lua-nuspell 0.3alpha-1 depends on lua >= 5.1 (5.4-1 provided by VM)
Warning: unmatched variable LUA_LIBDIR_FILE
Warning: unmatched variable CMAKE_BUILD_TYPE
Warning: unmatched variable LUA_LIBDIR
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found the following ICU libraries:
-- uc (required)
-- data (required)
CMake Error at /opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Failed to find all ICU components (missing: ICU_LIBRARY) (found version
"70.1")
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/FindICU.cmake:335 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
/opt/homebrew/lib/cmake/nuspell/NuspellConfig.cmake:2 (find_dependency)
CMakeLists.txt:18 (find_package)
I can compile manually and avoid cmake via:
PKG_CONFIG_PATH=/opt/homebrew/Cellar/icu4c/*/lib/pkgconfig c++ -fPIC -shared -std=c++17 (pkg-config lua nuspell --libs --cflags | string split -n " ") -o nuspell.so src/nuspell.cxx
However that is not packer friendly.
Any suggestions here? I'm not really familiar with cmake.
Metadata
Metadata
Assignees
Labels
No labels