facebook / wdt

Warp speed Data Transfer (WDT) is an embeddedable library (and command line tool) aiming to transfer data between 2 systems as fast as possible over multiple TCP paths.
https://www.facebook.com/WdtOpenSource
Other
2.86k stars 391 forks source link

error: ‘to’ is not a member of ‘folly’ #169

Closed renyuntao closed 6 years ago

renyuntao commented 6 years ago
$ cat buildWdt.sh
mkdir -p ~/build && cd ~/build && \

wget https://github.com/facebook/wdt/archive/v1.27.1612021.tar.gz && \
tar -xvf v1.27.1612021.tar.gz && mv wdt-1.27.1612021 wdt  && \
rm -rf v1.27.1612021.tar.gz && \

git clone https://github.com/facebook/folly.git && \

cmake ./wdt && \
make

When I run buildWdt.sh, I got the following error:

In file included from /home/i-renyuntao/build/wdt/SenderThread.cpp:9:0:
/home/i-renyuntao/build/wdt/SenderThread.h: In constructor ‘facebook::wdt::SenderThread::SenderThread(facebook::wdt::Sender*, int, int32_t, facebook::wdt::ThreadsController*
)’:
/home/i-renyuntao/build/wdt/SenderThread.h:86:24: error: ‘to’ is not a member of ‘folly’
     threadStats_.setId(folly::to<std::string>(threadIndex_));
                        ^
/home/i-renyuntao/build/wdt/SenderThread.h:86:45: error: expected primary-expression before ‘>’ token
     threadStats_.setId(folly::to<std::string>(threadIndex_));
                                             ^
CMakeFiles/wdt_min.dir/build.make:422: recipe for target 'CMakeFiles/wdt_min.dir/SenderThread.cpp.o' failed
make[2]: *** [CMakeFiles/wdt_min.dir/SenderThread.cpp.o] Error 1
CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/wdt_min.dir/all' failed
make[1]: *** [CMakeFiles/wdt_min.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

The output of buildWdt.sh: https://gist.github.com/renyuntao/285acf26610aeb8f415e36aaa894253d

Can anyone help me?
(Sorry for my bad English)

ldemailly commented 6 years ago

you are using a very old wdt

use master git clone git clone https://github.com/facebook/wdt.git too and build in a sister directory from wdt and folly

ie:

mkdir -p ~/build && cd ~/build && \

git clone https://github.com/facebook/wdt.git && \
git clone https://github.com/facebook/folly.git && \
mkdir bdir && cd bdir && \
cmake ../wdt && \
make

should work fine

(please confirm and close if so)

renyuntao commented 6 years ago

Thanks very much!