facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.04k stars 535 forks source link

CMake Error while building on Ubuntu 16.04 #134

Closed abhi1301 closed 5 years ago

abhi1301 commented 5 years ago

I was trying to build Wangle on Ubuntu 16.04. I have built all the dependencies and the same could be found by CMake as you can see below. But its fails with the following error with 'Glog' even though Glog was found and have reinstalled multiple times. I'm stuck, can someone help? The following is the terminal output of : $ cmake .

-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found folly: /usr/local
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   regex
--   context
--   chrono
--   date_time
--   atomic
-- Found OpenSSL: /usr/local/lib/libssl.so;/usr/local/lib/libcrypto.so (found version "1.1.1") 
-- Found glog: /usr/local/lib/libglog.so  
-- Found gflags: /usr/local/lib/libgflags.so  
-- Found libevent: /usr/lib/x86_64-linux-gnu/libevent.so  
-- Found double_conversion: /usr/local/lib/libdouble-conversion.so  
-- Found librt: /usr/lib/x86_64-linux-gnu/librt.so  
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Looking for SSL_SESSION_dup in ssl
-- Looking for SSL_SESSION_dup in ssl - not found
-- Found LIBGMOCK: /usr/local/lib/libgmock_main.a  
-- Configuring done
CMake Error at CMakeLists.txt:226 (add_executable):
  Target "AsyncSocketHandlerTest" links to target "glog::glog" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:242 (add_gtest)

CMake Error at CMakeLists.txt:226 (add_executable):
  Target "BroadcastPoolTest" links to target "glog::glog" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:240 (add_gtest)

CMake Error at CMakeLists.txt:226 (add_executable):
  Target "ObservingHandlerTest" links to target "glog::glog" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:241 (add_gtest)

CMake Error at CMakeLists.txt:226 (add_executable):
  Target "BootstrapTest" links to target "glog::glog" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:238 (add_gtest)

CMake Error at CMakeLists.txt:226 (add_executable):
  Target "BroadcastHandlerTest" links to target "glog::glog" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:239 (add_gtest)

CMake Error at CMakeLists.txt:226 (add_executable):
  Target "PeekingAcceptorHandshakeHelperTest" links to target "glog::glog"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:237 (add_gtest)

CMake Error at CMakeLists.txt:103 (add_library):
  Target "wangle" links to target "glog::glog" 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:226 (add_executable):
  Target "PipelineTest" links to target "glog::glog" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  CMakeLists.txt:244 (add_gtest)