签到天数: 1284 天 [LV.10]以坛为家III
|
发表于 2023/12/6 22:03
|
显示全部楼层
|阅读模式
|Google Chrome 119.0.0.0 |Windows 10
尝试编译有http3 h3quic的kangle3.6报和pcre有关的错误
- /usr/bin/ld: CMakeFiles/kangle.dir/src/KReg.cpp.o: in function `KReg::~KReg()':
- KReg.cpp:(.text+0xed): undefined reference to `pcre_free'
- /usr/bin/ld: CMakeFiles/kangle.dir/src/KReg.cpp.o: in function `KReg::isPartialModel()':
- KReg.cpp:(.text+0x28c): undefined reference to `pcre_fullinfo'
- /usr/bin/ld: CMakeFiles/kangle.dir/src/KReg.cpp.o: in function `KReg::setModel(char const*, int, int)':
- KReg.cpp:(.text+0x33f): undefined reference to `pcre_free'
- /usr/bin/ld: KReg.cpp:(.text+0x396): undefined reference to `pcre_compile'
- /usr/bin/ld: KReg.cpp:(.text+0x3e5): undefined reference to `pcre_study'
- /usr/bin/ld: CMakeFiles/kangle.dir/src/KReg.cpp.o: in function `KReg::matchPartial(char const*, int, int, int*, int, int*, int)':
- KReg.cpp:(.text+0x649): undefined reference to `pcre_dfa_exec'
- /usr/bin/ld: CMakeFiles/kangle.dir/src/KReg.cpp.o: in function `KReg::matchNext(char const*, int, int, int*, int, int*, int)':
- KReg.cpp:(.text+0x6b3): undefined reference to `pcre_dfa_exec'
- /usr/bin/ld: CMakeFiles/kangle.dir/src/KReg.cpp.o: in function `KReg::match(char const*, int, int, int*, int)':
- KReg.cpp:(.text+0x7a2): undefined reference to `pcre_exec'
- /usr/bin/ld: CMakeFiles/kangle.dir/src/KReg.cpp.o: in function `KReg::freeStudy(pcre_extra*)':
- KReg.cpp:(.text._ZN4KReg9freeStudyEP10pcre_extra[_ZN4KReg9freeStudyEP10pcre_extra]+0x18): undefined reference to `pcre_free_study'
- /usr/bin/ld: CMakeFiles/kangle.dir/src/main.cpp.o: in function `Usage(bool)':
- main.cpp:(.text+0x12fa): undefined reference to `pcre_version'
- collect2: error: ld returned 1 exit status
- make[2]: *** [CMakeFiles/kangle.dir/build.make:3322: kangle] Error 1
- make[1]: *** [CMakeFiles/Makefile2:446: CMakeFiles/kangle.dir/all] Error 2
- make: *** [Makefile:156: all] Error 2
复制代码
按照官方的步骤make之后就这样,在网上搜了一圈,试了好多还是解决不了。不知道哪里出了问题。。系统是ubuntu
|
|