Re: [Telepathy] buddy list methods
On Thu, 2016-05-26 at 09:31 -0300, Mateus Bellomo wrote: > > Looking at the first line, you need to install the libqt4-dev > package > (which you probably have already) and ensure that QtGui is included > in > your CPPFLAGS > > 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 Do you have qt4-qmake installed? Also If you don't have them it might help to have qtchooser and qt4- default installed as well. when I tried building simpleCm I had the following cmake log (and I was able to build the generated project) * cmake .. -DUSE_QT4=TRUE -DENABLE_EXAMPLE=TRUE -- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.7", minimum required is "4.6.0") -- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.7", minimum required is "4.6.0") -- Configuring done -- Generating done -- Build files have been written to: /tmp/simpleCm/build * Diane ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
Alexandr, I tried to build simpleCM [1] again and it worked. I saw some differences in the includes of ui_MainWindow.h but I didn't see a new commit at [1]. Anyway, now I could run it...Thank you very much. I tried to add a contact (mate...@ws.sip5060.net) and I got segmentation fault: mateus@mateus:~/GSOC/simpleCm/example$ mc-tool add simplecm/simplecm testing string:self_id=aaa mateus@mateus:~/GSOC/simpleCm/example$ mc-tool enable simplecm/simplecm/account0 mateus@mateus:~/GSOC/simpleCm/example$ ./simple-connection-manager-qt4 tp-qt 0.9.6.1 DEBUG: Interface "org.freedesktop.Telepathy.Protocol.Interface.Addressing" plugged tp-qt 0.9.6.1 DEBUG: Interface "org.freedesktop.Telepathy.Protocol.Interface.Presence" plugged tp-qt 0.9.6.1 DEBUG: Protocol "simplecm" added to CM tp-qt 0.9.6.1 DEBUG: Registering protocol "simplecm" at path "/org/freedesktop/Telepathy/ConnectionManager/simplecm/simplecm" for CM "/org/freedesktop/Telepathy/ConnectionManager/simplecm" at bus name "org.freedesktop.Telepathy.ConnectionManager.simplecm" tp-qt 0.9.6.1 DEBUG: Registered object "/org/freedesktop/Telepathy/ConnectionManager/simplecm/simplecm" at bus name "org.freedesktop.Telepathy.ConnectionManager.simplecm" tp-qt 0.9.6.1 DEBUG: Registering CM "/org/freedesktop/Telepathy/ConnectionManager/simplecm" at bus name "org.freedesktop.Telepathy.ConnectionManager.simplecm" tp-qt 0.9.6.1 DEBUG: Registered object "/org/freedesktop/Telepathy/ConnectionManager/simplecm" at bus name "org.freedesktop.Telepathy.ConnectionManager.simplecm" Segmentation fault (core dumped) Then I added a name as contact (mateus) and It worked. What I wanted to do is to add a real contact to see what should happen with a contact list so I could compare with resiprocate. How can I do that using simpleCM? [1] https://github.com/Kaffeine/simpleCm 2016-05-26 9:31 GMT-03:00 Mateus Bellomo: > > Looking at the first line, you need to install the libqt4-dev package > (which you probably have already) and ensure that QtGui is included in > your CPPFLAGS > > 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: > > #include > > to this: > > #include > > but I don't know if this is going to cause some trouble later. > > > > > 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? > > 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? > > 2016-05-25 3:38 GMT-03:00 Alexandr Akulich : > >> 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 >> 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 >>
Re: [Telepathy] buddy list methods
> Looking at the first line, you need to install the libqt4-dev package (which you probably have already) and ensure that QtGui is included in your CPPFLAGS 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: #include to this: #include but I don't know if this is going to cause some trouble later. > 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? 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? 2016-05-25 3:38 GMT-03:00 Alexandr Akulich: > 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 > 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 > > ^ > > 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 >: > >> > >> >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
Re: [Telepathy] buddy list methods
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 Bellomowrote: > 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 > ^ > 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 : >> >> >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
Re: [Telepathy] buddy list methods
On 25/05/16 01:51, Mateus Bellomo 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 ... > 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 ... > > Which extra library I should include (I already included all libraries > used in resiprocate)? > When I encounter a problem like this, I normally look at https://packages.debian.org See "Search the contents of packages" Type in the name of the missing header file (e.g. QAction or QAction.h or whatever) and it shows you the packages containing that file In this case, you will see: /usr/include/qt4/QtGui/QAction libqt4-dev /usr/include/qt5/QtWidgets/QAction qtbase5-dev [sparc, s390, ia64] You can ignore the second line, it only applies to sparc, s390 and ia64 users. Looking at the first line, you need to install the libqt4-dev package (which you probably have already) and ensure that QtGui is included in your CPPFLAGS ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
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 ^ 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: > >But I'm not finding any executable. > -DENABLE_EXAMPLE=true > ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
>But I'm not finding any executable. -DENABLE_EXAMPLE=true ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
I think I was trying to compile in the wrong place. I run again from ~/simpleCm instead of ~/simpleCm/example and it compiled ok: 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 -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- 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 simplecm-qt4_automoc [ 20%] Automatic moc for target simplecm-qt4 Generating moc_connection.cpp Generating moc_protocol.cpp Generating moc_textchannel.cpp [ 20%] Built target simplecm-qt4_automoc Scanning dependencies of target simplecm-qt4 [ 80%] [ 80%] [ 80%] [100%] Building CXX object CMakeFiles/simplecm-qt4.dir/connection.cpp.o Building CXX object CMakeFiles/simplecm-qt4.dir/textchannel.cpp.o Building CXX object CMakeFiles/simplecm-qt4.dir/protocol.cpp.o Building CXX object CMakeFiles/simplecm-qt4.dir/simplecm-qt4_automoc.cpp.o Linking CXX static library libsimplecm-qt4.a [100%] Built target simplecm-qt4 But I'm not finding any executable. 2016-05-24 13:44 GMT-03:00 Mateus Bellomo: > I ran this: > > $ cmake CPPFLAGS='-I/usr/include/qt4 -I/usr/include/qt4/QtCore > -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDBus' CMakeLists.txt > > and it showed some warns: > > CMake Warning (dev) in CMakeLists.txt: > No cmake_minimum_required command is present. A line of code such as > > cmake_minimum_required(VERSION 3.0) > > should be added at the top of the file. The version specified may be > lower > if you wish to support older CMake versions for this project. For more > information run "cmake --help-policy CMP". > This warning is for project developers. Use -Wno-dev to suppress it. > > -- Configuring done > CMake Warning (dev) at CMakeLists.txt:35 (add_executable): > Policy CMP0003 should be set before this line. Add code such as > > if(COMMAND cmake_policy) > cmake_policy(SET CMP0003 NEW) > endif(COMMAND cmake_policy) > > as early as possible but after the most recent call to > cmake_minimum_required or cmake_policy(VERSION). This warning appears > because target "simple-connection-manager-qt" links to some libraries for > which the linker must search: > > simplecm-qt > > and other libraries with known full path: > > /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3.2 > > CMake is adding directories in the second list to the linker search path > in > case they are needed to find libraries from the first list (for backwards > compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to > enable > or disable this behavior explicitly. Run "cmake --help-policy CMP0003" > for > more information. > This warning is for project developers. Use -Wno-dev to suppress it. > > -- Generating done > -- Build files have been written to: /home/mateus/simpleCm/example > > Then I run: > > mateus@mateus:~/simpleCm/example$ make -j5 > [ 14%] Automatic moc for target simple-connection-manager-qt > [ 14%] Built target simple-connection-manager-qt_automoc > [ 28%] [ 42%] [ 57%] [ 71%] Building CXX object > CMakeFiles/simple-connection-manager-qt.dir/CContactsModel.o > Building CXX object CMakeFiles/simple-connection-manager-qt.dir/main.o > Building CXX object > CMakeFiles/simple-connection-manager-qt.dir/MainWindow.o > Building CXX object > CMakeFiles/simple-connection-manager-qt.dir/simple-connection-manager-qt_automoc.o > /home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error: > protocol.h: No such file or directory > #include "protocol.h" > ^ > compilation terminated. > /home/mateus/simpleCm/example/main.cpp:4:29: fatal error: > TelepathyQt/Debug: No such file or directory > #include > ^ > compilation terminated. > /home/mateus/simpleCm/example/MainWindow.cpp:8:22: fatal error: > protocol.h: No such file or directory > #include "protocol.h" > > 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 > > > > > > 2016-05-24 13:04 GMT-03:00 Daniel Pocock : > >> >> >> On 24/05/16 17:58, Mateus Bellomo wrote: >> >> Just build the example application, start CM and register an account >> > (e.g. via mc-tool). >> > >> > I've tried to >> > >> > ~/simpleCm/example$ cmake CMakeLists.txt >> > ~/simpleCm/example$ make >> > >> > but I'm getting this errors: >> > >> > /home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error: >> > protocol.h: No such file or directory >> > #include
Re: [Telepathy] buddy list methods
I ran this: $ cmake CPPFLAGS='-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDBus' CMakeLists.txt and it showed some warns: CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.0) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done CMake Warning (dev) at CMakeLists.txt:35 (add_executable): Policy CMP0003 should be set before this line. Add code such as if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) endif(COMMAND cmake_policy) as early as possible but after the most recent call to cmake_minimum_required or cmake_policy(VERSION). This warning appears because target "simple-connection-manager-qt" links to some libraries for which the linker must search: simplecm-qt and other libraries with known full path: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3.2 CMake is adding directories in the second list to the linker search path in case they are needed to find libraries from the first list (for backwards compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for more information. This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done -- Build files have been written to: /home/mateus/simpleCm/example Then I run: mateus@mateus:~/simpleCm/example$ make -j5 [ 14%] Automatic moc for target simple-connection-manager-qt [ 14%] Built target simple-connection-manager-qt_automoc [ 28%] [ 42%] [ 57%] [ 71%] Building CXX object CMakeFiles/simple-connection-manager-qt.dir/CContactsModel.o Building CXX object CMakeFiles/simple-connection-manager-qt.dir/main.o Building CXX object CMakeFiles/simple-connection-manager-qt.dir/MainWindow.o Building CXX object CMakeFiles/simple-connection-manager-qt.dir/simple-connection-manager-qt_automoc.o /home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error: protocol.h: No such file or directory #include "protocol.h" ^ compilation terminated. /home/mateus/simpleCm/example/main.cpp:4:29: fatal error: TelepathyQt/Debug: No such file or directory #include ^ compilation terminated. /home/mateus/simpleCm/example/MainWindow.cpp:8:22: fatal error: protocol.h: No such file or directory #include "protocol.h" 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 2016-05-24 13:04 GMT-03:00 Daniel Pocock: > > > On 24/05/16 17:58, Mateus Bellomo wrote: > >> Just build the example application, start CM and register an account > > (e.g. via mc-tool). > > > > I've tried to > > > > ~/simpleCm/example$ cmake CMakeLists.txt > > ~/simpleCm/example$ make > > > > but I'm getting this errors: > > > > /home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error: > > protocol.h: No such file or directory > > #include "protocol.h" > > ^ > > compilation terminated. > > /home/mateus/simpleCm/example/main.cpp:4:29: fatal error: > > TelepathyQt/Debug: No such file or directory > > #include > > > > > > I thought the Qt that I've installed for resiprocate could be used by > > any other program but apparently this is not true. How can I use the > > telepathy-qt library from resiprocate? > > > > > Look at build/debian.sh and see the way we build ${QT_LIBS} and add it > to $CPPFLAGS > > I think you can then run > > cmake CPPFLAGS='. whatever' CMakeLists.txt > > > and it will work > > Regards, > > Daniel > ___ > 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
Re: [Telepathy] buddy list methods
On 24/05/16 17:58, Mateus Bellomo wrote: >> Just build the example application, start CM and register an account > (e.g. via mc-tool). > > I've tried to > > ~/simpleCm/example$ cmake CMakeLists.txt > ~/simpleCm/example$ make > > but I'm getting this errors: > > /home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error: > protocol.h: No such file or directory > #include "protocol.h" > ^ > compilation terminated. > /home/mateus/simpleCm/example/main.cpp:4:29: fatal error: > TelepathyQt/Debug: No such file or directory > #include > > > I thought the Qt that I've installed for resiprocate could be used by > any other program but apparently this is not true. How can I use the > telepathy-qt library from resiprocate? > Look at build/debian.sh and see the way we build ${QT_LIBS} and add it to $CPPFLAGS I think you can then run cmake CPPFLAGS='. whatever' CMakeLists.txt and it will work Regards, Daniel ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
> Just build the example application, start CM and register an account (e.g. via mc-tool). I've tried to ~/simpleCm/example$ cmake CMakeLists.txt ~/simpleCm/example$ make but I'm getting this errors: /home/mateus/simpleCm/example/CContactsModel.cpp:3:22: fatal error: protocol.h: No such file or directory #include "protocol.h" ^ compilation terminated. /home/mateus/simpleCm/example/main.cpp:4:29: fatal error: TelepathyQt/Debug: No such file or directory #include I thought the Qt that I've installed for resiprocate could be used by any other program but apparently this is not true. How can I use the telepathy-qt library from resiprocate? 2016-05-24 12:33 GMT-03:00 Alexandr Akulich: > He Mateus, > > You might be interested in SimpleCM. It doesn't need any backend; you > don't have to install anything. > Just build the example application, start CM and register an account > (e.g. via mc-tool). > > [1] https://github.com/Kaffeine/simpleCm > > On Tue, May 24, 2016 at 6:58 PM, Mateus Bellomo > wrote: > >> Have you tried running that and adding a couple of contacts to the buddy > >> list to test it? > > > > No I didn't. I will try to do that. > > > > 2016-05-24 10:52 GMT-03:00 Daniel Pocock : > >> > >> > >> > >> On 24/05/16 15:47, Mateus Bellomo wrote: > >> >> Can you compare with the one of the other components based on > >> >> TelepathyQt? > >> > > >> > Are you referring from some component at resiprocate? > >> > > >> > >> > >> No, I was thinking about telepathy-morse perhaps. Have you tried > >> running that and adding a couple of contacts to the buddy list to test > it? > >> ___ > >> 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 > > > ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
He Mateus, You might be interested in SimpleCM. It doesn't need any backend; you don't have to install anything. Just build the example application, start CM and register an account (e.g. via mc-tool). [1] https://github.com/Kaffeine/simpleCm On Tue, May 24, 2016 at 6:58 PM, Mateus Bellomowrote: >> Have you tried running that and adding a couple of contacts to the buddy >> list to test it? > > No I didn't. I will try to do that. > > 2016-05-24 10:52 GMT-03:00 Daniel Pocock : >> >> >> >> On 24/05/16 15:47, Mateus Bellomo wrote: >> >> Can you compare with the one of the other components based on >> >> TelepathyQt? >> > >> > Are you referring from some component at resiprocate? >> > >> >> >> No, I was thinking about telepathy-morse perhaps. Have you tried >> running that and adding a couple of contacts to the buddy list to test it? >> ___ >> 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 > ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
> Have you tried running that and adding a couple of contacts to the buddy list to test it? No I didn't. I will try to do that. 2016-05-24 10:52 GMT-03:00 Daniel Pocock: > > > On 24/05/16 15:47, Mateus Bellomo wrote: > >> Can you compare with the one of the other components based on > TelepathyQt? > > > > Are you referring from some component at resiprocate? > > > > > No, I was thinking about telepathy-morse perhaps. Have you tried > running that and adding a couple of contacts to the buddy list to test it? > ___ > 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
Re: [Telepathy] buddy list methods
On 24/05/16 15:47, Mateus Bellomo wrote: >> Can you compare with the one of the other components based on TelepathyQt? > > Are you referring from some component at resiprocate? > No, I was thinking about telepathy-morse perhaps. Have you tried running that and adding a couple of contacts to the buddy list to test it? ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
> Can you compare with the one of the other components based on TelepathyQt? Are you referring from some component at resiprocate? 2016-05-24 10:26 GMT-03:00 Daniel Pocock: > > > On 24/05/16 15:22, Mateus Bellomo wrote: > > This is what I'm getting when I initiate empathy [1]. Apparently my list > > of contacts (with one contact) is being loaded but still not appearing > > in the empathy screen. > > > > > > > Can you compare with the one of the other components based on TelepathyQt? > > Can you try running another component in debug mode and see what it > sends to the log when starting up and initializing the buddy list? > > https://wiki.gnome.org/Apps/Empathy/Debugging > > ___ > 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
Re: [Telepathy] buddy list methods
On 24/05/16 15:22, Mateus Bellomo wrote: > This is what I'm getting when I initiate empathy [1]. Apparently my list > of contacts (with one contact) is being loaded but still not appearing > in the empathy screen. > > Can you compare with the one of the other components based on TelepathyQt? Can you try running another component in debug mode and see what it sends to the log when starting up and initializing the buddy list? https://wiki.gnome.org/Apps/Empathy/Debugging ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
This is what I'm getting when I initiate empathy [1]. Apparently my list of contacts (with one contact) is being loaded but still not appearing in the empathy screen. [1] http://paste.debian.net/699719/ 2016-05-24 9:22 GMT-03:00 Mateus Bellomo: > It is related to Aliasing interface [1]? > > > [1] > https://telepathy.freedesktop.org/spec/Connection_Interface_Aliasing.html > > 2016-05-24 9:01 GMT-03:00 Mateus Bellomo : > >> Hello, >> >> I would like to know what methods interface I should implement from [1] >> to be able to see a buddy list. I've already implemented >> getContactListAttributes and I thought it will be sufficient but apparently >> it is not. >> >> >> Thanks. >> >> >> [1] https://telepathy.freedesktop.org/spec/index.html >> [2] >> https://telepathy.freedesktop.org/spec/Connection_Interface_Contact_List.html#Method:GetContactListAttributes >> > > ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] buddy list methods
It is related to Aliasing interface [1]? [1] https://telepathy.freedesktop.org/spec/Connection_Interface_Aliasing.html 2016-05-24 9:01 GMT-03:00 Mateus Bellomo: > Hello, > > I would like to know what methods interface I should implement from [1] to > be able to see a buddy list. I've already implemented > getContactListAttributes and I thought it will be sufficient but apparently > it is not. > > > Thanks. > > > [1] https://telepathy.freedesktop.org/spec/index.html > [2] > https://telepathy.freedesktop.org/spec/Connection_Interface_Contact_List.html#Method:GetContactListAttributes > ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy