CMake Error at src/CMakeLists.txt:155 (install): install TARGETS given target "marisa" which does not exist in this directory.
`[root@192-168-0-4 OpenCC]# make
mkdir -p build/rel
(cd build/rel; cmake
-DBUILD_DOCUMENTATION:BOOL=ON
-DENABLE_GTEST:BOOL=OFF
-DENABLE_BENCHMARK:BOOL=OFF
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr
../..)
-- The CXX compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Use bundled marisa library.
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error at src/CMakeLists.txt:155 (install):
install TARGETS given target "marisa" which does not exist in this
directory.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.5") -- Found PythonInterp: /usr/bin/python (found version "2.7.5") -- Configuring incomplete, errors occurred! See also "/root/OpenCC/build/rel/CMakeFiles/CMakeOutput.log". make: *** [build] Error 1`
me too. Any solution please?
@luoben4040 @kjhgfdsaas 你们的cmake版本是多少,我有两台arm机,相同的内核,一台编译无问题,另一台编译遇到相同的问题,匪夷所思:
$ uname -r
4.19.71-arm64-desktop
$ cmake --version
cmake version 3.26.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Use bundled marisa library.
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Found PythonInterp: /usr/bin/python (found version "2.7.16")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wesley/Work/projects/opencc-dart/src/build
# uname -r
4.19.71-arm64-desktop
# cmake --version
cmake version 3.10.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
# cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Use bundled marisa library.
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error at src/CMakeLists.txt:155 (install):
install TARGETS given target "marisa" which does not exist in this
directory.
-- Found PythonInterp: /usr/bin/python (found version "2.7.17")
-- Configuring incomplete, errors occurred!
See also "/workspace/lib-src/build/CMakeFiles/CMakeOutput.log".
想升级cmake,非常困难 @BYVoid 大佬 ,求助~