MantisBT - Doomseeker
View Issue Details
0003495Doomseeker[All Projects] Suggestionpublic2018-09-18 20:272018-10-27 22:55
WubTheCaptain 
Blzut3 
normaltrivialalways
closedfixed 
amd64OpenBSD6.4-current
1.1 
1.21.2 
0003495: Cleanup CMake files to "find Qt5 the right way"
Qt 5 modules don't need to be found individually. Use "find_package(Qt5 COMPONENTS Core Widgets [...] REQUIRED)" syntax, instead of multiple lines.
CMake: Finding Qt 5 the "Right Way"

Found while trying to build Doomseeker 1.2~beta from source on OpenBSD -current (6.4), with failing Qt5 detection.

Qt5 support was added by Blutz3 with commit a12be25e533bb1b217e0502d6f85879c2c40e5b5.
No tags attached.
Issue History
2018-09-18 20:27WubTheCaptainNew Issue
2018-09-18 20:39WubTheCaptainNote Added: 0019546
2018-09-18 20:42WubTheCaptainAssigned To => Blzut3
2018-09-18 20:42WubTheCaptainStatusnew => assigned
2018-09-18 20:42WubTheCaptainAdditional Information Updatedbug_revision_view_page.php?rev_id=11813#r11813
2018-09-18 20:42WubTheCaptainStatusassigned => new
2018-09-22 22:50Blzut3Statusnew => assigned
2018-09-22 22:50Blzut3Target Version => 1.2
2018-09-22 22:51Blzut3Note Added: 0019667
2018-09-22 22:51Blzut3Statusassigned => needs review
2018-09-22 23:38WubTheCaptainStatusneeds review => needs testing
2018-09-22 23:39WubTheCaptainNote Added: 0019674
2018-09-23 00:17WubTheCaptainNote Added: 0019677
2018-09-23 00:21Blzut3Note Added: 0019678
2018-09-23 00:49WubTheCaptainNote Added: 0019681
2018-09-23 00:49WubTheCaptainStatusneeds testing => resolved
2018-09-23 00:49WubTheCaptainFixed in Version => 1.2
2018-09-23 00:49WubTheCaptainResolutionopen => fixed
2018-09-23 00:50WubTheCaptainOS => OpenBSD
2018-09-23 00:50WubTheCaptainOS Version => 6.4-current
2018-09-23 00:50WubTheCaptainPlatform => amd64
2018-09-23 00:52WubTheCaptainNote Edited: 0019681bug_revision_view_page.php?bugnote_id=19681#r11947
2018-09-23 00:52WubTheCaptainNote Edited: 0019681bug_revision_view_page.php?bugnote_id=19681#r11948
2018-10-27 22:55WubTheCaptainStatusresolved => closed

Notes
(0019546)
WubTheCaptain   
2018-09-18 20:39   
Doomseeker 1.0 is not affected, as it didn't support Qt5.
(0019667)
Blzut3   
2018-09-22 22:51   
Simple enough:'https://bitbucket.org/Doomseeker/doomseeker/commits/bf0945af945751e54ea3ed846e74370b29d26fe7 [^]'
(0019674)
WubTheCaptain   
2018-09-22 23:39   
Bitbucket pipelines already passed this, but just to be sure I'll test on OpenBSD later.
(0019677)
WubTheCaptain   
2018-09-23 00:17   
Question: Why is there a new branch "@" tagged to this commit?
(0019678)
Blzut3   
2018-09-23 00:21   
From:'https://www.mercurial-scm.org/wiki/Bookmarks [^]'
Quote
If you have a bookmark named @ when cloning a remote repository, "hg clone" will check it out by default.

While Pol M was learning to use bookmarks I noticed that we never added the default bookmark to our repo, so now we have it.
(0019681)
WubTheCaptain   
2018-09-23 00:49   
(edited on: 2018-09-23 00:52)
As long as the @ bookmark is reasonably up to date or sensible, okay. (No idea what's the most sensible place to tag it to.)

Building on OpenBSD just became so much easier, thanks to resolving this ticket only need to export Qt5_DIR now:

export Qt5_DIR=/usr/local/lib/qt5/cmake/Qt5
cmake -DCMAKE_CXX_FLAGS='-I/usr/local/include' $DOOMSEEKER_SRC
make


(Okay, I cheated a little bit with better cmake instructions. 😄)

Compare to previous build steps:

export Qt5Widgets_DIR=/usr/local/lib/qt5/cmake/Qt5Widgets
export Qt5LinguistTools_DIR=/usr/local/lib/qt5/cmake/Qt5LinguistTools
export Qt5Multimedia_DIR=/usr/local/lib/qt5/cmake/Qt5Multimedia
export Qt5Xml_DIR=/usr/local/lib/qt5/cmake/Qt5Xml
export CPATH=$CPATH:/usr/local/include
cmake $DOOMSEEKER_SRC
make