Skip to content

Commit

Permalink
Add README describing the windows build process
Browse files Browse the repository at this point in the history
  • Loading branch information
robwink committed Jul 23, 2016
1 parent 00f6c9f commit bc90bf3
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions davinci_build/windows/README.txt
@@ -0,0 +1,70 @@


If you're setting it up on a fresh windows system ...

Download and install MSYS2, follow the directions on the website for updating
pacman/packages
https://msys2.github.io/


good reference for pacman (and other package managers)
https://wiki.archlinux.org/index.php/Pacman/Rosetta

install the following (not all are strictly necessary but meh, and some
probably pull in helpful/necessary stuff):
=====================
git
subversion
make
gcc
python
python2
pkgfile (for finding what packages provide a given file)

libxml2-devel
libreadline-devel
libcurl-devel

# for 64 bit, otherwise replace x86_64 with i686
mingw-w64-x86_64-python2
mingw-w64-x86_64-python3

mingw-w64-x86_64-make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-clang
mingw-w64-x86_64-pkg-config


mingw-w64-x86_64-libxml2
mingw-w64-x86_64-libreadline
mingw-w64-x86_64-hdf5
mingw-w64-x86_64-curl

...


clone (or checkout) the repo
cd to davinci_build/windows/dependencies/cfitsio

./configure && make install

back to source root dir

./configure CXXFLAGS='-fpermissive' && make

If you're on a VM that can take 15 minutes

cd davinci_build/windows
./make_win.sh ../..

copy the exe dll and modules/ to the install directory
(ie the folder contained what would go in C:/Program Files/Davinci)

cd to parent of install directory and copy the nsi script there
run NSIS on the script (after changing the defines at the top)

Choose LZMA since it's the best compression




0 comments on commit bc90bf3

Please sign in to comment.