Skip to content

Allow linking examples to shared (rather than static) boost libraries with scons #429

@unphased

Description

@unphased

I will try to debug the scons run soon, but here is where I'm at so far.

$ BOOST_INCLUDES=/usr/include  BOOST_LIBS=/usr/lib64 scons
scons: Reading SConscript files ...
C++11 build environment partially enabled
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/release/broadcast_server/broadcast_server.o -c -std=c++0x -O1 -fomit-frame-pointer -Wall -Wcast-align -Wshadow -Wunused-parameter -isystem /usr/include -DNDEBUG -D_WEBSOCKETPP_CPP11_STL_ -I. examples/broadcast_server/broadcast_
server.cpp
scons: *** [build/release/broadcast_server/broadcast_server] Implicit dependency `/usr/lib64/libboost_system.a' not found, needed by target `build/release/broadcast_server/broadcast_server'.
scons: building terminated because of errors.

$ sudo find / -name '*libboost_system*'
/usr/lib64/libboost_system-mt.so.1.53.0
/usr/lib64/libboost_system.so.1.53.0
/usr/lib64/libboost_system-mt.so
/usr/lib64/libboost_system.so

Environment is a Centos 7 with boost 1.53 (ugh, so old) and scons from packages.

I have zero experience with Scons. More than I have cmake. But since I hate cmake so much, it would be neat if we could get the scons build working.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions