OpenCC icon indicating copy to clipboard operation
OpenCC copied to clipboard

CMake Error at src/CMakeLists.txt:155 (install): install TARGETS given target "marisa" which does not exist in this directory.

Open luoben4040 opened this issue 2 years ago • 2 comments

`[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`

luoben4040 avatar Nov 25 '23 12:11 luoben4040

me too. Any solution please?

kjhgfdsaas avatar Jul 08 '24 07:07 kjhgfdsaas

@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 大佬 ,求助~

lindeer avatar Jul 29 '25 13:07 lindeer