Skip to content

Conversation

Sagovind
Copy link

@Sagovind Sagovind commented Mar 9, 2025

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

There is a compilation error found, when building this library using
scons. Used the latest version of scons v4.9.0 and the python version
3.9.21
Copy link
Author

@Sagovind Sagovind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please review the change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant