[go: up one dir, main page]

Menu

Tree [c603f9] v5.0.8 / dev /
 History

HTTPS access


File Date Author Commit
 TTSE 2015-02-26 Jorrit Wronski Jorrit Wronski [f50bf8] Fixed default unit system for TTSE tests
 Tickets 2014-12-09 Jorrit Wronski Jorrit Wronski [127a96] Fixes #321 - a request for additonal aliases
 buildbot 2015-02-21 Ian Bell Ian Bell [050451] Try to make release shared library and verbose ...
 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 2015-02-22 Ian Bell Ian Bell [6fa334] Update 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-02-03 Ian Bell Ian Bell [183868] Implement acentric factor through AbstractState...
 incompressible_liquids 2015-02-21 Jorrit Wronski Jorrit Wronski [d438d4] ... they really are.
 mixtures 2015-01-27 Ian Bell Ian Bell [000b14] betaV and gammaT were entered backwards into mi...
 packages 2014-12-17 Jorrit Wronski Jorrit Wronski [970828] cleaned up and added some gitignore files
 pseudo-pure 2014-05-14 Ian bell Ian bell [b3847c] Initial commit for v5, but this time with the r...
 scripts 2015-02-10 Jorrit Wronski Jorrit Wronski [171cc6] Forgot a dir change in the release 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-12-19 Jorrit Wronski Jorrit Wronski [ae3682] Fixed the header handling, closes #362 and part...
 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