求有C编译环境大佬帮编译一个tiny-frpc项目

查看 27|回复 2
作者:aq-123   
   
原版的frpc.exe文件体积太大了, 达到了15M, 在github上看到一个tiny-frpc开源项目, 没有发布exe文件, 求路过大佬帮忙, 多谢
https://github.com/jifanchn/tiny-frpc
examples文件夹下面的如下两个文件, 应该可以生成exe
simple_client.c,  advanced_client.c

大佬, 文件, 项目

ComputerIdiot   
Github有个Actions可以直接编译吧?
二~二五年六月十九日
zx12315   
# Create a build directory
mkdir -p build && cd build
# Configure the build
cmake ..
# Build the library and examples
make
# To include CGO interoperability tests (recommended):
# Configure with BUILD_CGO_TESTS=ON. This will build the 'frpc_cgo_test' executable.
cmake -DBUILD_CGO_TESTS=ON ..
make
# Alternatively, to build only the CGO test target after configuration:
# make frpc_cgo_test
# Run all registered tests (including CGO tests if built)
ctest
# Alternatively, you can run the CGO test executable directly (if built):
# ./frpc_cgo_test (from the build directory)
# Or pass arguments:
# ./frpc_cgo_test --standard=true --visitor=true
# Install the library (optional)
make install
您需要登录后才可以回帖 登录 | 立即注册

返回顶部