Bug#991798: Acknowledgement (qtcreator: No suitable kits found) [worked around])

2021-08-04 Thread Adam Majer

On 8/3/21 8:23 PM, Ross Boylan wrote:

If this is the intended behavior, I suggest the intentions should change.
At a minimum, some clues in a README.Debian would be helpful.
Ross


There are many ways to use Qt Creator. You can use it to make a Hello 
World C application. In this case, you only need GCC or clang compiler 
installed.


You can use it to make a regular C++ application, then you need a C++ 
compiler installed.


If you want Qt, you need to install the Qt modules you want to use. Qt 
Creator is not there to hand-hold you. In reality, if you installed 
upstream version, you would get the entire bundled Qt which Debian 
doesn't provide as a single package.


So, you have two choices here,

  1. find the -dev modules to install that your program uses and 
install them, or
  2. download some Qt version from upstream, and compile it with your 
parameters and then point Qt Creator at it.


#2 is not that difficult - that's what I've done for a decade.

As a regular user, you would expect a program to work mostly out of the 
box. But as a developer, you are expected to receive a little less 
hand-holding here.


So, if you run `cmake` or `qmake` and then `make` in a terminal and it 
works and Qt Creator still fails (after you define your kits, which 
actually should be automatic for system installed libraries), that's a 
bug. If the terminal method also fails, it's not a creator bug.


- Adam



Bug#991798: closed by Lisandro Damián Nicanor Pérez Meyer (Re: Bug#991798: Acknowledgement (qtcreator: No suitable kits found) [worked around])

2021-08-03 Thread Ross Boylan
If this is the intended behavior, I suggest the intentions should change.
At a minimum, some clues in a README.Debian would be helpful.
Ross

On Mon, Aug 2, 2021 at 8:12 AM Debian Bug Tracking System <
ow...@bugs.debian.org> wrote:

> This is an automatic notification regarding your Bug report
> which was filed against the qtcreator package:
>
> #991798: qtcreator: No suitable kits found
>
> It has been closed by Lisandro Damián Nicanor Pérez Meyer <
> perezme...@gmail.com>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Lisandro Damián
> Nicanor Pérez Meyer  by
> replying to this email.
>
>
> --
> 991798: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991798
> Debian Bug Tracking System
> Contact ow...@bugs.debian.org with problems
>
>
>
> -- Forwarded message --
> From: "Lisandro Damián Nicanor Pérez Meyer" 
> To: 991798-d...@bugs.debian.org
> Cc:
> Bcc:
> Date: Mon, 2 Aug 2021 12:09:19 -0300
> Subject: Re: Bug#991798: Acknowledgement (qtcreator: No suitable kits
> found) [worked around]
> Hi Ross!
>
> There is a normal misunderstanding with respect to Qt Creator:
> installing it does not warrant you have the necessary Qt development
> files. This is because Qt Creator does not necessarily have to be used
> to code Qt stuff, in fact I use it for coding microcontrollers. So no,
> it will not "work out the box" in the way you expected.
>
> On Mon, 2 Aug 2021 00:42:07 -0700 Ross Boylan
>  wrote:
> > I seem to have got things working on bullseye.  I'm not sure how many of
> > the following steps are essential, except the last one!
> > Also, though this may solve my immediate problem, the issue that
> qtcreator
> > doesn't work "out of the box" remains.  If something about the
> > interrelations between packages makes it impossible to configure
> > automatically, there should at least be guidance about what to do.
> >
> > 1. Install qtbase5-dev.
>
> This is the necessary first step for building Qt applications, no
> matter if you use Qt Creator or not.
>
> > 2. In QtCreator Tools | Options | Kits select the Qt tab.  Apparently the
> > link facility only works for stuff installed
> > in a certain way, not including distribution packages (or so says the
> > internet) .  Use add to point to the qmake which is now
> > available because of 1.
> > 3. Also needed to set Qt version in the Desktop kit, which took a couple
> of
> > tries (maybe need to restart to have it register).
>
> In fact these two steps can be avoided by simply installing Qt and
> then opening Qt Creator.
>
> > 4. Install qtquickcontrols2-5-dev when QtCreator still says"Unknown
> > modules in Qt: Quick".  This is the only qtquick.*dev package, though
> > it hardly seems on point.  Didn't help.
> > 5. Install qtdeclarative5-dev.  Project now builds.
> >
> That's an issue that comes from upstream. The -dev packages are mostly
> named after the Qt submodules it was built from. So the core of the
> QML stuff is installed by qtdeclarative5-dev
>
> Maybe the qtquickcontrols2-5-dev package needs a dependency on
> qtdeclarative5-dev. But all it does is adding controls to QML.
>
> > My guess is that all but #4 are necessary.  #5 is specific to Qt Quick;
> the
> > others are not.
>
> Depends a lot on what you are doing. If you need to use the serial
> port you would need to install libqt5serialport5-dev.
>
> Tip: using aptitude you can look for all the -dev packages by issuing:
>
> aptitude search qt | grep 5 | grep -dev
>
> There is surely a better/apt-only way of doing this, but that's the
> thing I normally use :-)
>
> By the way: we removed qt5-default package from bullseye. That package
> should have never existed.
>
> So what you found are not bugs but indeed the intended way to use
> these packages. I'm so closing this bug.
>
> Cheers, Lisandro.
>
>
> -- Forwarded message --
> From: Ross Boylan 
> To: Debian Bug Tracking System 
> Cc:
> Bcc:
> Date: Sun, 01 Aug 2021 22:49:59 -0700
> Subject: qtcreator: No suitable kits found
> Package: qtcreator
> Version: 4.14.1-1
> Severity: important
> Justification: Unable to use package
>
> Dear Maintainer,
>
>* What led up to the situation?
>
>Install qtcreator and launch it.
>File | New File or Project
>Application (Qt Quick) | Qt Quick Application - Scroll
>Hit choose
>Enter location. Next.
>Accept defaults until get to Kit 

Bug#991798: Acknowledgement (qtcreator: No suitable kits found) [worked around]

2021-08-02 Thread Ross Boylan
I seem to have got things working on bullseye.  I'm not sure how many of
the following steps are essential, except the last one!
Also, though this may solve my immediate problem, the issue that qtcreator
doesn't work "out of the box" remains.  If something about the
interrelations between packages makes it impossible to configure
automatically, there should at least be guidance about what to do.

1. Install qtbase5-dev.
2. In QtCreator Tools | Options | Kits select the Qt tab.  Apparently the
link facility only works for stuff installed
in a certain way, not including distribution packages (or so says the
internet) .  Use add to point to the qmake which is now
available because of 1.
3. Also needed to set Qt version in the Desktop kit, which took a couple of
tries (maybe need to restart to have it register).
4. Install qtquickcontrols2-5-dev when QtCreator still says"Unknown
modules in Qt: Quick".  This is the only qtquick.*dev package, though
it hardly seems on point.  Didn't help.
5. Install qtdeclarative5-dev.  Project now builds.

My guess is that all but #4 are necessary.  #5 is specific to Qt Quick; the
others are not.