[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

C++ help needed (Was: Help with cmake / Qt5 migration needed)



Hi again,

On Fri, Oct 20, 2017 at 11:55:22AM +0200, Wout B wrote:
> 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.

I can confirm that this helps - thanks a lot!

> Then there's
> still some error (declaration of 'float t' shadows template parameter), but
> I don't know how to fix that one.

I think I fixed this by removing the code copy of CImg.h and using the
Debian packaged version instead.  But the QDebug issue came back and
may be I need another trick to tweak src/qtbeads/CMakeLists.txt that
the -I directive is inserted properly:

...
cd /build/beads-1.1.13+dfsg/obj-x86_64-linux-gnu/src/qtbeads && /usr/bin/c++  -DHAVE_PTHREAD_H -DQT_NO_DEBUG_OUTPUT -I/build/beads-1.1.13+dfsg/src/X11_INCLUDE_DIR -I/build/beads-1.1.13+dfsg
In file included from /build/beads-1.1.13+dfsg/src/images/imageIntensity.cpp:1:0:
/build/beads-1.1.13+dfsg/src/images/imageIntensity.h:4:10: fatal error: QDebug: No such file or directory
 #include <QDebug>
          ^~~~~~~~
compilation terminated.
src/qtbeads/CMakeFiles/qtbeads.dir/build.make:145: recipe for target 'src/qtbeads/CMakeFiles/qtbeads.dir/__/images/imageIntensity.cpp.o' failed
make[3]: *** [src/qtbeads/CMakeFiles/qtbeads.dir/__/images/imageIntensity.cpp.o] Error 1
...

I have the feeling that this might be the last hint I need. ;-)

Thanks for all your help

    Andreas.


[1] https://anonscm.debian.org/git/debian-med/beads.git

-- 
http://fam-tille.de


Reply to: