Unable to compile deepin-anything #13062
Replies: 2 comments 8 replies
-
|
You need to get all build dependencies before attempt to build. Use |
Beta Was this translation helpful? Give feedback.
-
|
I was able to compile it. But know I have this error: sudo journalctl -xe | grep anything sudo systemctl status deepin-anything-server.service |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I installed linux kerne 6.19.12 to my laptop using Deepin 25.1.0
I realized deepin-anything-dkms module was not compiled. So I downloaded deepin anything fron the git repo, installed dependencies and tried to compile. It is impossible to compile. It says libmount is nos available but it is.
dpkg -L libmount-dev
/.
/usr
/usr/include
/usr/include/libmount
/usr/include/libmount/libmount.h
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/mount.pc
/usr/share
/usr/share/doc
/usr/share/doc/libmount-dev
/usr/share/doc/libmount-dev/NEWS.Debian.gz
/usr/share/doc/libmount-dev/changelog.Debian.gz
/usr/share/doc/libmount-dev/changelog.gz
/usr/share/doc/libmount-dev/copyright
/usr/lib/x86_64-linux-gnu/libmount.so
make
make -C src all
make[1]: Entering directory '/home/xingzhi/Documents/git-repo/deepin-anything/src'
sed 's|@@Version@@|0.0|g' ../debian/deepin-anything-dkms.dkms.in | tee ../debian/deepin-anything-dkms.dkms
PACKAGE_VERSION="0.0"
PACKAGE_NAME="deepin-anything"
MAKE[0]="make -C ${kernel_source_dir} KBUILD_EXTMOD=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
CLEAN="make -C ${kernel_source_dir} KBUILD_EXTMOD=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
DEST_MODULE_LOCATION[0]="/updates/"
BUILT_MODULE_NAME[0]="vfs_monitor"
AUTOINSTALL="yes"
make -C library all
make[2]: Entering directory '/home/xingzhi/Documents/git-repo/deepin-anything/src/library'
mkdir -p bin/release
gcc -std=gnu99 -Wall -Wl,--no-undefined -D_GNU_SOURCE -Iinc -Iinc/index -I../../3rdparty/fsearch -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -shared -fPIC -fvisibility=hidden -O3 src/fs_buf.c src/resourceutil.c src/utils.c src/walkdir.c src/index/composite_str.c src/index/index_allfile.c src/index/index_allmem.c src/index/index.c src/index/index_utils.c src/chinese/pinyin.c ../../3rdparty/fsearch/thread_pool.c -lpthread -lglib-2.0 -lpcre2-8 -shared -Wl,-soname,libanything.so.1.0.0 --shared -o bin/release/libanything.so.1.0.0
src/utils.c:10:10: fatal error: libmount.h: No such file or directory
10 | #include <libmount.h>
| ^~~~~~~~~~~~
compilation terminated.
src/chinese/pinyin.c: In function ‘convert_all_pinyin’:
src/chinese/pinyin.c:126:21: warning: ‘strncat’ output may be truncated copying 1 byte from a string of length 6 [-Wstringop-truncation]
126 | strncat(first, buf, 1); // append the first char of word
| ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:42: release] Error 1
make[2]: Leaving directory '/home/xingzhi/Documents/git-repo/deepin-anything/src/library'
make[1]: *** [Makefile:6: all] Error 2
make[1]: Leaving directory '/home/xingzhi/Documents/git-repo/deepin-anything/src'
make: *** [Makefile:2: all] Error 2
Best regards,
Alejandro
Beta Was this translation helpful? Give feedback.
All reactions