[Telepathy] buddy list methods
Mateus Bellomo
mateusbellomo at gmail.com
Tue May 24 16:52:58 UTC 2016
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 at 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 at 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 <mateusbellomo at gmail.com>:
> 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 CMP0000".
> 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 at 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 <TelepathyQt/Debug>
> ^
> 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 <daniel at pocock.pro>:
>
>>
>>
>> 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 <TelepathyQt/Debug>
>> >
>> >
>> > 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 at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/telepathy
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/telepathy/attachments/20160524/ccd1fca4/attachment.html>
More information about the telepathy
mailing list