CCP4 Molecular Graphics Documentation | ||
Build Instructions for CCP4MG on Windows |
Documentation Contents | Compiling Contents |
The Qt 4.5 binary downloads are now compiled with MSVC, which makes redistributing them harder.
So I compile Qt from source.
export QTDIR=/c/msys/1.0/home/Stuart/qt-everywhere-opensource-src-4.6.2/ export PATH=/c/msys/1.0/home/Stuart/qt-everywhere-opensource-src-4.6.2/bin:$PATH export QMAKESPEC=$QTDIR/mkspecs/win32-g++ ./configure.exe (Note the .exe is important) mingw32-make
Following http://diotavelli.net/PyQtWiki/BuildPyQt4Windows
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\msys\1.0\home\Stuart\qt-everywhere-opensource-src-4.6.2\bin;C:\MinGW\bin;C:\GnuWin32\bin cd sip-4.10.2 c:\python26\python configure.py -p win32-g++ mingw32-make YACC="bison -y" mingw32-make install cd PyQt-win-gpl-4.7.3 c:\python26\python configure.py -w mingw32-make mingw32-make install
mkdir ccp4mg_dir cd ccp4mg_dir CVS_RSH=ssh CVSROOT=mgdev@cvs.ccp4.ac.uk:/public/ccp4mg/MG_CVS cvs -z9 co -r Rel_2_B . cp -a ccp4_build clipper PATH=/c/Python26/:$QTDIR/bin:$PATH ./configure --extra-inc=/c/GnuWin32/include --extra-lib=/c/GnuWin32/lib make
tar zxvf ccp4mg-1.110.1-src.tar.gz cd ccp4mg-1.110.1 cp -a ccp4_build clipper PATH=/c/Python26/:$QTDIR/bin:$PATH ./configure --extra-inc=/c/GnuWin32/include --extra-lib=/c/GnuWin32/lib make
OK, Python26 is not really redistributable unless target machine has (from some source) the VC++ redistributable dlls.
PISA will have been built when CCP4 was built (it is part of it), unless you did make onlylib.
But we are still having to make some patches which we hope to agree with the PISA author Eugene Krissinel.
Download the patch: ccp4mg-2.5.1-pisa-patch.tar.gz
cd ccp4_dir/src/pisa/pisa tar zxvf path to/ccp4mg-2.5.1-pisa-patch.tar.gz rm -f pisa_interface.o pisa_view.o make cp pisa ccp4mg_dirccp4_suite/bin cp -a sbase ccp4mg_dirccp4_suite/share
Do not do this if you plan to use this copy of PISA in any other way from with CCP4MG. Make a separate copy in that instance.
cp -a ccp4_dir/lib/data/monomers/ ccp4mg_dir/data/monomer_library
cp /c/msys/1.0/home/Stuart/qt-everywhere-opensource-src-4.6.2/bin/*.dll ccp4mg_dir/lib cp -a /c/msys/1.0/home/Stuart/qt-everywhere-opensource-src-4.6.2/plugins ccp4mg_dir/QtPlugins cp /c/GnuWin32/bin/*.dll ccp4mg_dir/lib cp ccp4mg_dir/pixie/bin/zlib1.dll ccp4mg_dir/lib make distrib