Skip to content
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

Use Msys2 for building Windows 32 and 64 bit builds #917

Closed
totaam opened this issue Jul 16, 2015 · 12 comments
Closed

Use Msys2 for building Windows 32 and 64 bit builds #917

totaam opened this issue Jul 16, 2015 · 12 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Jul 16, 2015

Issue migrated from trac ticket # 917

component: packaging | priority: minor | resolution: duplicate

2015-07-16 21:04:08: smo created the issue


I've been trying out MSYS2 after you mentioned it in another ticket so far it looks promising as most of the packages of stuff are built and quite up to date already.

You can get the msys2 installer from here https://msys2.github.io/

I'm currently trying to use the 32bit version on windows 7 for the purposes of building/packaging xpra

It seems it should be possible to do 64bit easily afterwards too.

@totaam
Copy link
Collaborator Author

totaam commented Jul 16, 2015

2015-07-16 21:04:22: smo changed priority from major to minor

@totaam
Copy link
Collaborator Author

totaam commented Jul 16, 2015

2015-07-16 21:18:03: smo commented


after following the instructions from the url above to install msys2 and update it you should be able to run these commands to install most of what we need.

There are some things missing and i'm hoping to make PKGBUILDS for them.

I've tried installing some of the python modules through easy_install some of them will install but others have issues for example like this [https://pastee.org/4cfq9] could be an issue with setuptools?

pacman -S mingw-w64-i686-python2-pygtk \
mingw-w64-i686-cython2 \
mingw-w64-i686-python2-numpy \
mingw-w64-i686-python2-Pillow \
mingw-w64-i686-ffmpeg \
mingw-w64-i686-libvpx \
mingw-w64-i686-libwebp \
mingw-w64-i686-ca-certificates \
subversion

easy_install pyasn1

Many other things get pulled in with these packages many python modules we still need but this should be a good start. We can probably find PKGBUILD files already for some of the missing things and tailor them to work with windows.

@totaam
Copy link
Collaborator Author

totaam commented Jul 16, 2015

2015-07-16 21:28:27: smo changed type from defect to enhancement

@totaam
Copy link
Collaborator Author

totaam commented Jul 16, 2015

2015-07-16 21:35:07: smo commented


Looks like there are some PKGBUILD files being maintained here specifically for MSYS2

[https://github.com/Alexpux/MSYS2-packages]

@totaam
Copy link
Collaborator Author

totaam commented Jul 16, 2015

2015-07-16 21:52:28: smo commented


What we probably want are mingw packages. This url may be more useful.

[https://github.com/Alexpux/MINGW-packages]

@totaam
Copy link
Collaborator Author

totaam commented Jul 17, 2015

2015-07-17 07:33:08: totaam commented


Some of my own MSYS2 notes:

  • python distutils patch: [https://www.ruby-forum.com/attachment/4841/cygwinccompiler.patch]
  • netifaces installed wrong egg name
  • easy install: pyasn1, zope.interface, numpy
  • by hand: lz4 (0.8.0), Cython, OpenGL, OpenGL_accelerate (which also used the wrong egg name)
  • pywin32: important but how? pip install wheel?
    Some C bits which need --prefix=/usr so the headers are found later:
  • x264: disable-thread (conflict with msvc thread lib with win32threads, pthread error otherwise..), building 32-bit only for now...
  • ffmpeg: needs diffutils
  • py2exe: no go?

The bigger problem:

  • running under msys gives: sys.platform=="msys"

@totaam
Copy link
Collaborator Author

totaam commented Jul 17, 2015

2015-07-17 21:20:46: smo commented


Okay I will work on making some PKGBUILD files for the things you have done by hand.

I think I remember the py2exe issue i'll let you know if I get it installed.

@totaam
Copy link
Collaborator Author

totaam commented May 14, 2016

2016-05-14 08:05:11: antoine commented


There are 3 tickets that should be consolidated into one: #917, #678 and #300

@totaam
Copy link
Collaborator Author

totaam commented Jul 12, 2016

2016-07-12 17:52:23: antoine commented


Milestone renamed

@totaam
Copy link
Collaborator Author

totaam commented Dec 30, 2016

2016-12-30 11:20:16: antoine changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Dec 30, 2016

2016-12-30 11:20:16: antoine set resolution to duplicate

@totaam
Copy link
Collaborator Author

totaam commented Dec 30, 2016

2016-12-30 11:20:16: antoine commented


Will follow up in #678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant