Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Trouble making a .deb package from Qt4 project. dpkg-buildpackage attempts to use Qt5 - while I specify Qt4 every time?
Forum Update on Monday, May 27th 2025

Trouble making a .deb package from Qt4 project. dpkg-buildpackage attempts to use Qt5 - while I specify Qt4 every time?

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andse
    wrote on last edited by
    #1

    The project compiles fine, I use

    @qmake-qt4 qgroundcontrol.pro
    make@

    now, I try to make a debian package:
    I do:
    @dh_make -s -c gpl -e myEmailAddress --createorig@
    it completes fine, dependencies are missing, but overall it's fine.
    I say:
    @dpkg-buildpackage@

    it works for a while, then fails, with an attempt to use qmake(qt5)
    @
    dpkg-source: warning: ignoring deletion of file build-release/obj/cache.o
    dpkg-source: warning: ignoring deletion of file build-release/obj/ParamCompareDialog.o
    dpkg-source: warning: ignoring deletion of file src/ui/WaypointList.cc.orig
    dpkg-source: info: building apmplanner in apmplanner_2.0b2-1.debian.tar.gz
    dpkg-source: info: building apmplanner in apmplanner_2.0b2-1.dsc
    debian/rules build
    dh build
    dh_testdir
    dh_auto_configure
    Usage: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake [mode] [options] [files]

    QMake has two modes, one mode for generating project files based on
    some heuristics, and the other for generating makefiles. Normally you
    shouldn't need to specify a mode, as makefile generation is the default
    mode for qmake, but you may use this to test qmake on an existing project
    @

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved