Compiling EMAN2 on Windows

1. Why don't I recommend Visual Studio 2003 as compiler for EMAN2 on WinXP?

Compile EMAN2 on Windows with Microsoft Visual Studio .NET 2003 may have these problems:
 * "fatal error C1204: Compiler limit: internal structure overflow". There is a solutions in the [http://www.boost.org/libs/python/docs/v2/faq.html#c1024 Boost Python FAQ] .
  * For libpyEMData2.cpp, comment out these functions: done_data() update() render_amp8() set_array_offsets() set_array_offsets() get_array_oddsets() and last three "__call__" functions.
  * For libpyUtils2.cpp, split this file to libpyUtils2.cpp and otherUtil.cpp.
NOTE - Removing the functions above will break EMAN2 in several important ways.  So It's better use Visual Studio 2005 to compile EMAN2.

2. Use cmake to generate Visual Studio 2005 solution:

3. The major trouble of compiling EMAN2 on Visual Studio 2005 come from the dependent library:

4. Actions before build:

5. Ignore specific library LIBC.lib

If you see this error message, follow the solution.

Problem: LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
Solution: right click project -> Properties -> Linker -> Input -> Ignore Specific Library -> LIBC.lib

6. After compilation

7. runtime libraries for EMAN2 GUI program

EMAN2/COMPILE_EMAN2_WINDOWS (last edited 2009-07-24 17:52:54 by bcm-10-134)