Adding version specifier for brew Qt in the docs #1324

Merged
root merged 1 commit from patch-1 into master 2021-09-22 21:18:04 +00:00
Member

Latest Qt version is 6.1.3 which doesn't work with building, adding @5 ensures that Qt 5 is installed instead of the latest version.

(This is my first ever pull-request! 🥳)

Latest Qt version is 6.1.3 which doesn't work with building, adding @5 ensures that Qt 5 is installed instead of the latest version. (This is my first ever pull-request! 🥳)
Author
Member

Sorry about the messy PR history, it's my first time using git

Sorry about the messy PR history, it's my first time using git
vng (Migrated from github.com) approved these changes 2021-09-21 21:13:20 +00:00
biodranik commented 2021-09-21 21:14:01 +00:00 (Migrated from github.com)

What errors did you get with Qt6? Can you please share them? It builds on my machine.

What errors did you get with Qt6? Can you please share them? It builds on my machine.
Author
Member

What errors did you get with Qt6? Can you please share them? It builds on my machine.

I believe it's caused by the Qt5CoreConfig.cmake files being called Qt6CoreConfig.cmake in Qt6.

Console Log:

endi@Harrys-MacBook-Air organicmaps % tools/unix/build_omim.sh -r              
Setting PLATFORM_MAC to true
Build type: Release
CMake Warning at CMakeLists.txt:213 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

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

    Qt5CoreConfig.cmake
    qt5core-config.cmake

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


CMake Error at CMakeLists.txt:215 (message):
  Qt5 cmake files were not found, please set QT_PATH environment variable
> What errors did you get with Qt6? Can you please share them? It builds on my machine. I believe it's caused by the `Qt5CoreConfig.cmake` files being called `Qt6CoreConfig.cmake` in Qt6. **Console Log:** ``` endi@Harrys-MacBook-Air organicmaps % tools/unix/build_omim.sh -r Setting PLATFORM_MAC to true Build type: Release CMake Warning at CMakeLists.txt:213 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core", but CMake did not find one. Could not find a package configuration file provided by "Qt5Core" with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set "Qt5Core_DIR" to a directory containing one of the above files. If "Qt5Core" provides a separate development package or SDK, be sure it has been installed. CMake Error at CMakeLists.txt:215 (message): Qt5 cmake files were not found, please set QT_PATH environment variable ```
Author
Member

waaiit, Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH. i may be stupid but let me test it quickly

waaiit, `Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH`. i may be stupid but let me test it quickly
Author
Member

Update:
I've tried setting QT_PATH to /opt/homebrew/Cellar/Qt/6.1.3, and set CMAKE_PREFIX_PATH to Qt5Core & Qt6Core, nothing worked.

I'm pretty sure that it isn't working because all the Qt files use the Qt6 prefix instead of Qt5.

**Update:** I've tried setting `QT_PATH` to `/opt/homebrew/Cellar/Qt/6.1.3`, and set `CMAKE_PREFIX_PATH` to `Qt5Core` & `Qt6Core`, nothing worked. I'm pretty sure that it isn't working because all the Qt files use the Qt6 prefix instead of Qt5.
Author
Member

It works out of the box with qt@5, I've realised you don't need to mess with the PATH variable either, so i removed the line i added that suggested it.

It works out of the box with qt@5, I've realised you don't need to mess with the PATH variable either, so i removed the line i added that suggested it.
rtsisyk approved these changes 2021-09-22 08:11:04 +00:00
biodranik (Migrated from github.com) approved these changes 2021-09-22 21:17:17 +00:00
biodranik commented 2021-09-22 21:17:55 +00:00 (Migrated from github.com)

I can later fix it for Qt6 if it would be necessary. Thanks!

I can later fix it for Qt6 if it would be necessary. Thanks!
This repo is archived. You cannot comment on pull requests.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#1324
No description provided.