socket.io-client-cpp ios 构建

585 篇文章 380 订阅 ¥49.90 ¥99.00
本文介绍了如何在iOS上构建socket.io-client-cpp,涉及构建Boost库,解决SSL编译问题,以及在模拟器上构建静态库的难点。过程中遇到了boost版本不适配、编译错误和SSL配置问题,最终通过调整构建脚本和依赖库成功运行了demo。
摘要由CSDN通过智能技术生成

socket.io-client-cpp ios 构建

从demo里获取到sioclient.a静态库
Use sioclient as static lib on iOS

  • There’s a target named sioclient in the Demo project, That is the exactly right config for buiding the sioclient as a static library on iOS. With the static library file libsioclient.a and two exported headers sio_client.h and sio_message.h, you won’t need to config anything again and again in your integrating projects.

依赖于boost,所以要交叉编译 boost库的ios版本
由于我的socket io的nodejs服务端是开了ssl的,关了,那么js的sample连不上,所以还是打算给socket io client 增加一个ssl的 sioclient_tls.a

demo 下 有ios demo ,首先构建boost ios

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值