Organizing your Build PlatformWindows XP Pro SP3.0Microsoft Visual Studio Pro 2008Install and Set Visual Studio to use Visual C++ as default environment in MSVS 2008. Students can get free copies of MSVS 2008 and other developer tools with student login validation from the Microsoft site www.dreamspark.com.
UNIX COMMANDS
If you enjoy UNIX commands, would like to use them and do not want to install CYGWIN (which can be cumbersome) try these native Windows compiled GNU utility programs http://unxutils.sourceforge.net/
The attached file:
091207_Practical_Compiling_C_Toolkit_Projects_MSVS2008.ppt
shows how to install UnxUtils and set them into a directory on the PATH.
Programs in this set include tar and gunzip so you can open the source code files.
Step 1. Download NCBI C, C++ toolkit and thirdparty packages
Dowload the *.exe files - these are self-extracting archives for Windows. NCBI C toolkit:
ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/CURRENT
Third party packages: ftp://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools++/CURRENT/ThirdParty Note: the NCBI distribution of ThirdParty Packages had OLD stuff... like MySQL v3.x, which we are not going to use. Put these files to a local directory and unzip them.
Step 2. Build the NCBI C toolkit FIRST
Load the solution file
\ncbi_c--XXX_XX_200X\make\msvc_prj900\ncbi.sln
into MS Visual Studio 2008.
SET the BUILD Target as follows:
Select the Visual Studio BUILD Menu, and option
Your choices are:
DEBUG (This is the Visual Studio Default)
RELEASE (CHOOSE THIS ONE FOR STATIC LIBRARY EXECUTABLES)
DEBUG DLL (Dynamic Libraries in Debug Mode)
RELEASE DLL (Release Libraries in DLL Form)
Click Build -> Build all to compile everything with the RELEASE target settings.
Click Build -> Build all to compile everything with the DEBUG target settings. Run the install.bat script file to copy the *.lib and *.h files to their normal locations \ncbi_c--XXX_XX_200X\make\msvc_prj900\
BUILDING APPLICATIONS
The applications readseqs and demovib are compiled in the attached powerpoint. The slides show how to create a new build project, how to extract the proper libraries from the UNIX makefiles, and how to sort out any errors that occur with *.h files.
For this you need to download exactly the same source code used before:
readseq.tar.gz from the main course page attachments and
vibrant_demo.tar.gz from the Demovib page attachments.
|
TO BE COMPLETED:
BUILDING WITH CYGWIN (Unix Commands for Windows).
Cygwin is a Linux/Posix emulation layer running on Windows.
Install Cygwin from http://www.cygwin.com
|