intel / thunderbolt-software-user-space

Other
104 stars 24 forks source link

build error #37

Closed GoPerry closed 6 years ago

GoPerry commented 6 years ago

I meet one build error showing the tbtacl-write lack of RUNTIME DESTINATION for executable target.

Build OS:Ubuntu 17.10

-- The C compiler identification is GNU 7.2.0 -- The CXX compiler identification is GNU 7.2.0 -- 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 -- 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 -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Boost version: 1.62.0 -- Found the following Boost libraries: -- filesystem -- system CMake Error at tbtacl/CMakeLists.txt:15 (install): install TARGETS given no RUNTIME DESTINATION for executable target "tbtacl-write".

CMake Error at tbtacl/CMakeLists.txt:17 (install): install PROGRAMS given no DESTINATION!

CMake Error at tbtxdomain/CMakeLists.txt:7 (install): install PROGRAMS given no DESTINATION!

-- Boost version: 1.62.0 -- Found the following Boost libraries: -- program_options -- Configuring incomplete, errors occurred!

finikorg commented 6 years ago

Do you have pkg-config?

ybernat commented 6 years ago

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

This is the issue.

ybernat commented 6 years ago

@yuzaipiaofei I'm closing this as I assume this solves the build error.

GoPerry commented 6 years ago

@finikorg @ybernat I change Host OS to Fedora26 to build successfully. Thanks .

finikorg commented 6 years ago

@yuzaipiaofei I use latest Ubuntu, works fine, also we have now CI using Ubuntu, you can check builds here: https://travis-ci.org/01org/thunderbolt-software-user-space/builds/316552137?utm_source=github_status&utm_medium=notification

ybernat commented 6 years ago

Installing pkg-config should help, as mentioned (sudo apt install pkg-config)

GoPerry commented 6 years ago

Thanks all. I suggest that you can update README to show supported OS for building. Then add dependent packages for each OS. I think it will help a bit for other guys.