8000 libpinyin error · Issue #50 · etorth/mir2x · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

libpinyin error #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ouni666 opened this issue Mar 28, 2025 · 2 comments
Closed

libpinyin error #50

ouni666 opened this issue Mar 28, 2025 · 2 comments

Comments

@ouni666
Copy link
ouni666 commented Mar 28, 2025

-- Found libpinyin, version 2.6.0
fatal error: No tag describes '53771405af3aa70db8371e9d60bb60db27960be7'.
Try --always, or create some tags.

-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build signature: VENGINEERING-20250328082744
-- download https://github.com/slembcke/debugger.lua
-- downloaded debugger.lua, in /home/fang/mir2x/b/3rdparty/download/debugger
-- https://github.com/kikito/inspect.lua
-- downloaded inspect.lua, in /home/fang/mir2x/b/3rdparty/download/inspect
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found FLTK: /usr/lib/libfltk_images.so;/usr/lib/libfltk_forms.so;/usr/lib/libfltk_gl.so;/usr/lib/libfltk.so
-- SDL2 found: SDL2_INCLUDE_DIRS: /usr/include;/usr/include/SDL2, SDL2_LIBRARIES: SDL2::SDL2main;SDL2::SDL2
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Checking for module 'libpinyin'
-- Found libpinyin, version 2.6.0
致命错误:没有标签能描述 '53771405af3aa70db8371e9d60bb60db27960be7'。
尝试 --always,或者创建一些标签。
-- Configuring done (1.6s)
-- Generating done (0.1s)
-- Build files have been written to: /home/fang/mir2x/b

@etorth
Copy link
Owner
etorth commented Mar 28, 2025

apt-get install libpinyin-dev first.
then when running cmake, use -DMIR2X_BUILD_LIBPINYIN=OFF

@ouni666
Copy link
Author
ouni666 commented Mar 28, 2025

-DMIR2X_BUILD_LIBPINYIN=OFF

I noticed a syntax error on line 244 of the CMakeLists.txt: SET(COMMAND_GIT_TAG git describe --tag).

After correcting it to SET(COMMAND_GIT_TAG "git describe --tag"),

the fatal error No tag describes '53771405af3aa70db8371e9d60bb60db27960be7'. Try --always, or create some tags no longer appears. The libpinyin component should not have any issues.

Explanation of CMake Syntax Fix
In CMake, the SET command requires values with spaces or special characters to be enclosed in quotes. Omitting quotes causes the command to split the string into multiple arguments, leading to incorrect execution. Adding quotes ensures the entire git describe --tag command is treated as a single string, resolving the Git tag lookup failure.

@ouni666 ouni666 closed this as completed Apr 7, 2025
etorth added a commit that referenced this issue Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0