New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: cross-compiling czmq with fails #819
Comments
I just fixed up some issues in the VS builds. One of them might have been causing the There remain two unresolved externals from the test build remaining in the VS builds. I can never seem to locate where the self-tests are exported.
Notice however that the second error is on extern volatile uint64_t zsys_allocs; Apparently |
The Sadly your pull request didn't fix the |
I've patched the VS unresolved externals mentioned above, see #821. I don't see anything wrong with |
I got a bit further in the compilation, past the dllimport error: CFLAGS=-DLIBCZMQ_EXPORTS PKG_CONFIG_PATH_i686_pc_mingw32=$HOME/mingw32/lib/pkgconfig ./configure --prefix=$HOME/mingw32 --host=i686-pc-mingw32 According to czmq_prelude.h, nowadays FD_SETSIZE is automatically set to 1024, so we no longer need to include it in CFLAGS. |
Apart from fixing some warnings in ziflist.c, two more flags are needed before the ./configure line. Not sure why these aren't automatic anymore. |
@pijyoi that is just awfully complicated :( If I fix the warnings in
Can you confirm this error or does czmq compile correctly with your configure modifications. |
Yes, I got the same. There's another comment I left about the extra flags
|
If I extend the LDFLAGS even further, it finally compiles:
|
I thought master had since been patched so that LDFLAGS was no longer But even before the patch, the libs I need to add were only ws2_32 and zmq.
|
I guess this is due to the different hosts |
@pijyoi are you currently able to cross compile libzmq with
|
Yes, libzmq master compiles nicely. For CZMQ, it's: The __USE_MINGW_ANSI_STDIO allows the compilation to not warn (and fail) On Wed, Nov 26, 2014 at 8:09 PM, Kevin Sapper notifications@github.com
|
Looking at libtool, it has the following: pic_flag = " -DDLL_EXPORT -DPIC" commit 5dc41fe dated 2013-04-08 changed testing against DLL_EXPORT to testing against LIBCZMQ_EXPORTS. If the current behaviour is surprising for the unwary, perhaps we could do something like |
Hi,
when I cross-compile czmq with MXE to mingw32 the compilation fails.
I use the following setup to configure czmq. The libzmq build is at
~/workspace/zeromq/cross_x86_64
This is the result when I run make now.
The text was updated successfully, but these errors were encountered: