Allow for tunnelbroker to be built with MacOS+Clang.
Adds C++17 support by setting OSX requirement above minimum
OSX support.
Also fix pkg-config logic so that the correct libraries are
being linked.
Depends on D4765
Differential D4766
[Services] Update tunnelbroker CMake to be MacOS compatible Authored by • jon on Aug 6 2022, 5:31 PM.
Details Allow for tunnelbroker to be built with MacOS+Clang. Also fix pkg-config logic so that the correct libraries are Depends on D4765 On a mac device:
nix develop # or install protobuf, grpc, awssdk, cryptopp, libuv, boost, amqp separately cd services/tunnelbroker && mkdir build && cd build && cmake .. && make -j4 -l4
Diff Detail
Event TimelineComment Actions Hm, running into the following here: [100%] Linking CXX executable bin/tunnelbroker
ld: warning: directory not found for option '-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/var/empty/lib'
Undefined symbols for architecture arm64:
"AMQP::TcpConnection::process(int, int)", referenced from:
AMQP::LibUvHandler::Watcher::callback(uv_poll_s*, int, int) in AmqpManager.cpp.o
"AMQP::TcpConnection::TcpConnection(AMQP::TcpHandler*, AMQP::Address const&)", referenced from:
comm::network::AmqpManager::connectInternal() in AmqpManager.cpp.o
"AMQP::TcpConnection::~TcpConnection()", referenced from:
comm::network::AmqpManager::connectInternal() in AmqpManager.cpp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/tunnelbroker] Error 1
make[1]: *** [CMakeFiles/tunnelbroker.dir/all] Error 2
make: *** [all] Error 2Comment Actions This is awesome! Can build/run locally and finally get full code completion/debugging/go to definition/etc etc Comment Actions That's awesome! Thanks, @jon 🥳 |