c++facebookfolly

Build facebook folly


Can't build folly. Have the next folder structure:

/flint/double-conversion/src

/flint/folly/folly/

Where /flint/folly contains readme and license. As in the readme I set up double-conversion with scons, export flags with

export LDFLAGS=-L../../double-conversion/
export CPPFLAGS=-I../../double-conversion/src/

from the second folly directory and have nothing working:

checking double-conversion/double-conversion.h presence... no
checking for double-conversion/double-conversion.h... no
configure: error: Couldn't find double-conversion.h,

Also have tried absolute paths like /home/username/flint/double-conversion/ and this doesn't work too. Any suggestions?


Solution

  • I ran into the same problem while building fbthrift which depends on facebook folly. It took me some time but i have found the problem which leads to build problems with the double-conversion library.

    Undo all the changes of this commit and it will build successful. https://github.com/facebook/folly/commit/56e0ec4fe2db38106311b09b88820a99860664f3#diff-0aeb0bf602d25a066eb2233e06c4a981

    I hope this will also work for you if you still have this problem.