[go: up one dir, main page]

Menu

Tree [37521f] alphar_refactor / dev /
 History

HTTPS access


File Date Author Commit
 TTSE 2015-07-07 Jorrit Wronski Jorrit Wronski [f019ce] Working on the new TTSE plots
 Tickets 2015-06-30 Jorrit Wronski Jorrit Wronski [842104] More process drawings
 buildbot 2015-10-30 Jorrit Wronski Jorrit Wronski [2e78d4] Activated the old doc builder again, the exampl...
 cmake 2015-06-29 Ian Bell Ian Bell [bf423b] Update R finder for linux
 codelite 2015-04-04 Ian Bell Ian Bell [a3bbe1] Added IF97 to codelite project
 environmental_data_from_DTU 2014-05-14 Ian bell Ian bell [b3847c] Initial commit for v5, but this time with the r...
 fitter 2014-05-14 Ian bell Ian bell [b3847c] Initial commit for v5, but this time with the r...
 fluids 2015-10-28 Ian Bell Ian Bell [8f24af] Remove space from R13I1 CAS #
 incompressible_liquids 2015-09-15 Jorrit Wronski Jorrit Wronski [a19729] Transposed MITSW data matrices, see #775
 mixtures 2015-01-27 Ian Bell Ian Bell [000b14] betaV and gammaT were entered backwards into mi...
 pseudo-pure 2014-05-14 Ian bell Ian bell [b3847c] Initial commit for v5, but this time with the r...
 scripts 2015-09-02 Ian Bell Ian Bell [066d62] Fix path to install_root
 README.md 2014-06-30 Ian Bell Ian Bell [748f5f] Added some CMake docs
 clean_up_json.py 2014-08-22 Ian Bell Ian Bell [69bbdc] Reimplemented critical region splines all the w...
 generate_headers.py 2015-06-19 Ian Bell Ian Bell [f1037d] Still compile properly if git is not available ...
 genetic.py 2014-12-02 Ian Bell Ian Bell [b0b491] Update PVT ancillary fitter to use molar densities
 inject_melting_curves.py 2014-06-09 Ian Bell Ian Bell [1fd88a] Updated a few melting lines
 package_json.py 2014-06-10 Ian Bell Ian Bell [e34cd9] Added surface tension for fluids covered in Mul...

Read Me

Building

There are a number of ways to build the library:

Directly with Make

There is a non-windows makefile in the wrappers/SharedLibrary that can be used to make the library.

With CMAKE

The platform independent cmake program can be used. In using cmake, CoolProp uses the standard procedure:

1) Make a build directory and cd to build
2) cmake ..
3) make
4) make

Although step 1 and 2 does depend on the OS, step 3 and 4 will depend on how the program is being built.
If on windows the cmake gui can be used which will perform steps 1 and 2, if using visual studio then
the build process will need to be run twice.

Make needs to be called twice, the first make step will dynamically generate a number of files from the
JSON fluid definitions - the second make run will actually generate the program.

Testing

CMake generates a target for testing. You can build the test executable with make testRunner.

Building wrappers using CMake

To build the 32-bit __cdecl DLL for instance, from the root directory execute

mkdir build
cd build
mkdir 32bitcdecl
cd 32bitcdecl
cmake ..\.. -G "Visual Studio 10" -DCOOLPROP_32BIT_CDECL_SHARED_LIBRARY=ON
cmake --build . --config Release --target INSTALL

which will build the DLL and put it in the bin/shared_library/Windows/32bit/__cdecl_calling_convention folder. Alternatively you could build using MINGW GCC using

mkdir build
cd build
mkdir 32bitcdeclgcc
cd 32bitcdeclgcc
cmake ..\.. -G "MinGW Makefiles" -DCOOLPROP_32BIT_CDECL_SHARED_LIBRARY=ON
cmake --build . --config Release --target install

which will also be the same protocol on linux