Bug #2751
Updated by Junxiao Shi over 9 years ago
I have been working on porting NDN onto Intel Galileo (I am the author of this gitbook: http://schwannden.gitbooks.io/ndn-on-galileo) And I have set up the cross compilation toolchain with Yocto, and was able to cross compile both ndn-cxx and NFD. After pulling the newest ndn-cxx and NFD today, the configuration of NFD failed at checking boost linkage. The two error messages are related to undefined `pthread_cancel` pthread_cancel and `std::to_string`. std::to_string. I am pretty sure my environment have `pthread_cancel`, pthread_cancel, and is wondering why the test fail? As for `to_string`, to_string, my cross compilation environment does not have this function (it does support c++11, but does not have this specific function). How do I use `boost::chrono::to_string` boost::chrono::to_string to work around? It seems like the test code is generated during waf configuration? Since the error log says the error happens when compiling file in `/opt/ndn/N "/opt/ndn/N FD/build/.conf_check_a0e36c424bb9d872e887a8aabee0c828/`, FD/build/.conf_check_a0e36c424bb9d872e887a8aabee0c828/", which is a folder no where to be found. Can someone point me to the right direction? In the previous build, I simply delete the test on boost completely in wscript. And the resulting binary is usable! I had to modify a few source code (`std::to_string` (std::to_string to `boost::chrono::to_string`). boost::chrono::to_string). But this time, deleting the whole test does not make compilation successful. There is a linkage error about "undefined reference to `boost::detail::set_tss_data`". `boost::detail::set_tss_data". Can someone point me toward the right direction?