Skip to content

Building on Windows

George Dietz edited this page Dec 4, 2013 · 14 revisions

updated instructions 12/4/13:

  1. run make_win_build.bat from within src folder (build will be in src/dist).
    (assumes extracted Bat To Exe is in C:\Program Files)

updated instructions 6/10/13:

  1. run make_win_build.bat from within src folder (build will be in src/dist).
  2. Convert to exe with Bat To Exe Converter (v1.6 e.g. www.f2ko.de) and get set icon from images directory (meta.ico)

Notes on Building for Windows

Use: python setup.py py2exe

Note that we can make the console disappear by editing the setup.py file to read:

setup(windows=[“meta_form.py”])

Instead of:

setup(console=[“meta_form.py”])

UPDATED INSTRUCTIONS FOR BUILDING ON WINDOWS: 4/16/2013
Note: Let OMADISTROOT refer to top-level build directory (i.e /dist)

  1. Create windows version of clean_build by doing
    cp clean_build clean_build.bat
  2. Run clean_build.bat by doing
    > clean_build
  3. type
    python gsetup_win.py py2exe --includes sip
  4. change to OMADISTROOT:
    cd dist
  5. Make R_dist directory
    mkdir R_dist
  6. Copy R 2.15 or what-have-you to from the local install to R_dist
  7. Copy sample_data directory to OMADISTROOT/sample_data
  8. Edit building_in_windows\LaunchOpenMetaAnalyst.bat so that R_dist/R-2.15.3 matches the name of the R folder you copied.
  9. Copy LaunchOpenMetaAnalyst.bat to OMADISTROOT
     > cp ..\building_in_windows\LaunchOpenMetaAnalyst.bat LaunchOpenMetaAnalyst.bat
    (assuming you are still in the \dist directory in the terminal
  10. Convert to exe with Bat To Exe Converter (v1.6 e.g. www.f2ko.de) and get set icon from images directory (meta.ico)
  11. Copy C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats to OMADISTROOT (the whole imageformats folder)

Clone this wiki locally