shaunakde shaunakde - 1 year ago 107
C++ Question

Configuration file for scons in an ubuntu system

I am trying to install this tool (ISCE) on my computer running Ubuntu 14.04.

My scons configuration file is as follows:

# The directory in which ISCE will be built
# The directory into which ISCE will be installed
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
# The location of the fftw3.h (most likely something like /usr/include or
# /usr/local/include /opt/local/include
# The location of your Fortran compiler. If not specified it will use the system one
# The location of your C compiler. If not specified it will use the system one
# The location of your C++ compiler. If not specified it will use the system one

When I try to execute the command to install as instructed by the README:
SCONS_CONFIG_DIR=~/isce scons -Q install
it fails with the error message:

Error. Cannot locate the stdc++ library in the directories specified by LIBPATH in the SConfig file.
Exception: :
File "/home/shaunak/isce/SConstruct", line 46:
File "/home/shaunak/isce/configuration/", line 384:
retDict = setupCompilers(retDict)
File "/home/shaunak/isce/configuration/", line 282:
dict = setupLinux(dict)
File "/home/shaunak/isce/configuration/", line 221:
raise Exception

I have tried to search each library with the
command and all the paths seem to be accurate. I cant seem to understand why the compilation is failing. For instance
locate libstcc++


Answer Source

Try this:

LIBPATH=['/usr/lib/x86_64-linux-gnu/', '/usr/lib/x86_64-linux-gnu/4.8']

Recall that SCons files are Python, and lists in Python are represented by [item1, item2, ...].

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download