Feature Request #2351
building of win32 executable for nml
Status: | Closed | Start date: | 2011-02-22 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | yexo | % Done: | 100% | |
Category: | - | |||
Target version: | - |
Description
Basic steps to produce a binary executable:
- Install wine
- Install python win32 under wine. Run windows install from http://www.python.org/getit/
- Install PIL under wine. Run windows install from http://www.pythonware.com/products/pil/
- Install ply under wine. Download package from http://www.dabeaz.com/ply/, extract, change to that directory, run: wine "C:\\Python27\\python.exe" setup.py install
- Install cxfreeze under windw. Run windows installer from http://cx-freeze.sourceforge.net/
- Checkout nml, switch to directory, run: wine "C:\\Python27\\python.exe" "C:\\Python27\\Scripts\\cxfreeze" nmlc
The executable nmlc.exe and a few other files will appear in the dist/ directory. This can be changed by adding "--target-dir <directory>" to the last command.
Associated revisions
Feature #2351: build static windows executable (works without python, pil any ply installed)
Feature #2351: build static windows executable (works without python, pil any ply installed)
History
#1 Updated by Ammler about 10 years ago
- Project changed from DevZone Version 2 to NewGRF Meta Language
- Assignee set to Ammler
this should be able to make with nml build script already
#2 Updated by Ammler about 10 years ago
Yexo:
wine msiexec /i python-2.7.1.msi /qn <- install python without gui
#3 Updated by Ammler about 10 years ago
fork http://hg.openttdcoop.org/nml-wine does create a wine, please pull it or give me a go to push :-)
#4 Updated by Ammler about 10 years ago
- Assignee changed from Ammler to yexo
#5 Updated by Ammler about 10 years ago
howto for building with X-Server:
http://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#Building_a_package.2C_which_needs_an_X-Server_during_build
#6 Updated by Ammler about 10 years ago
- % Done changed from 0 to 90
build scripts are done, the included python.dll does double the archive size. :-)
currently, we build it with pythonw.exe, if that is wrong, please tell and we use python.exe with the X-Server hack above...
if all fine, please close this ;-)
Edit: maybe we should make different packages
nmlc with different requirements:
- nmlc only (some kBs)
- nmlc with pil and ply (1.5 MB)
- nmlc with pil, ply and python (2.5 MB)
#7 Updated by Ammler about 10 years ago
got following error as I tried to run regression tests with nmlc.exe
Error: (IOError) "cannot identify image file". Command: ['..\\..\\nml-r1298-windows-win32\\nmlc.exe', '006_vehicle.nml'] Location: File "C:\Python27\lib\site-packages\PIL\Image.py", line 1980, in op
#8 Updated by Ammler about 10 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
seems like it is a error for pcx only
we consider nmlc.exe working ;-)