[go: up one dir, main page]

Menu

Tree [494eca] v5.0.1 / dev /
 History

HTTPS access


File Date Author Commit
 TTSE 2014-06-06 jowr jowr [f4be09] Finally, some luck with the Matrix classes... C...
 Tickets 2014-05-14 Ian bell Ian bell [b3847c] Initial commit for v5, but this time with the r...
 buildbot 2014-12-03 Jorrit Wronski Jorrit Wronski [494eca] No idea what is wrong with DTU's Matlab, switch...
 ci 2014-06-08 Ian Bell Ian Bell [ec04f4] Update README.rst
 cmake 2014-11-13 Ian Bell Ian Bell [1b91d5] Updates to make VxWorks play nicely with CMake ...
 codelite 2014-12-02 Ian Bell Ian Bell [2d3e91] Add codelite workspace file
 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 2014-12-02 Ian Bell Ian Bell [2d4f87] Clean up SES36 json file
 incompressible_liquids 2014-11-23 Jorrit Wronski Jorrit Wronski [c0d8a3] Fixed #229 - Many thanks to @pmanach for report...
 mixtures 2014-10-02 Ian Bell Ian Bell [791efe] Updated documentation
 pseudo-pure 2014-05-14 Ian bell Ian bell [b3847c] Initial commit for v5, but this time with the r...
 scripts 2014-12-03 Ian Bell Ian Bell [d82b0c] Tidy up saturation spline script
 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 2014-10-02 Ian Bell Ian Bell [70f737] Predefined mixtures are added, can be accessed ...
 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