Fix: Correcting syntax issue in SConstruct #1166
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
when building the library version 0.8.2 using scons, observed a compilation error.
"File "/home/sarath/TESTMP/MaintenancePortal/Distribution/scripts/.libs/websocketpp-0.8.2/SConstruct", line 35
raise SCons.Errors.UserError, "Neither BOOST_ROOT, nor BOOST_INCLUDES + BOOST_LIBS was set!"
SyntaxError: invalid syntax "
due to which it stopped building.
I have used below script for building
INSTALLLOCATION=~/testing
BOOST_VERSION=boost_1_52_0
if [[ ! -d ${INSTALLLOCATION}/websocketpp-0.8.2 ]]; then
tar -C ${INSTALLLOCATION} -xzf ~/websocketpp-0.8.2.tar.gz
cd ${INSTALLLOCATION}/websocketpp-0.8.2
make clean
BOOST_INCLUDES=pwd/../${BOOST_VERSION} BOOST_LIBS=pwd/../${BOOST_VERSION}/stage/lib/ scons
cd -
else
echo websocketpp has already built.
fi
scons version used
SCons: v4.9.0.99a8c86de1ce91d23b102520e185c54ebd968924
python version used
Python 3.9.21