Dong

Results 8 comments of Dong

建议写个Windows编译的说明,折腾死我了。 用: `vcpkg install srpc ` 安装不行,编译报错。 用CMake Gui,好不容易创建好工程,编译通过,链接老是报错。 srpc.lib(rpc_message_srpc.obj) : error LNK2005: "public: int __cdecl google::protobuf::MessageLite::ByteSize(void)const " (?ByteSize@MessageLite@protobuf@google@@QEBAHXZ) 已经在 libprotobufd.lib(libprotobufd.dll) 中定义 环境是Win10, VS2019。 现在试试 dengjunplusplus 说的步骤,一步一步用vcpkg安装看看

> @ruoleng 你好,这个issue上面有具体的编译步骤[#62 (comment)](https://github.com/sogou/srpc/issues/62#issuecomment-829840853) ,麻烦参考下~ 参考了,后面用vcpkg安装成功了,但是tutorial编译失败(vcpkg安装后的srpc 里面 _bin 路径不对,老是无法将.proto生成对应的pb跟srpc消息源文件),又从vcpkg中卸载srpc。 最后还是手动编译安装,尝试修改srpc-config.cmake 文件里面的_bin路径,才成功的。 但是srpc_generator.exe 有个bug: **绝对路径下的 .proto 文件生成 client.pb_skeleton.cc 和 server.pb_skeleton.cc 会报错,看输出是将 输入的 绝对路径给添加到输出目录里面了。** 所以目前安装成功并正在使用的是:按照用 https://github.com/sogou/srpc/issues/62#issuecomment-829840853 的步骤 vcpkg安装了依赖项目(包括workflow),手动编译srpc项目。再手动设置tutorial的cmake-gui的依赖项目,没有用vcpkg中的,因为srpc是手动,用vcpkg安装的包( 带CMAKE_TOOLCHAIN_FILE)会找不到srpc(毕竟是手动安装的)。 中间还出现过手动编译后,cmake生成的 srpc-config.cmake 文件中的...

既然 https://dengxiaolong.com/caddy/zh/ 是v1的翻译,能否在开头说明一下,这个是v1的。V2的目前还在翻译中。 搜索到 该文档的时候以为是v2的,还在疑惑为啥跟英文不一致。

> I tried call_thunk with Visual Studio 2019 with some errors. May you try to build call_thunk with Visual Studio 2019? Thanks! Modify the "thunk_code_x64.cpp"file from ```cpp struct thunk_code ........

call_thunk::thunk thunk(obj, &TestClass::fun); 改为全局变量。 临时变量去到线程中就不可用了,注意线程安全。

请问,知道App上直接看摄像头的端口吗?内网穿透后想App看,但是一直失败

> * 在 Windows 上,没有指定平台就会使用默认平台 `windows`。 > * quickjs 只有 `windows` 平台比较特殊,是用 mingw 构建 lib 给 msvc 用,详细可以看 [msvc的quickjs运行似乎有问题,直接分发二进制是否可行 #3586](https://github.com/xmake-io/xmake-repo/issues/3586) > > 所以你应该使用 `xrepo install -p mingw quickjs` 或者 `add_requires("quickjs")`...

D:\xmake>xrepo install -p mingw quickjs error: checking for architecture ... x86_64 checking for mingw directory ... no error: target(working): toolchain not found! 不安装VS就算指定了用mingw 还是会报错。 本意是想在另外一台电脑编译好quickjs,但是另外电脑是非开发电脑,没有VS。工作电脑因为有加密系统,安装失败,才在另外电脑尝试的。 有这种情况的是比较少