使用CMakeLists.txt的Apache Thrift错误

时间:2017-01-01 05:57:08

标签: c++ cmake thrift

我正在尝试为Apache Thrift构建C ++库,我收到一个cmake错误,我无法解释,这是我为获取错误而采取的一系列步骤

p <- ggplot(dat, aes(text, value)) + 
  geom_bar(stat="identity") +
  coord_flip() +
  labs(title="     Do you agree with the following statements?")+
  theme_bw(16)+
  theme(text=element_text(family="TradeGothicLT-CondEighteen"))

gt <- ggplot_gtable(ggplot_build(p))
gt$layout[which(gt$layout$name == "title"), c("l", "r")] <- c(1, max(gt$layout$r))

grid::grid.draw(gt)

我得到的错误是

git clone https://git-wip-us.apache.org/repos/asf/thrift.git
cd thrift/lib/cpp
mkdir cmake-build
cmake ..

之前是否有其他人遇到此错误?

1 个答案:

答案 0 :(得分:1)

这不是构建它的方法。你需要按照指示从根目录构建,否则你将错过一大堆CMake定义。

从根存储库目录:

mkdir cmake-build && cd cmake-build
cmake .. -DBUILD_CPP:BOOL=ON