Giter Site home page Giter Site logo

Comments (15)

pijyoi avatar pijyoi commented on September 18, 2024

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.

 avatar commented on September 18, 2024

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.

pijyoi avatar pijyoi commented on September 18, 2024

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.

ulikoehler avatar ulikoehler commented on September 18, 2024

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.

 avatar commented on September 18, 2024

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.

hintjens avatar hintjens commented on September 18, 2024

@shancat regular builds on Windows would be awesome...

from czmq.

 avatar commented on September 18, 2024

@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.

hintjens avatar hintjens commented on September 18, 2024

@shancat neat... :)

from czmq.

pijyoi avatar pijyoi commented on September 18, 2024

No other package is needed. You just need to build the cross compiler.

from czmq.

ulikoehler avatar ulikoehler commented on September 18, 2024

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.

 avatar commented on September 18, 2024

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.

ulikoehler avatar ulikoehler commented on September 18, 2024

Absolutely :)

from czmq.

 avatar commented on September 18, 2024

@pijyoi finally finished downloading gcc. Did you do anything special
for libsodium?

from czmq.

pijyoi avatar pijyoi commented on September 18, 2024

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.

hintjens avatar hintjens commented on September 18, 2024

No progress on this; closing it.

from czmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.