Add A Comment:
Hi Peter, Sure, here are the steps I followed: Compiling OpenMM5.0 with Win7, Eclipse 3.8, MinGW and CMake =========================================================== 0) Ensure Eclipse 3.8.2 and CDT 8.1 is installed. 1) Install CMake GUI (2.8.10.2) 2) Install MinGW with C++ support (via mingw-get-inst-20120426.exe) 3) Ensure the system PATH contains C:\MinGW\bin (or wherever it was installed) 4) Unzip OpenMM5 to C:\temp\OpenMM5 5) Run the Cmake GUI a) Navigate “Where is the source code” to C:\temp\OpenMM5 b) Set “where to build” to C:\temp\build c) Say yes to create dir d) Set the generator to be “Eclipse CD4 - MinGW makefiles” e) Click configure f) Set CMAKE_SH to nothing g) Click configure h) Deselect OPENMM_BUILD_PYTHON_WRAPPERS i) Click configure j) Click generate 6) Open Eclipse 7) Import the project File-->Import-> General existing project into workspace 8) Right click on Project name (OpenMM@Build) in “Project Explorer” and click build Note the following changes will need to be made to the OpenMM code for it to compile: 1) Replace all instances of sprintf_s with snprintf 2) The CMakeCache.txt in the build directory needs to be modified so that CMAKE_CXX_FLAGS:STRING=-fpermissive Whilst, the above steps are a little ad-hoc, I was able to successfully build a debug version (i.e. using -g) and use the inbuild debugger interface in Eclipse to trace program execution; very useful.
MinGW is not an environment we support. That said, if you're able to get it working, we would definitely be interested to hear exactly what steps it required.
No Changes Have Been Made to This Item