![]() |
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-all-opensource-src-4.5.0/ export PATH=/c/msys/1.0/home/Stuart/qt-all-opensource-src-4.5.0/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-all-opensource-src-4.5.0\bin;C:\MinGW\bin cd sip-4.8-snapshot-20090311 c:\python26\python configure.py -p win32-g++ mingw32-make mingw32-make install cd PyQt-win-gpl-4.5-snapshot-20090311 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
OK, Python26 is not really redistributable unless target machine has (from some source) the VC++ redistributable dlls.
In preparation.
PISA will have been built when CCP4 was built (it is part of it).
cp ccp4_dir/src/pisa/pisa.exe ccp4mg_dir/ccp4_suite/bin
But we are still having to make some patches which we hope to agree with the PISA author Eugene Krissinel.
cp -a ccp4_dir/lib/data/monomers/ ccp4mg_dir/data/monomer_library
cp /c/msys/1.0/home/Stuart/qt-all-opensource-src-4.5.0/bin/*.dll ccp4mg_dir/lib cp -a /c/msys/1.0/home/Stuart/qt-all-opensource-src-4.5.0/plugins ccp4mg_dir/QtPlugins cp /c/GnuWin32/bin/*.dll ccp4mg_dir/lib cp ccp4mg_dir/pixie/bin/zlib1.dll ccp4mg_dir/lib make distrib