QtWidgets/QAction is a Qt5 header file.

Despite of "USE_QT4=true", CMake somewhy invoked Qt5 uic (User
Interface Compiler) to generate ui_MainWindow.h from MainWindow.ui.

if you have to manually pass such cpp flags as Qt4 includes, then
there is something wrong with your Qt4/CMake setup.

I don't have Qt4 on my pc, but I'll check Qt4 build sometime soon.

At the same time, you have Qt5 uic, so you have installed Qt5. Why do
you use five years old Qt4 instead? Would you mind to check if default
Qt version (without USE_QT4 argument it would be Qt5) would work for
you?

On Wed, May 25, 2016 at 4:51 AM, Mateus Bellomo <mateusbell...@gmail.com> wrote:
> Ok...now I got this:
>
> mateus@mateus:~/simpleCm$ cmake CPPFLAGS='-I/usr/include/qt4
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
> -I/usr/include/qt4/QtDBus' -DENABLE_EXAMPLE=true -DUSE_QT4=true
> CMakeLists.txt
> -- Found Qt4: /usr/bin/qmake (found suitable version "4.8.6", minimum
> required is "4.6.0")
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/mateus/simpleCm
>
> mateus@mateus:~/simpleCm$ make -j5
> Scanning dependencies of target simple-connection-manager-qt4_automoc
> [ 16%] [ 16%] Automatic moc for target simple-connection-manager-qt4
> Automatic moc for target simplecm-qt4
> Generating moc_CComboBoxDelegate.cpp
> [ 16%] Built target simplecm-qt4_automoc
> [ 50%] Built target simplecm-qt4
> Generating moc_CContactsModel.cpp
> Generating moc_MainWindow.cpp
> [ 50%] Built target simple-connection-manager-qt4_automoc
> Scanning dependencies of target simple-connection-manager-qt4
> [ 58%] [ 75%] [ 75%] [ 83%] [ 91%] Building CXX object
> example/CMakeFiles/simple-connection-manager-qt4.dir/CComboBoxDelegate.cpp.o
> Building CXX object
> example/CMakeFiles/simple-connection-manager-qt4.dir/main.cpp.o
> Building CXX object
> example/CMakeFiles/simple-connection-manager-qt4.dir/MainWindow.cpp.o
> Building CXX object
> example/CMakeFiles/simple-connection-manager-qt4.dir/CContactsModel.cpp.o
> Building CXX object
> example/CMakeFiles/simple-connection-manager-qt4.dir/simple-connection-manager-qt4_automoc.cpp.o
> In file included from /home/mateus/simpleCm/example/MainWindow.cpp:2:0:
> /home/mateus/simpleCm/example/ui_MainWindow.h:13:29: fatal error:
> QtWidgets/QAction: No such file or directory
>  #include <QtWidgets/QAction>
>                              ^
> compilation terminated.
> example/CMakeFiles/simple-connection-manager-qt4.dir/build.make:82: recipe
> for target
> 'example/CMakeFiles/simple-connection-manager-qt4.dir/MainWindow.cpp.o'
> failed
> make[2]: ***
> [example/CMakeFiles/simple-connection-manager-qt4.dir/MainWindow.cpp.o]
> Error 1
> make[2]: *** Waiting for unfinished jobs....
> CMakeFiles/Makefile2:143: recipe for target
> 'example/CMakeFiles/simple-connection-manager-qt4.dir/all' failed
> make[1]: *** [example/CMakeFiles/simple-connection-manager-qt4.dir/all]
> Error 2
> Makefile:117: recipe for target 'all' failed
> make: *** [all] Error 2
>
> Which extra library I should include (I already included all libraries used
> in resiprocate)?
>
>
> 2016-05-24 16:24 GMT-03:00 Alexandr Akulich <akulichalexan...@gmail.com>:
>>
>> >But I'm not finding any executable.
>> -DENABLE_EXAMPLE=true
>
>
>
> _______________________________________________
> telepathy mailing list
> telepathy@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/telepathy
>
_______________________________________________
telepathy mailing list
telepathy@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/telepathy

Reply via email to