Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
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

Crosscompile script #266

Closed
wants to merge 102 commits into from
Closed

Crosscompile script #266

wants to merge 102 commits into from

Conversation

@HuidaeCho
Copy link
Member

HuidaeCho commented Dec 21, 2019

This PR adds the cross-compile script I've been working on using MXE. It is a standalone shell script based on grass-build-scripts. Please test it. Set up MXE first (e.g., /opt/mxe) and from the root of GRASS

mswindows/crosscompile.sh --mxe=/opt/mxe

This script compiles GRASS twice (native for documents and x86_64-w64-mingw32) and creates grass79.bat that auto-detects Python 3 in PATH or suggests a manual change for portable GRASS with Python 3 on the same flash drive.

Currently, MXE packages are slightly outdated.

BTW, I tried to use the OSGeo4W and standalone installers, but both required admin rights to install. This script just packages everything into a ZIP file, so it can be extracted anywhere. Python 3 needs to be installed separately with the Add Python to PATH option.

HuidaeCho and others added 30 commits Jul 10, 2019
…rings, so forcing bytes here raises exceptions
@HuidaeCho

This comment has been minimized.

Copy link
Member Author

HuidaeCho commented Dec 21, 2019

Maybe, this script can be highly Linux distribution specific and may not be that portable (I mean the script itself, not its build)... Especially, configure lines. I'm thinking about creating a new GRASS package for MXE.

@HuidaeCho

This comment has been minimized.

Copy link
Member Author

HuidaeCho commented Dec 21, 2019

For those who are interested in testing the latest build of the master branch, grass79-x86_64-w64-mingw32-latest.zip (compile log).

Local installation (well, extraction)

  1. Extract this zip file to a local drive
  2. Install Python 3.8 (Check Add Python 3.8 to PATH, Uncheck for all users if not admin)
  3. Run grass\grass79.bat

Portable GRASS

  1. Extract this zip file to a USB stick
  2. Install Python 3.8 on the same USB stick (Add Python 3.8 to PATH doesn't make sense here)
  3. Modify GRASS_PYTHON in grass\grass79.bat to your Python path; Use %~d0 for the drive letter
  4. Run grass\grass79.bat
@HuidaeCho HuidaeCho self-assigned this Dec 21, 2019
@HuidaeCho HuidaeCho added the Windows label Dec 21, 2019
@HuidaeCho

This comment has been minimized.

Copy link
Member Author

HuidaeCho commented Dec 31, 2019

Oh! My bad.. I'll have to recreate this PR...

@HuidaeCho HuidaeCho closed this Dec 31, 2019
@HuidaeCho HuidaeCho deleted the HuidaeCho:crosscompile-script branch Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.