Hello Friends...
I am hoping to compile Cantera, although I have previously installed it using the pre-compiled files.
This is for a Windows 7 64 bit system, using Python 2.7 to compile with the intention of using the system with Python 3.4.
I am starting from a weak position, since I have done a lot of small projects with Python and Fortran, but have nevery compiled anything on the scale of
Cantera. So, I could be doing anything wrong. I had MingW from previous work on another project.
The following is an excerpt of the config.log file....
scons: Configure: Checking for C++ header file fmt/ostream.h...
.sconf_temp\conftest_2.cpp <-
|
|#include "fmt/ostream.h"
|
|
g++ -o .sconf_temp\conftest_2.o -c -std=c++0x -O3 -Wno-inline -g -DNDEBUG -IC:\local\boost_1_54_0 .sconf_temp\conftest_2.cpp
.sconf_temp\conftest_2.cpp:2:25: fatal error: fmt/ostream.h: No such file or directory
#include "fmt/ostream.h"
^
compilation terminated.
And this is the last lines of the command window...
^~~~~~~~~~~~~~~~~~~~
g++ -o build\src\base\ValueCache.o -c -std=c++0x -O3 -Wno-inline -g -Wall -include src/pch/system.h -DNDEBUG "-DCANTERA_DATA=\"C:\\Program F
iles (x86)\\Cantera\\data\"" -Iinclude -Iinclude\cantera\ext -Ibuild\src -IC:\local\boost_1_54_0 src\base\ValueCache.cpp
src\base\ValueCache.cpp:13:6: error: 'mutex' in namespace 'std' does not name a type
std::mutex id_mutex;
^~~~~
src\base\ValueCache.cpp: In member function 'int Cantera::ValueCache::getId()':
src\base\ValueCache.cpp:23:22: error: 'mutex' is not a member of 'std'
std::unique_lock<std::mutex> lock(id_mutex);
^~~
src\base\ValueCache.cpp:23:22: error: 'mutex' is not a member of 'std'
src\base\ValueCache.cpp:23:32: error: template argument 1 is invalid
std::unique_lock<std::mutex> lock(id_mutex);
^
src\base\ValueCache.cpp:23:39: error: 'id_mutex' was not declared in this scope
std::unique_lock<std::mutex> lock(id_mutex);
^~~~~~~~
src\base\ValueCache.cpp:23:34: warning: unused variable 'lock' [-Wunused-variable]
std::unique_lock<std::mutex> lock(id_mutex);
^~~~
scons: *** [build\src\base\ValueCache.o] Error 1
scons: building terminated because of errors.
Ostream, Cython (for both levels of Python) are installed, but perhaps I've done something wrong on the installation.
I would appreciate any help or questions that might help me. This forum has been such a help to me, it is much appreciated!
Best Regards,
Alan