beltoforion / muparserx

A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more.
http://beltoforion.de/en/muparserx
BSD 2-Clause "Simplified" License
135 stars 60 forks source link

building muparerx dll on windows mingw #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to build muparserx for mingw using cross compilation (MXE)

For now; I had patch against current release to cross compile
Even the build exits with 0 status, that isn't working as I am building shared 
libs.

Now for muparser there is muParserDLL.h to deal with windows dll generation and 
very buid/makefile.mingw to ease the process

For muparserx there is no such thing and the existing makefile is ok with linux 
but not with windows. 

You can see [1], my patch is adding CMake build system just because it was easy 
for me to deal with shared, static, mingw, gcc etc..
Also the issue of using cpp98 is also addressed

If you are interested, I could contribute cmake build to muparserx and also 
patches to allow mingw compiler.

If changing to cmake doesn't sound good, then could you provide some help to 
make muparserx dll on windows using mingw

[1] https://github.com/rashadkm/mxe/blob/master/src/muparserx-1-cpp98.patch
[2] http://mxe.cc/

Original issue reported on code.google.com by rasha...@gmail.com on 15 Mar 2015 at 4:54

GoogleCodeExporter commented 9 years ago
Sorry but I will not support a prebuild binary versions of muparserx. Its too 
much of a hassle. The STL dependencies in the API make this impossible out of 
the box and i don't want to write a suitable wrapper. The cost/benefit ratio 
would be astronomically bad for me. Even on linux i would generally advise 
against building a shared library with STL dependencies in the API. This was 
done for muparser and it was a mistake i regret dearly. 

Original comment by ib...@gmx.info on 15 Mar 2015 at 8:53

GoogleCodeExporter commented 9 years ago
I dont understand what you mean by prebuilt binary version. mxe is a packaging 
effort for windows. Anything that works with mingw will ofcourse work with mxe.

There is nothing specific to be added to muparserx for MXE. just a mingw 
support is all that asked

Original comment by rasha...@gmail.com on 15 Mar 2015 at 9:07