It looks like the initial #include <QDebug> was actually correct and that
it indeed doesn't find it somehow. Manually adding Qt5::Core and
Qt5::Widgets to target_link_libraries seems to work though. Then there's
still some error (declaration of 'float t' shadows template parameter), but
I don't know how to fix that one.

Op 20 okt. 2017 11:03 a.m. schreef "Andreas Tille" <andr...@an3as.eu>:

> Hi again,
>
> On Fri, Oct 20, 2017 at 10:30:08AM +0200, Wout B wrote:
> > Shouldn't it be #include <QtCore/qdebug.h>? I may be wrong though.
>
> I replaced all instances of '#include <QDebug>' by
> '#include <QtCore/qdebug.h>' and the error now occures in some other
> file (not sure whether this is by chance due to parallel build):
>
> cd /build/beads-1.1.13/obj-x86_64-linux-gnu/src/qtbeads && /usr/bin/c++
> -DHAVE_PTHREAD_H -DQT_NO_DEBUG_OUTPUT 
> -I/build/beads-1.1.13/src/X11_INCLUDE_DIR
> -I/build/beads-1.1.13/obj-x86_64-linux-gnu  -g -O2
> -fdebug-prefix-map=/build/beads-1.1.13=. -fstack-protector-strong
> -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O3
> -DNDEBUG   -Wall -o CMakeFiles/qtbeads.dir/__/images/imageIntensity.cpp.o
> -c /build/beads-1.1.13/src/images/imageIntensity.cpp
> In file included from /build/beads-1.1.13/src/
> images/imageIntensity.cpp:1:0:
> /build/beads-1.1.13/src/images/imageIntensity.h:4:10: fatal error:
> QtCore/qdebug.h: No such file or directory
>  #include <QtCore/qdebug.h>
>           ^~~~~~~~~~~~~~~~~
> compilation terminated.
>
>
> I verified that my chroot has
>
> # find /usr/include -name qdebug.h
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h
>
>
> but I'm somehow missing some proper -I option to tell gcc where to seek
> for the qt5 includes.  I'm afraid that the cmake configuration was not
> fully successful.  Any further hints?
>
> Kind regards
>
>       Andreas.
>
>
> > Op 19 okt. 2017 10:41 p.m. schreef "Andreas Tille" <andr...@an3as.eu>:
> >
> > On Thu, Oct 19, 2017 at 07:18:45PM +0200, Wout B wrote:
> > > Have you added the LinguistTools component too? I think it depends on
> > that.
> >
> > Ahhh, another step forward and I fixed some more in [1].
> >
> > Now the configuration seems to be finalised but I get:
> >
> > ...
> > cd /build/beads-1.1.13/obj-x86_64-linux-gnu/src && /usr/bin/c++
> > -DHAVE_PTHREAD_H -DQT_NO_DEBUG_OUTPUT
> > -I/build/beads-1.1.13/src/X11_INCLUDE_DIR
> > -g -O2 -fdebug-prefix-map=/build/beads-1.1.
> > In file included from /build/beads-1.1.13/src/beads.cpp:1:0:
> > /build/beads-1.1.13/src/beads.h:19:10: fatal error: QDebug: No such
> file or
> > directory
> >  #include <QDebug>
> >           ^~~~~~~~
> > compilation terminated.
> > src/CMakeFiles/beads.dir/build.make:65: recipe for target
> > 'src/CMakeFiles/beads.dir/beads.cpp.o' failed
> > make[3]: *** [src/CMakeFiles/beads.dir/beads.cpp.o] Error 1
> > ...
> >
> >
> > What next?
> >
> > Thanks for all the helpful hints in any case
> >
> >      Andreas.
> >
> >
> > > > > [1] https://anonscm.debian.org/git/debian-med/beads.git
> > > > No repositories found
> > >
> > > Strange.  I was able to create a fresh clone from this URL.
> > >
> > > Kind regards
> > >
> > >       Andreas.
> > >
> > >
> > > --
> > > http://fam-tille.de
> >
> > --
> > http://fam-tille.de
>
> --
> http://fam-tille.de
>
>

Reply via email to