fbthrift_example's People
Forkers
loading86fbthrift_example's Issues
cmake failed because of "fmt::fmt"
question details:
[cmake]
############
-- Found FBThrift: /usr/local
-- Found folly: /usr/local
-- Found wangle: /usr/local
-- Found fizz: /usr/local
-- Found YARPL: /usr/local
-- Found rsocket: /usr/local
-- Found gflags from package config /usr/local/lib/cmake/gflags/gflags-config.cmake
-- Configuring done
CMake Error at CMakeLists.txt:17 (add_executable):
Target "fbthrift_ex" links to target "fmt::fmt" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
CMake Error at CMakeLists.txt:17 (add_executable):
Target "fbthrift_ex" links to target "fmt::fmt" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
############
[make]
############
[ 11%] Building CXX object CMakeFiles/fbthrift_ex.dir/main.cc.o
[ 22%] Building CXX object CMakeFiles/fbthrift_ex.dir/gen-cpp2/ExampleService.cpp.o
[ 33%] Building CXX object CMakeFiles/fbthrift_ex.dir/gen-cpp2/ExampleServiceAsyncClient.cpp.o
[ 44%] Building CXX object CMakeFiles/fbthrift_ex.dir/gen-cpp2/ExampleService_processmap_binary.cpp.o
[ 55%] Building CXX object CMakeFiles/fbthrift_ex.dir/gen-cpp2/ExampleService_processmap_compact.cpp.o
[ 66%] Building CXX object CMakeFiles/fbthrift_ex.dir/gen-cpp2/example_constants.cpp.o
[ 77%] Building CXX object CMakeFiles/fbthrift_ex.dir/gen-cpp2/example_data.cpp.o
[ 88%] Building CXX object CMakeFiles/fbthrift_ex.dir/gen-cpp2/example_types.cpp.o
[100%] Linking CXX executable fbthrift_ex
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld.gold: error: cannot find -lfmt::fmt
############
[solution]
############
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 16b7c89..99a929d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,7 @@ find_package(fizz REQUIRED)
find_package(Threads REQUIRED)
find_package(yarpl REQUIRED)
find_package(rsocket REQUIRED)
+find_package(fmt REQUIRED)
find_package(Glog)
find_package(Gflags)
############
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.