Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M Mobipocket
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GraphicsGraphics
  • Mobipocket
  • Merge requests
  • !15

Use QMobipocket6 as name for the Qt6 build variant, to allow co-installation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Friedrich W. H. Kossebau requested to merge work/kossebau/qt6variant into master Jan 20, 2023
  • Overview 3
  • Commits 2
  • Pipelines 3
  • Changes 3

Also install headers of Qt5 version into a visibility prefix QMobipocket/. Prevents headers to be seen when not linking to this version of the library.

To give a better idea, here what is deployed now:

Built against Qt5 (only difference to before: additional QMobipocket/ with includes)

-- Installing: <prefix>/include/QMobipocket/qmobipocket/mobipocket.h
-- Installing: <prefix>/include/QMobipocket/qmobipocket/qfilestream.h
-- Installing: <prefix>/include/QMobipocket/qmobipocket/qmobipocket_export.h
-- Installing: <prefix>/lib64/libqmobipocket.so.2.0.0
-- Installing: <prefix>/lib64/libqmobipocket.so.2
-- Set runtime path of "<prefix>/lib64/libqmobipocket.so.2.0.0" to "<prefix>/lib64"
-- Installing: <prefix>/lib64/libqmobipocket.so
-- Installing: <prefix>/lib64/cmake/QMobipocket/QMobipocketTargets.cmake
-- Installing: <prefix>/lib64/cmake/QMobipocket/QMobipocketTargets-debug.cmake
-- Installing: <prefix>/lib64/cmake/QMobipocket/QMobipocketConfig.cmake
-- Installing: <prefix>/lib64/cmake/QMobipocket/QMobipocketConfigVersion.cmake

Built against Qt6:

-- Installing: <prefix>/include/QMobipocket6/qmobipocket/mobipocket.h
-- Installing: <prefix>/include/QMobipocket6/qmobipocket/qfilestream.h
-- Installing: <prefix>/include/QMobipocket6/qmobipocket/qmobipocket_export.h
-- Installing: <prefix>/lib64/libQMobipocket6.so.1.0.0
-- Installing: <prefix>/lib64/libQMobipocket6.so.1
-- Set runtime path of "<prefix>/lib64/libQMobipocket6.so.1.0.0" to "<prefix>/"
-- Installing: <prefix>/lib64/libQMobipocket6.so
-- Installing: <prefix>/lib64/cmake/QMobipocket6/QMobipocket6Targets.cmake
-- Installing: <prefix>/lib64/cmake/QMobipocket6/QMobipocket6Targets-debug.cmake
-- Installing: <prefix>/lib64/cmake/QMobipocket6/QMobipocket6Config.cmake
-- Installing: <prefix>/lib64/cmake/QMobipocket6/QMobipocket6ConfigVersion.cmake

Usage would be like this

With Qt5 as before:

find_package(QMobipocket 2.0)
target_link_libraries(foo qmobipocket)

With Qt6 (see also frameworks/kfilemetadata!80 (merged)):

find_package(QMobipocket6 1.0)
target_link_libraries(foo QMobipocket6)
Edited Jan 21, 2023 by Friedrich W. H. Kossebau
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/kossebau/qt6variant