Skip to content

Syntax Error: invalid syntax in SConstruct file #1165

@Sagovind

Description

@Sagovind

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions