Windows用户=============用于Windows的交叉编译protobuf 2.6.0的说明(类linux操作系统不需要外部protobuf库,因为它现在被捆绑在包中)在Linux 2上安装交叉编译工具链。下载源代码2。首先在本地Linux上安装protobuf(这样'protoc'命令就可以用于后面的交叉编译3。配置win64的运行配置脚本:configure——host=x86_64-w64-mingw32——prefix=/your_path/protobuf/x64——enable-shared=no——with-protoc=protoc LDFLAGS='-static-libgcc'然后执行make和make install 5命令。对于win32: configure——host=i686-w64-mingw32——prefix=/your_path/protobuf/i386——enable-shared=no——with-protoc=protoc LDFLAGS='-static-libgcc'或者,预构建的pb二进制文件可以从http://rglab.github.io/binaries/下载,一旦构建完成,类似地设置环境变量LIB_PROTOBUF。您可以在http://www.murdoch-sutherland.com/Rtools/上下载Rtools,它提供了构建R和R包的资源。您应该将Rtools的各个组件的路径添加到Path变量中。请在http://cran.r-project.org/doc/manuals/R-admin.html#The-Windows-toolset上阅读“Windows Toolset”附录以了解更多详细信息。