[go: up one dir, main page]

Menu

Tree [ba23cc] v5.1.0 / dev /
 History

HTTPS access


File Date Author Commit
 TTSE 2015-04-26 Jorrit Wronski Jorrit Wronski [382915] Less insane plotting parameters, see #411
 Tickets 2015-03-09 Jorrit Wronski Jorrit Wronski [c9f0fb] Confirmed the problems mentioned in #524, reope...
 buildbot 2015-04-26 Jorrit Wronski Jorrit Wronski [190e7e] Added permission fixer to sphinx builder
 cmake 2014-11-13 Ian Bell Ian Bell [1b91d5] Updates to make VxWorks play nicely with CMake ...
 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-04-27 Ian Bell Ian Bell [3fbbb4] Update HeavyWater hs_anchor state
 incompressible_liquids 2015-04-03 Jorrit Wronski Jorrit Wronski [83beb0] I hope this one fixes #571 - @paarfi, could you...
 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-04-27 Ian Bell Ian Bell [3fbbb4] Update HeavyWater hs_anchor state
 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-03-01 Ian Bell Ian Bell [44d508] Python should also get dev part of version; Clo...
 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