<div dir="ltr"><div>I think I was trying to compile in the wrong place. I run again from ~/simpleCm instead of ~/simpleCm/example and it compiled ok:<br><br>mateus@mateus:~/simpleCm$ cmake CPPFLAGS='-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDBus' -DUSE_QT4=true CMakeLists.txt <br>-- Looking for Q_WS_X11<br>-- Looking for Q_WS_X11 - found<br>-- Looking for Q_WS_WIN<br>-- Looking for Q_WS_WIN - not found<br>-- Looking for Q_WS_QWS<br>-- Looking for Q_WS_QWS - not found<br>-- Looking for Q_WS_MAC<br>-- Looking for Q_WS_MAC - not found<br>-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.6", minimum required is "4.6.0") <br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: /home/mateus/simpleCm<br>mateus@mateus:~/simpleCm$ make -j5<br>Scanning dependencies of target simplecm-qt4_automoc<br>[ 20%] Automatic moc for target simplecm-qt4<br>Generating moc_connection.cpp<br>Generating moc_protocol.cpp<br>Generating moc_textchannel.cpp<br>[ 20%] Built target simplecm-qt4_automoc<br>Scanning dependencies of target simplecm-qt4<br>[ 80%] [ 80%] [ 80%] [100%] Building CXX object CMakeFiles/simplecm-qt4.dir/connection.cpp.o<br>Building CXX object CMakeFiles/simplecm-qt4.dir/textchannel.cpp.o<br>Building CXX object CMakeFiles/simplecm-qt4.dir/protocol.cpp.o<br>Building CXX object CMakeFiles/simplecm-qt4.dir/simplecm-qt4_automoc.cpp.o<br>Linking CXX static library libsimplecm-qt4.a<br>[100%] Built target simplecm-qt4<br><br><br></div>But I'm not finding any executable.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-24 13:44 GMT-03:00 Mateus Bellomo <span dir="ltr"><<a href="mailto:mateusbellomo@gmail.com" target="_blank">mateusbellomo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I ran this:<br><br>$ cmake CPPFLAGS='-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDBus' CMakeLists.txt <br><br>and it showed some warns:<br><br>CMake Warning (dev) in CMakeLists.txt:<br> No cmake_minimum_required command is present. A line of code such as<br><br> cmake_minimum_required(VERSION 3.0)<br><br> should be added at the top of the file. The version specified may be lower<br> if you wish to support older CMake versions for this project. For more<br> information run "cmake --help-policy CMP0000".<br>This warning is for project developers. Use -Wno-dev to suppress it.<br><br>-- Configuring done<br>CMake Warning (dev) at CMakeLists.txt:35 (add_executable):<br> Policy CMP0003 should be set before this line. Add code such as<br><br> if(COMMAND cmake_policy)<br> cmake_policy(SET CMP0003 NEW)<br> endif(COMMAND cmake_policy)<br><br> as early as possible but after the most recent call to<br> cmake_minimum_required or cmake_policy(VERSION). This warning appears<br> because target "simple-connection-manager-qt" links to some libraries for<br> which the linker must search:<br><br> simplecm-qt<br><br> and other libraries with known full path:<br><br> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3.2<br><br> CMake is adding directories in the second list to the linker search path in<br> case they are needed to find libraries from the first list (for backwards<br> compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable<br> or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for<br> more information.<br>This warning is for project developers. Use -Wno-dev to suppress it.<br><br>-- Generating done<br>-- Build files have been written to: /home/mateus/simpleCm/example<br><br></div>Then I run:<br><br>mateus@mateus:~/simpleCm/example$ make -j5<br>[ 14%] Automatic moc for target simple-connection-manager-qt<br>[ 14%] Built target simple-connection-manager-qt_automoc<br>[ 28%] [ 42%] [ 57%] [ 71%] Building CXX object CMakeFiles/simple-connection-manager-qt.dir/CContactsModel.o<br>Building CXX object CMakeFiles/simple-connection-manager-qt.dir/main.o<br>Building CXX object CMakeFiles/simple-connection-manager-qt.dir/MainWindow.o<br>Building CXX object CMakeFiles/simple-connection-manager-qt.dir/simple-connection-manager-qt_automoc.o<span class=""><br>/home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error: protocol.h: No such file or directory<br> #include "protocol.h"<br> ^<br>compilation terminated.<br>/home/mateus/simpleCm/example/main.cpp:4:29: fatal error: TelepathyQt/Debug: No such file or directory<br> #include <TelepathyQt/Debug><br></span> ^<br>compilation terminated.<br>/home/mateus/simpleCm/example/MainWindow.cpp:8:22: fatal error: protocol.h: No such file or directory<br> #include "protocol.h"<br><br></div>and got same thing. I tried to find this folder Debug and there is a /usr/include/qt4/QtCore/qdebug.h but I didn't find a Debug.h<br><div><div><br><br><br><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-05-24 13:04 GMT-03:00 Daniel Pocock <span dir="ltr"><<a href="mailto:daniel@pocock.pro" target="_blank">daniel@pocock.pro</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
On 24/05/16 17:58, Mateus Bellomo wrote:<br>
>> Just build the example application, start CM and register an account<br>
> (e.g. via mc-tool).<br>
><br>
> I've tried to<br>
><br>
> ~/simpleCm/example$ cmake CMakeLists.txt<br>
> ~/simpleCm/example$ make<br>
><br>
> but I'm getting this errors:<br>
><br>
> /home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error:<br>
> protocol.h: No such file or directory<br>
> #include "protocol.h"<br>
> ^<br>
> compilation terminated.<br>
> /home/mateus/simpleCm/example/main.cpp:4:29: fatal error:<br>
> TelepathyQt/Debug: No such file or directory<br>
> #include <TelepathyQt/Debug><br>
><br>
><br>
> I thought the Qt that I've installed for resiprocate could be used by<br>
> any other program but apparently this is not true. How can I use the<br>
> telepathy-qt library from resiprocate?<br>
><br>
<br>
<br>
</span>Look at build/debian.sh and see the way we build ${QT_LIBS} and add it<br>
to $CPPFLAGS<br>
<br>
I think you can then run<br>
<br>
cmake CPPFLAGS='..... whatever' CMakeLists.txt<br>
<br>
<br>
and it will work<br>
<br>
Regards,<br>
<br>
Daniel<br>
<div><div>_______________________________________________<br>
telepathy mailing list<br>
<a href="mailto:telepathy@lists.freedesktop.org" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>