Coder Social home page Coder Social logo

Building on windows is hard about cpymad HOT 8 CLOSED

coldfix avatar coldfix commented on July 29, 2024
Building on windows is hard

from cpymad.

Comments (8)

carlkl avatar carlkl commented on July 29, 2024

You might consider using the mingwstatic builds as gcc compilers toolchains. These mingw-w64 based builds has been assembled and patched to simplify the creation of gcc based python extensions on Windows.

See https://bitbucket.org/carlkl/mingw-w64-for-python/downloads for download and https://bitbucket.org/carlkl/mingw-w64-for-python/downloads/mingwstatic-2014-11-readme.md for some explanations.

The latest winpython builds https://winpython.github.io integrates mingwstatic as default for both 32 and 64 bit.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

@carlkl thanks for your hint. I will look into your repositories and see if it will be useful. :)

from cpymad.

carlkl avatar carlkl commented on July 29, 2024

@coldfix, after some manual tweaking of the build process I got:
https://bitbucket.org/carlkl/mingw-w64-for-python/downloads/cpymad-0.10.1-cp27-none-win_amd64.whl
That is cpymad for python2.7 amd64 (64bit).

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

Hey @carlkl. If I may ask, are you interested in seeing 64bit binaries of this package on PyPI (have 32bit already) - or did you just stumble across this package by accident and decided to inform me about a convenient build platform?

I didn't really think this package is used by anyone else outside HIT at the moment, but if that turns out to be wrong, I might be more careful when breaking API, etc;)

from cpymad.

carlkl avatar carlkl commented on July 29, 2024

This package may be of interest for others in the accelerator community. BTW: I stupmbled upon it due to the HIT IPAC14 paper. The mentioned mingw-w64 builds assure correct MS CRT runtime useage and self contained pyd's without the need to deploy further gcc runtimes. These runtime DLLs are missing in your 32 bit distro.

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

Sounds great! I just tried to build cpymad/madx (using CMake and the gcc in the winpython installation on a 64bit system), but I ran into problems while linking MAD-X:

ld.exe: cannot find -lgcc_eh

Before I research how to solve this, maybe you had the same problem and can tell me?

from cpymad.

carlkl avatar carlkl commented on July 29, 2024

@coldfix coldfix, just remove -lgcc_eh from the command line given in

build/src/CMakeFiles/madxbin.dir/link.txt

from cpymad.

coldfix avatar coldfix commented on July 29, 2024

Closing this for now, distributing WinPython builds seems good enough.

from cpymad.

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.