简体   繁体   English

建立Facebook愚蠢

[英]Build facebook folly

Can't build folly. 不能愚蠢。 Have the next folder structure: 具有下一个文件夹结构:

/flint/double-conversion/src /火石/双转换/ SRC

/flint/folly/folly/ /火石/愚蠢/愚蠢/

Where /flint/folly contains readme and license. / flint / folly包含自述文件和许可证。 As in the readme I set up double-conversion with scons, export flags with 就像在自述文件中一样,我使用scons设置了双重转换,并使用

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. 还尝试了/ home / username / flint / double-conversion /之类的绝对路径,但这也行不通。 Any suggestions? 有什么建议么?

I ran into the same problem while building fbthrift which depends on facebook folly. 我在构建fbthrift时遇到了同样的问题,这取决于facebook的愚蠢。 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 https://github.com/facebook/folly/commit/56e0ec4fe2db38106311b09b88820a99860664f3#diff-0aeb0bf602d25a066eb2233e06c4a981

I hope this will also work for you if you still have this problem. 如果您仍然有此问题,希望对您也有用。

Adding my "workaround" for using Folly on CentOS 7; 添加我在CentOS 7上使用Folly的“解决方法”;

  1. got double-conversion from https://github.com/google/double-conversion https://github.com/google/double-conversion获得了两次转换
  2. built (using scons) which already symlinks from /usr/lib for the .so's 内置的(使用scons)已经从/ usr / lib符号链接为.so。
  3. symlink'd from the double-conversion/src folder to /usr/include 从double-conversion / src文件夹符号链接到/ usr / include

At least that worked for me. 至少对我有用。

FWIW, FWIW,

I was able to get past this by creating a symlink "double-conversion" to the src directory. 我可以通过创建到src目录的符号链接“ double-conversion”来克服这一问题。 Effectively, I have .../folly/double-conversion/double-conversion . 实际上,我有... / folly / double-conversion / double-conversion。 Now it seems to find the .h file (double-conversion/double-conversion.h with CPPFLAGS=-I...folly/double-conversion) 现在似乎找到了.h文件(带有CPPFLAGS = -I ... folly / double-conversion的double-conversion / double-conversion.h)

Unfortunately, I'm having as many troubles on the next step....finding the double-conversion library. 不幸的是,我在下一步遇到了很多麻烦。...找到了双重转换库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM