返回> 网站首页 

编译Apache subversion

yoours2024-10-09 20:11:38 阅读 1200

简介一边听听音乐,一边写写文章。

一、编译openssl-3.3.2

    1. 安装 ActivePerl

    https://www.activestate.com/products/perl/

    2. 下载nasm

    https://www.nasm.us/

    3. 打开准备编译环境

       a) 打开VS2019命令行,x86 Native Tools Command Prompt for VS 2019

        b) 增加配置搜索路径输入:

            set PATH=%PATH%;E:\Nasm;C:\Users\Administrator\AppData\Local\ActiveState\cache\bin

        c) 进入openssl目录创建编译信息

            cd openssl-openssl-3.3.2

            perl Configure VC-WIN32

        d) 编译

            nmake

            nmake install

    4. 其他

    python

    pip install regex


二、编译libexpat

    下载

    https://github.com/libexpat/libexpat

    libexpat-R_2_6_3.zip

    使用CMake GUI配置VS2019编译

    编译成功后,将expat头文件以及库文件拷贝至apr-util\xml\expat\lib


三、编译apr

    下载

    https://apr.apache.org/download.cgi

        apr-1.7.5-win32-src.zip

        apr-util-1.6.3-win32-src.zip

        apr-iconv-1.2.2-win32-src.zip

        在apr\include文件夹下找到apr.hw文件,以文本方式打开,找到宏定义“#define _WIN32_WINNT 0x0501”,将0x0501改为0x0600。

        使用CMake GUI配置VS2019编译


四、下载编译zlib

    zlib131.zip


五、下载sqlite无需编译

    sqlite-amalgamation-3460100.zip


六、编译serf

    下载

    https://serf.apache.org/download

    serf-1.3.10.zip

    安装环境依赖

    pip install scons -i https://mirrors.aliyun.com/pypi/simple/

    scons APR=..\apr APU=..\apr-util  OPENSSL=..\OpenSSL ZLIB=..\zlib-1.3.1


七、编译apache_subversion

    下载

    https://subversion.apache.org/source-code.html

    apache_subversion-1.14.3

    编译

    python gen-make.py -t vcproj --with-openssl=..\openssl-openssl-3.3.2 --with-zlib=..\deps\zlib-1.3.1 --with-apr=..\deps\apr --with-apr-util=..\deps\apr-util --with-apr-iconv=..\deps\apr-iconv --with-sqlite=..\deps\sqlite-amalgamation --with-serf=..\serf-1.3.10


微信小程序扫码登陆

文章评论

1200人参与,0条评论