nmm2d-win32-src
所属分类:数学计算
开发工具:C/C++
文件大小:581KB
下载次数:30
上传日期:2013-04-29 09:44:53
上 传 者:
tzl5555
说明: 石根华先生数值流型法计算程序代码,版权允许,可以修改和使用。
(Mr. Shi Genhua numerical flow pattern method, program code, copyright permission, you can modify and use.)
文件列表:
nmm-win (0, 2012-06-05)
nmm-win\CMakeLists.txt (526, 2012-06-05)
nmm-win\doc (0, 2012-06-05)
nmm-win\doc\figures (0, 2012-06-05)
nmm-win\doc\figures\A1.PS (4324, 1998-07-23)
nmm-win\doc\figures\A10.PS (25616, 1998-07-23)
nmm-win\doc\figures\A10B.PS (9911, 1998-07-23)
nmm-win\doc\figures\A10C.PS (9834, 1998-07-23)
nmm-win\doc\figures\A11.PS (13872, 1998-07-23)
nmm-win\doc\figures\A12.PS (15888, 1998-07-23)
nmm-win\doc\figures\A13.PS (10667, 1998-07-23)
nmm-win\doc\figures\A2.PS (4630, 1998-07-23)
nmm-win\doc\figures\A3.PS (5918, 1998-07-23)
nmm-win\doc\figures\A4.PS (8172, 1998-07-23)
nmm-win\doc\figures\A5.PS (7638, 1998-07-23)
nmm-win\doc\figures\A6.PS (8627, 1998-07-23)
nmm-win\doc\figures\A7.PS (7701, 1998-07-23)
nmm-win\doc\figures\A8.PS (2952, 1998-07-23)
nmm-win\doc\figures\A9.PS (9712, 1998-07-23)
nmm-win\doc\figures\B1.PS (4786, 1998-07-23)
nmm-win\doc\figures\B2.PS (5104, 1998-07-23)
nmm-win\doc\figures\B3.PS (6582, 1998-07-23)
nmm-win\doc\figures\B3R.PS (6593, 1998-07-23)
nmm-win\doc\figures\B4.PS (51848, 1998-07-23)
nmm-win\doc\figures\B5.PS (8485, 1998-07-23)
nmm-win\doc\figures\B5R.PS (8508, 1998-07-23)
nmm-win\doc\figures\C3.PS (6584, 1998-07-23)
nmm-win\doc\figures\C5.PS (8486, 1998-07-23)
nmm-win\doc\m00.pdf (194451, 2006-08-27)
nmm-win\doc\m01.pdf (361017, 2006-08-27)
nmm-win\examples (0, 2012-06-05)
nmm-win\examples\mc (0, 2012-06-05)
nmm-win\examples\mc\ff.c (6, 2012-06-05)
nmm-win\examples\mc\MC01 (305, 2002-05-31)
nmm-win\examples\mf (0, 2012-06-05)
nmm-win\examples\mf\CV01 (6040, 2002-10-20)
nmm-win\examples\mf\ff.c (14, 2012-06-05)
nmm-win\examples\mf\MF01 (117, 2002-06-04)
nmm-win\examples\mg (0, 2012-06-05)
nmm-win\examples\mg\ff.c (6, 2009-08-11)
... ...
GUIDE TO BUILDING NMM
========================================================================
This source codes of NMM (2D) uses CMake as the build system. This
guide will explain to you how to use CMake to build NMM executables
from source.
1. What is CMake?
-------------------
CMake is a cross-platform, open-source build system - or perhaps more
accurately a build configurator. It is a family of tools designed to
build, test and package software. CMake is used to control the software
compilation process using simple platform and compiler independent
configuration files. It generates native makefiles and workspaces that
can be used in the compiler environment of your choice.
2. Getting CMake
------------------
CMake is available from http://www.cmake.org (Resources -> Downloads).
You can get its sources, but there are precompiled binaries for all
platforms. Furthermore, if you are on a Linux system, chances are high
that your distributor offers a package for CMake. You need a CMake
version >= 2.6.
For Ubuntu, type the following in a console to install CMake:
> sudo apt-get install cmake-gui
3. Preparing the build environment
------------------------------------
You should now create a build directory for NMM somewhere outside
its sources. This is the directory where CMake will create the
build system for your chosen platform and compiler, and this is also
where the NMM executables will be compiled. This way, the NMM source
dir stays clean, and you can have multiple build directories all
working from the same source files.
Then the compiler should be prepared or installed, e.g. gcc
for Linux, Xcode for MacOS and Visual Studio for Windows.
4. Running CMake
------------------
Now start the program cmake-gui by either typing the name in a console
or selecting it from the start menu. In the field 'Where is the source
code' enter the path to the NMM source directory (the directory which
contains this file). In the field 'Where to build the binaries' enter
the path to the build directory you created in step 3.
Hit 'Configure'. A dialog will appear asking you to select a generator.
Choose the appropriate one for your platform and compiler. On Unix, you
most likely want to use 'Unix Makefiles'; for Visual Studio select the
appropriate version and platform (Win32 | Win***); on Apple use Xcode.
Click 'Finish'. CMake will now gather some information about your
build environment and then show a list of build options. You can adjust
the settings to your liking. Once you are satisfied, hit the button
'Configure' again and then click on 'Generate'. CMake will then create
the build system for you.
5. Building NMM
------------------
Go to your chosen build directory. CMake has generated a build system for
you. If you are using Visual Studio, you should find the file NMM_2D.sln.
Open it and compile the target 'BUILD_ALL'. Similarly you will find an
Xcode project to build NMM on MacOS. If you are using a Makefile generator,
then instead open a console and cd to your build directory, then call the
appropriate make program, e.g. on Linux type
> make
to start the build process.
6. Installing NMM
--------------------
Once the build is complete, you can optionally have the build system
copy the built executables and test data to a clean location, where you
can test the functions of NMM executables.
In Visual Studio, just select and build the target 'INSTALL'. This will
create the folder 'dist' inside your build directory and copy all the
required files there. For Makefile based generators, type:
> make install (or sudo make install, if root privileges are required)
You can change the install location by changing the variable
CMAKE_INSTALL_PREFIX in CMake.
近期下载者:
相关文件:
收藏者: