dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #07609
python boost.py
For Boost lib, This is the error:
[rfarahi@alteran pkgconfiggenerators]$ pwd
/home/rfarahi/math/dolfin-hg/dolfin/scons/simula-scons/simula_scons/pkgconfiggenerators
[rfarahi@alteran pkgconfiggenerators]$ python boost.py
** Warning **
pkg-config files may be generated in the directory:
/home/rfarahi/math/dolfin-hg/dolfin/scons/simula-scons/simula_scons/pkgconfiggenerators.
Consider updating your PKG_CONFIG_PATH variable with this directoy.
Traceback (most recent call last):
File "boost.py", line 144, in <module>
generatePkgConf(directory=".")
File "boost.py", line 128, in generatePkgConf
version, libs, cflags = pkgTests(sconsEnv=sconsEnv)
File "boost.py", line 90, in pkgTests
version = pkgVersion(compiler=compiler, cflags=cflags, sconsEnv=sconsEnv)
File "boost.py", line 49, in pkgVersion
program=cpp_version_str, errormsg=cmdoutput)
commonPkgConfigUtils.UnableToCompileException: Unable to compile a Boost test program.
Compilation command was:
g++ -I/usr/include boost_config_test_version.cpp
Failed test program was:
#include <boost/version.hpp>
#include <iostream>
int main() {
#ifdef BOOST_VERSION
std::cout << BOOST_VERSION;
#endif
return 0;
}
Error message:
boost_config_test_version.cpp:2:29: boost/version.hpp: No such file or directory
Then, I have changed boost.py:
1. line 14th: default = os.path.join(os.path.sep,"usr/include/boost-1_35")
2. line 69th: include_dir = os.path.join(getBoostDir(sconsEnv=sconsEnv),"")
Now, there is no error, and this is the content of boost.pc:
[rfarahi@alteran pkgconfiggenerators]$ cat boost.pc
Name: Boost
Version: 1.35.0
Description: The Boost library of template code
Libs:
Cflags: -I/usr/include/boost-1_35/
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/