DrawingProcess
드프 DrawingProcess
DrawingProcess
전체 방문자
오늘
어제
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
  • 분류 전체보기 (964)
    • Profile & Branding (22)
      • Career (15)
    • IT Trends (254)
      • Conference, Faire (Experien.. (31)
      • News (187)
      • Youtube (19)
      • TED (8)
      • Web Page (2)
      • IT: Etc... (6)
    • Contents (97)
      • Book (66)
      • Lecture (31)
    • Project Process (94)
      • Ideation (0)
      • Study Report (34)
      • Challenge & Award (22)
      • 1Day1Process (5)
      • Making (5)
      • KRC-FTC (Team TC(5031, 5048.. (10)
      • GCP (GlobalCitizenProject) (15)
    • Study: ComputerScience(CS) (72)
      • CS: Basic (9)
      • CS: Database(SQL) (5)
      • CS: Network (14)
      • CS: OperatingSystem (3)
      • CS: Linux (39)
      • CS: Etc... (2)
    • Study: Software(SW) (95)
      • SW: Language (29)
      • SW: Algorithms (1)
      • SW: DataStructure & DesignP.. (1)
      • SW: Opensource (15)
      • SW: Error Bug Fix (43)
      • SW: Etc... (6)
    • Study: Artificial Intellige.. (149)
      • AI: Research (1)
      • AI: 2D Vision(Det, Seg, Tra.. (35)
      • AI: 3D Vision (70)
      • AI: MultiModal (3)
      • AI: SLAM (0)
      • AI: Light Weight(LW) (3)
      • AI: Data Pipeline (7)
      • AI: Machine Learning(ML) (1)
    • Study: Robotics(Robot) (33)
      • Robot: ROS(Robot Operating .. (9)
      • Robot: Positioning (8)
      • Robot: Planning & Control (7)
    • Study: DeveloperTools(DevTo.. (83)
      • DevTool: Git (12)
      • DevTool: CMake (13)
      • DevTool: NoSQL(Elastic, Mon.. (25)
      • DevTool: Container (17)
      • DevTool: IDE (11)
      • DevTool: CloudComputing (4)
    • 인생을 살면서 (64)
      • 나의 취미들 (7)
      • 나의 생각들 (42)
      • 여행을 떠나자~ (10)
      • 분기별 회고 (5)

개발자 명언

“ 매주 목요일마다 당신이 항상 하던대로 신발끈을 묶으면 신발이 폭발한다고 생각해보라.
컴퓨터를 사용할 때는 이런 일이 항상 일어나는데도 아무도 불평할 생각을 안 한다. ”

- Jef Raskin

맥의 아버지 - 애플컴퓨터의 매킨토시 프로젝트를 주도

인기 글

최근 글

최근 댓글

티스토리

hELLO · Designed By 정상우.
DrawingProcess

드프 DrawingProcess

Study: Software(SW)/SW: Error Bug Fix

[Error Fix] 'CMake find_package' 문제 해결(feat. MacOS Qt5 FindQt5.cmake)

2023. 4. 10. 17:58
반응형

# 문제 상황

'brew install qt5'로 qt5는 설치하였으나 find_package로 내부 파일을 찾지 못하여 다음과 같은 메시지가 떴다.

CMake Error at src/CMakeLists.txt:2 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5" with any of
  the following names:

    Qt5Config.cmake
    qt5-config.cmake

  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.

# 해결 방안

% brew --prefix qt5
/opt/homebrew/opt/qt@5

CMakeLists.txt 파일에서 find_package 전에 CMAKE_PREFIX_PATH를 위의 경로로 지정하여 해당 패키지를 찾을 수 있도록 한다.

set(CMAKE_PREFIX_PATH "/opt/homebrew/opt/qt@5")
...
find_package(Qt5 COMPONENTS Widgets Charts DataVisualization REQUIRED)

# 참고

  • [StackOverFlow] MacOS Sierra - cmake failed with qt5: https://stackoverflow.com/questions/40081327/macos-sierra-cmake-failed-with-qt5
반응형
저작자표시 비영리 변경금지 (새창열림)

'Study: Software(SW) > SW: Error Bug Fix' 카테고리의 다른 글

[Error Fix] ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' 오류 해결: jupyter notebook 실행시 발생  (0) 2023.05.01
[Error Fix] E: Sub-process /usr/bin/dpkg returned an error code (1) 오류 해결: broken package  (0) 2023.04.30
[Error fix] 'Java file outside of source root' 오류 해결  (0) 2023.02.13
[Error fix] Mac에서 ~/.bashrc 적용이 안되는 오류 해결(feat. zsh)  (0) 2023.01.23
[Error fix] 'no matching manifest for linux/arm64/v8 in the manifest list entries' 오류 해결 (feat. Docker AppleSilicon/M1)  (0) 2023.01.14
    'Study: Software(SW)/SW: Error Bug Fix' 카테고리의 다른 글
    • [Error Fix] ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' 오류 해결: jupyter notebook 실행시 발생
    • [Error Fix] E: Sub-process /usr/bin/dpkg returned an error code (1) 오류 해결: broken package
    • [Error fix] 'Java file outside of source root' 오류 해결
    • [Error fix] Mac에서 ~/.bashrc 적용이 안되는 오류 해결(feat. zsh)
    DrawingProcess
    DrawingProcess
    과정을 그리자!

    티스토리툴바