ropensci / rzmq

R package for ZMQ
https://docs.ropensci.org/rzmq
84 stars 30 forks source link

windows builds #7

Closed jeroen closed 7 years ago

jeroen commented 10 years ago

In order to provide windows builds on CRAN, you need to compile static libraries of libzmq for win32 and win64 and mail them to the CRAN maintainers. They can then deploy them on the windows build server to link when building the windows binary for rzmq.

See here for a script that I used to cross compile libprotobuf.a for the RProtoBuf package. You can also create libzmq.a on an actual windows machine obviously.

armstrtw commented 10 years ago

wget http://download.zeromq.org/zeromq-3.2.4.zip unzip zeromq-3.2.4.zip cd zeromq-3.2.4 ./configure --host=x86_64-w64-mingw32 --disable-shared ... ... checking whether C++ compiler supports -Wno-long-long... yes configure: error: Building static libraries is not supported under MinGW32

last time I looked into getting a win build working there were changes that needed to be made to the configure script.

DevKit is the preferred config for windows and instructions are here: http://zeromq.org/docs:windows-installations

if you have lots of configure-foo, then I'd love some help modifying the configure script to support static libs. I tried a few years ago, but I'm not a windows person, so I eventually gave up.

-Whit

jankatins commented 9 years ago

I got it to compile on windows: https://github.com/takluyver/IRkernel/issues/54 but only the shared lib. I found this instruction on the web for a static version: http://grokbase.com/t/zeromq/zeromq-dev/136sg6zk4s/build-zmq-as-static-library-under-mingw

jeroen commented 9 years ago

One other problem is that the windows version of R ships with an old version of gcc (4.6.3) that does not support C++11.

jankatins commented 9 years ago

There is now a windows build in #16

armstrtw commented 7 years ago

haha coming shortly.