[英]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'
當我嘗試執行自述文件中指示的安裝命令時: 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, ...]
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.