recoll的windows版本编译指南

1、编译环境

安装MSYS2环境,参考【MSYS2】MSYS2 安装指南_msys2安装-优快云博客https://blog.youkuaiyun.com/weixin_43219667/article/details/153396525

2、下载源码

https://www.recoll.org/recoll-1.43.7.tar.gz下载源码。

或者:

https://github.com/brianonn/recoll.git进行git clone。

3、编译步骤

3.1、解压

        在home目录执行tar -zxvf recoll-1.43.7.tar.gz

3.2、调整

        1)修改src/meson.build

# git diff meson.build
diff --git a/src/meson.build b/src/meson.build
index 5dc00caf..7471185f 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -29,7 +29,7 @@ project(
     version: '1.43.2', # VERSIONCOMMENT keep this here, used by setversion.sh
     # Note: follow_symlinks will be needed in the future but not supported by all the versions we
     # need at the moment
-    default_options: ['cpp_std=c++17', 'buildtype=debugoptimized',
+    default_options: ['cpp_std=c++17', 'buildtype=release',
                        #'follow_symlinks=true'
                      ],
     meson_version: '>=0.60',
@@ -51,6 +51,8 @@ cc = meson.get_compiler('c')
 libxml = dependency('libxml-2.0')
 libxslt =  dependency('libxslt')
 libz = dependency('zlib')
+libregex = dependency('regex')
+libshlwapi = cpp.find_library('shlwapi', required:true)
 if get_option('libmagic')
     libmagic = dependency('libmagic', required:false)
     # Libmagic has no pkgconfig data on older debian systems
@@ -72,6 +74,8 @@ if get_option('testmains') or get_option('python-module') or get_option('indexer
     librecolldeps += libxml
     librecolldeps += libxslt
     librecolldeps += libz
+    librecolldeps += libregex
+    librecolldeps += libshlwapi
     if get_option('libmagic')
         librecolldeps += libmagic
     endif
@@ -98,6 +102,10 @@ recoll_datadir = get_option('prefix') / get_option('datadir') / 'recoll'

 defineslist =     [
         '-DBUILDING_RECOLL',
+ 
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值