scanner-research / hwang

Fast sparse video decode
33 stars 12 forks source link

CMake Error: include_directories given empty-string as include directory #8

Closed claui closed 5 years ago

claui commented 5 years ago

When I try to install hwang (either via brew install scanner-research/homebrew-scanner/hwang or automatically as a dependency of scanner), I get the following error:

2018-09-26 09:17:50 +0200

cmake
..
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hwang/0.3.4
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev

-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++
-- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX1Y
-- Performing Test COMPILER_SUPPORTS_CXX1Y - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found Protobuf: /usr/local/lib/libprotobuf.dylib  
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libavcodec'
--   Found libavcodec, version 58.18.100
-- Checking for module 'libavformat'
--   Found libavformat, version 58.12.100
-- Checking for module 'libavutil'
--   Found libavutil, version 56.14.100
-- Found FFMPEG or Libav: /usr/local/lib/libavcodec.dylib;/usr/local/lib/libavformat.dylib;/usr/local/lib/libavutil.dylib;/usr/local/lib/libswresample.dylib;/usr/local/lib/libswscale.dylib, /usr/local/include
-- Found GFLAGS: /usr/local/include  
-- Found GLOG: /usr/local/include  
-- Could NOT find GOOGLETEST (missing: GOOGLETEST_INCLUDE_DIR GOOGLETEST_LIBRARY) 
-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.7", minimum required is "3") 
-- Found PythonLibs: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/libpython3.7m.dylib
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success

CMake Error at CMakeLists.txt:119 (include_directories):
  include_directories given empty-string as include directory.

util/fs.cppmp4_index_creator.cppvideo_index.cppdecoder_automata.cppvideo_decoder_factory.cppimpls/software/software_video_decoder.cpp
-- Configuring incomplete, errors occurred!
See also "/tmp/hwang-20180926-17314-sb8etk/hwang-0.3.4/build/CMakeFiles/CMakeOutput.log".

HOMEBREW_VERSION: 1.7.6-16-g1243183
ORIGIN: https://github.com/Homebrew/brew
HEAD: 124318329430a6f74ebfed60bbbed0008e903dd1
Last commit: 9 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4bf481e3facd244d4578d750d3a7a507fe9ab094
Core tap last commit: 10 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CACHE: /Users/vagrant/Library/Caches/Homebrew
CPU: dual-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.0 build 900
Git: 2.14.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: N/A
macOS: 10.12.6-x86_64
CLT: 9.2.0.0.1.1510905681
Xcode: N/A
XQuartz: N/A

HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j2
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python/Frameworks:/usr/local/opt/python@2/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/python/lib/pkgconfig:/usr/local/opt/gflags/lib/pkgconfig:/usr/local/opt/glog/lib/pkgconfig:/usr/local/opt/x264/lib/pkgconfig:/usr/local/opt/ffmpeg/lib/pkgconfig:/usr/local/opt/python@2/lib/pkgconfig:/usr/local/opt/protobuf/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12
HOMEBREW_GIT: git
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/cmake/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/openssl/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/python/bin:/usr/local/opt/gflags/bin:/usr/local/opt/lame/bin:/usr/local/opt/x264/bin:/usr/local/opt/ffmpeg/bin:/usr/local/opt/python@2/bin:/usr/local/opt/protobuf/bin:/usr/bin:/bin:/usr/sbin:/sbin

(Source: ~/Library/Logs/Homebrew/hwang/02.cmake)

I faintly remember version 0.3.3 used to install successfully but I’m not entirely sure.

fpoms commented 5 years ago

Looks like it's not finding GoogleTest:

-- Could NOT find GOOGLETEST (missing: GOOGLETEST_INCLUDE_DIR GOOGLETEST_LIBRARY) 

I'll look into this.

fpoms commented 5 years ago

@claui I think this is fixed now. Can you try to reinstall?

claui commented 5 years ago

@apoms Works for me now 👍

claui commented 5 years ago

Thanks @apoms!