Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. ## Troubleshooting
  2.  
  3. ### OpenCV3
  4.  
  5. 1. Qt5::Core (`/usr/local/.//mkspecs/macx-clang` does not exist):
  6. ```
  7. CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:17 (message):
  8. The imported target "Qt5::Core" references the file
  9.  
  10. "/usr/local/.//mkspecs/macx-clang"
  11.  
  12. but this file does not exist.
  13. ```
  14. Workaround:
  15.  
  16. ```shell
  17. $ brew link --force qt5
  18. $ ln -s /usr/local/Cellar/qt5/5.6.0/mkspecs /usr/local/mkspecs
  19. $ ln -s /usr/local/Cellar/qt5/5.6.0/plugins /usr/local/plugins
  20. ```
  21.  
  22. 2. VTK
  23. Workaround: Disable VTK
  24.  
  25. Replace:
  26. ```cmake
  27. OCV_OPTION(WITH_VTK "Include VTK library support (and build opencv_viz module eiher)" ON IF (NOT ANDROID AND NOT IOS AND NOT WINRT AND NOT CMAKE_CROSSCOMPILING AND NOT APPLE) )
  28. ```
  29.  
  30. With:
  31. ```cmake
  32. OCV_OPTION(WITH_VTK "Include VTK library support (and build opencv_viz module eiher)" OFF )
  33. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement