ubuntu系统中scons的配置文件
Configuration file for scons in an ubuntu system
我正在尝试在我运行Ubuntu 14.04的计算机上安装这个工具(ISCE)。
scons配置文件如下:
# The directory in which ISCE will be built
PRJ_SCONS_BUILD= $HOME/isce
# The directory into which ISCE will be installed
PRJ_SCONS_INSTALL= $HOME/isce
PRJ_LIB_DIR = $HOME/isce/lib
# The location of libraries, such as libstdc++, libfftw3 (for most system
# it's /usr/lib and/or /usr/local/lib/ and/or /opt/local/lib)
LIBPATH='/usr/lib/x86_64-linux-gnu/' '/usr/lib/x86_64-linux-gnu/4.8'
# The location of Python.h. If you have multiple installations of python
# make sure that it points to the right one
CPPPATH='/home/shaunak/anaconda2/envs/ISCEp35/include/python3.xm'
# The location of the fftw3.h (most likely something like /usr/include or
# /usr/local/include /opt/local/include
FORTRANPATH='/usr/include'
# The location of your Fortran compiler. If not specified it will use the system one
FORTRAN='/usr/bin/gfortran'
# The location of your C compiler. If not specified it will use the system one
CC='/usr/bin'
# The location of your C++ compiler. If not specified it will use the system one
CXX='/usr/bin'
当我尝试按照README: SCONS_CONFIG_DIR=~/isce scons -Q install
的指示执行命令安装时,它失败了,错误信息:
Error. Cannot locate the stdc++ library in the directories specified by LIBPATH in the SConfig file.
Exception: :
File "/home/shaunak/isce/SConstruct", line 46:
sconsConfigFile.setupScons(env,sconsSetupFile)
File "/home/shaunak/isce/configuration/sconsConfigFile.py", line 384:
retDict = setupCompilers(retDict)
File "/home/shaunak/isce/configuration/sconsConfigFile.py", line 282:
dict = setupLinux(dict)
File "/home/shaunak/isce/configuration/sconsConfigFile.py", line 221:
raise Exception
我尝试用locate
命令搜索每个库,所有路径似乎都是准确的。我似乎不能理解为什么编译失败。例如locate libstcc++
产率:
/usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.a
/usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.so
/usr/lib/gcc/x86_64-linux-gnu/4.8/32/libstdc++.a
/usr/lib/gcc/x86_64-linux-gnu/4.8/32/libstdc++.so
/usr/lib/gcc/x86_64-linux-gnu/4.8/32/libstdc++_pic.a
/usr/lib/gcc/x86_64-linux-gnu/4.8/x32/libstdc++.a
/usr/lib/gcc/x86_64-linux-gnu/4.8/x32/libstdc++.so
/usr/lib/gcc/x86_64-linux-gnu/4.8/x32/libstdc++_pic.a
/usr/lib/i386-linux-gnu/libstdc++.so.6
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.19
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
试试这个:
LIBPATH=['/usr/lib/x86_64-linux-gnu/', '/usr/lib/x86_64-linux-gnu/4.8']
还记得SCons文件是Python的,Python中的列表用[item1, item2, ...]
表示。
相关文章:
- 无法找到/读取配置文件.conf-FileIOException
- 在WSL:configure_file上对config_file的每次调用都失败:配置文件时出现问题
- 一种在C++中读取TXT配置文件的简单方法
- FFMPEG配置文件级别id大小无效
- 配置文件解析器仅返回以前的值
- 我的程序有一个保存配置文件的GUI,如何双击此配置文件以直接加载带有配置数据的GUI?
- Boost program_options将多个配置文件解析结果存储到一个parsed_options中
- Windows 后台服务(系统配置文件)无法使用 C++ 访问 win 10 上的用户 appData 文件夹?
- 我应该如何获取配置文件的绝对路径与 Windows .exe一起发布?
- JPG-如何从ICC配置文件部分APP2读取/提取数据
- 检测到 Conan 配置文件设置与 CMake 之间的编译器版本不匹配
- boost::p rogram_options 配置文件格式
- 如何在Boost::program_options配置文件中为非字符串的自定义选项值类型处理空格
- 如何在 Boost Program_Options 中使用命令行和分层配置文件的选项
- 如何将不可编译的配置文件添加到QT工程中?
- OpenGL不能在核心配置文件中使用glVertexAttrib进行绘制
- 错误 VSP1011:无法获取调试信息.与 /配置文件链接器开关链接
- 解析程序配置文件
- 提升program_option配置文件的不区分大小写的解析
- ubuntu系统中scons的配置文件