Comments (15)
How about if you configure --disable-static?
Update: I have tried
./configure --with-libzmq=/usr/local --disable-static
and the compilation of the dynamic library works but not for czmq_selftest.exe
The problem is that the *_test() functions called by czmq_selftest.c are not exported in the DLL.
I am not sure exporting the *_test() functions is the right thing to do either.
from czmq.
Could you please try again with the latest czmq and zmq? Or could
someone tell me the build process for cross compiling with mingw32?
from czmq.
I use the toolchain from http://mxe.cc and I create a folder $HOME/local_mingw32.
for libzmq:
CPPFLAGS=-DFD_SETSIZE=1024 ./configure --host=i686-pc-mingw32 --with-libsodium=$HOME/local_mingw32 --prefix=$HOME/local_mingw32
for czmq
./configure --host=i686-pc-mingw32 --with-libzmq=$HOME/local_mingw32 --prefix=$HOME/local_mingw32
Sometimes, there are changes in the source code that break compilation with MinGW32.
Mostly they arise from conflating "Windows platform" with "MSVC compiler".
from czmq.
I think we need some kind of guide how to get MinGW+(C)ZMQ build working under wine, because the errors seem to occur somewhat frequently and it seems like most people (including me and Travis) are using pretty much Linux-only throughout the development process.
from czmq.
I'll test it now thanks @pijyoi
@ulikoehler if no one else wants to write it then I'll be happy to
whenever I'm free (I'm almost always free). Also I have a dual boot
setup with Windows 7 so I'll reboot into that once a week or so just to
make sure nothing is broken.
from czmq.
@shancat regular builds on Windows would be awesome...
from czmq.
@pijyoi which packages will I need? At the moment I'm running make gcc
but is there anything else I'll need before compiling
libsodium/zmq/czmq?
@hintjens I'll get started ASAP then :)
from czmq.
@shancat neat... :)
from czmq.
No other package is needed. You just need to build the cross compiler.
from czmq.
I can see two different approaches here:
- Cross-Compiling
- Running the compiler in wine
The first one would obviously be easier but I'm not entirely sure if it doesn't act different if run (pseudo-)natively on Windows/Wine -- In the past I've had some problems cross-compiling ARMv6L packages for the Raspberry Pi. I didn't really try to track it down, but at least in this case, the native-approach did a better job.
Do you have experience with mingw crosscompiling?
from czmq.
I have no experience crosscompiling or with Wine but I'm happy to learn.
I think we should, at the very least, incorporate a MinGW build into
the autobuild. I'm sure I've seen other projects do this so it shouldn't
be too hard.
Baby-steps, we'll see how that goes and if something crops up regarding
MinGW we'll see what we can do regarding Wine. Sound like a plan?
from czmq.
Absolutely :)
from czmq.
@pijyoi finally finished downloading gcc. Did you do anything special
for libsodium?
from czmq.
Libsodium builds cleanly with no changes. Just set prefix to local_mingw
like the rest. I believe the win32 binary distributed by libsodium is cross
compiled.
FWIW, czmq_selftest.exe runs without errors under wine. Lots of failures
for the zmq tests though. A lot of them are bind failures due to closing
and rebinding to the same port.
from czmq.
No progress on this; closing it.
from czmq.
Related Issues (20)
- Lingering broken TCP connections when using zproxy
- czmq bindiing jni should be deployed to maven central jcenter is now read only. HOT 1
- Tests on OSX? HOT 1
- Ios Build Fails Please check the log on IOS sdk 16.2 HOT 2
- zsock_events() segfaults if called too often HOT 4
- How to get peer PID with czmq? HOT 1
- Saving certificate to memory?
- An error occurs when the zsock_set_tcp_keepalive function is executed HOT 2
- ziflist crashes when there are 'alias' net devices HOT 1
- zpoller_wait() will fail if WiFi networks are switched or after Windows sleep and even rebuilding all sockets doesn't make it recover HOT 9
- No MSYS2 package HOT 2
- zloop allows calling start() again but timer removal fails then HOT 2
- Issue with libczmq-dev HOT 1
- Problem: czmq `make check` tests do not display properly in terminal HOT 1
- Problem: When zauth unable to load password file it uses zsys `info` instead of `warn`
- zloop: nonstop does not work as intended (EINTR breaks loop) HOT 2
- No QNX Compile Options for s_reload in ziflist.c HOT 1
- Problem:Dose XPub-XSub proxy support Curve/Plain authentication?
- linux czmq/src/zhash.c:892: void zhash_test(_Bool): Assertion `item' failed. HOT 2
- macOS test error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from czmq.