<div dir="ltr"><div><div><div><div>> Looking at the first line, you need to install the libqt4-dev package<br>
(which you probably have already) and ensure that QtGui is included in<br>
your CPPFLAGS<br><br></div>Thanks for the tip Daniel. I tried this but still the same error. And looking at the link that you gave I think I know the problem. In qt4 the packet QAction is in the qt4/QtGui folder but in qt5 is in the QtWidgets folder. I could change the line from simpleCm/example/ui_MainWindow.h from this:<br><br>#include <QtWidgets/QAction><br><br></div>to this:<br><br>#include <QtGui/QAction><br><br></div>but I don't know if this is going to cause some trouble later.<br><br><br><br>> At the same time, you have Qt5 uic, so you have installed Qt5. Why do<br>
you use five years old Qt4 instead? Would you mind to check if default<br>
Qt version (without USE_QT4 argument it would be Qt5) would work for<br>
you?<br><br></div>I tried to find qt5 in my pc but I didn't find it. I searched at /usr/include and I only have qt4 folder. I think I have qt4 because I had to do the installation from source (to work with resiprocate). I think if I install qt5 with apt-get maybe my resiprocate config could stop working. What do you think Daniel?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-25 3:38 GMT-03:00 Alexandr Akulich <span dir="ltr"><<a href="mailto:akulichalexander@gmail.com" target="_blank">akulichalexander@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">QtWidgets/QAction is a Qt5 header file.<br>
<br>
Despite of "USE_QT4=true", CMake somewhy invoked Qt5 uic (User<br>
Interface Compiler) to generate ui_MainWindow.h from MainWindow.ui.<br>
<br>
if you have to manually pass such cpp flags as Qt4 includes, then<br>
there is something wrong with your Qt4/CMake setup.<br>
<br>
I don't have Qt4 on my pc, but I'll check Qt4 build sometime soon.<br>
<br>
At the same time, you have Qt5 uic, so you have installed Qt5. Why do<br>
you use five years old Qt4 instead? Would you mind to check if default<br>
Qt version (without USE_QT4 argument it would be Qt5) would work for<br>
you?<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, May 25, 2016 at 4:51 AM, Mateus Bellomo <<a href="mailto:mateusbellomo@gmail.com">mateusbellomo@gmail.com</a>> wrote:<br>
> Ok...now I got this:<br>
><br>
> mateus@mateus:~/simpleCm$ cmake CPPFLAGS='-I/usr/include/qt4<br>
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork<br>
> -I/usr/include/qt4/QtDBus' -DENABLE_EXAMPLE=true -DUSE_QT4=true<br>
> CMakeLists.txt<br>
> -- Found Qt4: /usr/bin/qmake (found suitable version "4.8.6", minimum<br>
> required is "4.6.0")<br>
> -- Configuring done<br>
> -- Generating done<br>
> -- Build files have been written to: /home/mateus/simpleCm<br>
><br>
> mateus@mateus:~/simpleCm$ make -j5<br>
> Scanning dependencies of target simple-connection-manager-qt4_automoc<br>
> [ 16%] [ 16%] Automatic moc for target simple-connection-manager-qt4<br>
> Automatic moc for target simplecm-qt4<br>
> Generating moc_CComboBoxDelegate.cpp<br>
> [ 16%] Built target simplecm-qt4_automoc<br>
> [ 50%] Built target simplecm-qt4<br>
> Generating moc_CContactsModel.cpp<br>
> Generating moc_MainWindow.cpp<br>
> [ 50%] Built target simple-connection-manager-qt4_automoc<br>
> Scanning dependencies of target simple-connection-manager-qt4<br>
> [ 58%] [ 75%] [ 75%] [ 83%] [ 91%] Building CXX object<br>
> example/CMakeFiles/simple-connection-manager-qt4.dir/CComboBoxDelegate.cpp.o<br>
> Building CXX object<br>
> example/CMakeFiles/simple-connection-manager-qt4.dir/main.cpp.o<br>
> Building CXX object<br>
> example/CMakeFiles/simple-connection-manager-qt4.dir/MainWindow.cpp.o<br>
> Building CXX object<br>
> example/CMakeFiles/simple-connection-manager-qt4.dir/CContactsModel.cpp.o<br>
> Building CXX object<br>
> example/CMakeFiles/simple-connection-manager-qt4.dir/simple-connection-manager-qt4_automoc.cpp.o<br>
> In file included from /home/mateus/simpleCm/example/MainWindow.cpp:2:0:<br>
> /home/mateus/simpleCm/example/ui_MainWindow.h:13:29: fatal error:<br>
> QtWidgets/QAction: No such file or directory<br>
>  #include <QtWidgets/QAction><br>
>                              ^<br>
> compilation terminated.<br>
> example/CMakeFiles/simple-connection-manager-qt4.dir/build.make:82: recipe<br>
> for target<br>
> 'example/CMakeFiles/simple-connection-manager-qt4.dir/MainWindow.cpp.o'<br>
> failed<br>
> make[2]: ***<br>
> [example/CMakeFiles/simple-connection-manager-qt4.dir/MainWindow.cpp.o]<br>
> Error 1<br>
> make[2]: *** Waiting for unfinished jobs....<br>
> CMakeFiles/Makefile2:143: recipe for target<br>
> 'example/CMakeFiles/simple-connection-manager-qt4.dir/all' failed<br>
> make[1]: *** [example/CMakeFiles/simple-connection-manager-qt4.dir/all]<br>
> Error 2<br>
> Makefile:117: recipe for target 'all' failed<br>
> make: *** [all] Error 2<br>
><br>
> Which extra library I should include (I already included all libraries used<br>
> in resiprocate)?<br>
><br>
><br>
> 2016-05-24 16:24 GMT-03:00 Alexandr Akulich <<a href="mailto:akulichalexander@gmail.com">akulichalexander@gmail.com</a>>:<br>
>><br>
>> >But I'm not finding any executable.<br>
>> -DENABLE_EXAMPLE=true<br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> telepathy mailing list<br>
> <a href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/telepathy" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/telepathy</a><br>
><br>
</div></div></blockquote></div><br></div>