Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error in lib/local/Utilities/CMakeLists.txt: Imported target "dlib::dlib" includes non-existent path #634

Closed
addyag93 opened this issue Dec 31, 2018 · 4 comments

Comments

@addyag93
Copy link

I am trying to install OpenFace on my mac using the following command :
cmake -D CMAKE_BUILD_TYPE=RELEASE CMAKE_CXX_FLAGS="-std=c++11" -D CMAKE_EXE_LINKER_FLAGS="-std=c++11" ..

Following is the Error output :
-- Found OpenBLAS libraries: /usr/local/opt/openblas/lib/libopenblas.dylib
-- Found OpenBLAS include: /usr/local/opt/openblas/include
OpenBLAS information:
OpenBLAS_LIBRARIES: /usr/local/opt/openblas/lib/libopenblas.dylib
OpenBLAS_INCLUDE: /usr/local/opt/openblas/include
OpenCV information:
OpenCV_INCLUDE_DIRS: /usr/local/include;/usr/local/include/opencv
OpenCV_LIBRARIES: opencv_core;opencv_imgproc;opencv_calib3d;opencv_highgui;opencv_objdetect
OpenCV_LIBRARY_DIRS:
-- Boost version: 1.68.0
-- Found the following Boost libraries:
-- filesystem
-- system
Boost information:
Boost_VERSION: 106800
Boost_INCLUDE_DIRS: /usr/local/include
Boost_LIBRARIES: /usr/local/lib/libboost_filesystem-mt.dylib;/usr/local/lib/libboost_system-mt.dylib
Boost_LIBRARY_DIRS: /usr/local/lib
dlib information:
dlib version: 19.16.0
-- Standalone mode detected; Enabling configuration/targets export.
-- Configuring done
CMake Error in lib/local/LandmarkDetector/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/LandmarkDetector/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/LandmarkDetector/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/FaceAnalyser/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/FaceAnalyser/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/FaceAnalyser/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/GazeAnalyser/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/GazeAnalyser/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/GazeAnalyser/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/Utilities/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/Utilities/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in lib/local/Utilities/CMakeLists.txt:
Imported target "dlib::dlib" includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

@Mariog75
Copy link

Is there a fix for this?

@TadasBaltrusaitis
Copy link
Owner

Seems like this was an issue with dlib installation? How did you manage to resolve the issue?

@a-hurst
Copy link

a-hurst commented Oct 14, 2019

Just figured this out! The problem is that whatever buildbot is building the pre-compiled Homebrew bottles for dlib has the full Xcode.app installed, and sets the include path in dlib's cmake files accordingly. This works fine if you're installing on a machine with the full Xcode.app, but fails if you're only using Xcode Command Line Tools.

To work around the problem, just run brew reinstall --build-from-source dlib (or brew install --build-from-source dlib if you haven't installed yet) and the incorrect include path gets fixed.

Oh, also, if you're updating the Mac install guide, it's also worth noting that the download_models.sh script requires wget, which isn't pre-installed on macOS and should thus be added to the list of Homebrew requirements for maximum smoothness during the install process.

@TadasBaltrusaitis
Copy link
Owner

Thanks for the tips! I updated the instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants