<br><br><div class="gmail_quote">2010/11/3 Roman Morawek <span dir="ltr">&lt;<a href="mailto:lists@morawek.at">lists@morawek.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
I try to use the native Maemo address book selection dialog in a Qt<br>
application.<br>
<br>
I followed the information at<br>
<a href="http://wiki.forum.nokia.com/index.php/How_to_use_native_Maemo5_contacts_dialogs" target="_blank">http://wiki.forum.nokia.com/index.php/How_to_use_native_Maemo5_contacts_dialogs</a>.<br>
<br>
However, as I add<br>
  CONFIG += link_pkgconfig<br>
  PKGCONFIG += gtk+-2.0 libosso-abook-1.0<br>
to the Qt project file and<br>
  #include &lt;libosso-abook/osso-abook.h&gt;<br>
to some source file I get the following error:<br>
<br>
In file included from<br>
C:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/gtk-2.0/gtk/gtk.h:47,<br>
                 from<br>
C:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/libosso-abook-1.0/libosso-abook/osso-abook-list-store.h:12,<br>
                 from<br>
C:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/libosso-abook-1.0/libosso-abook/osso-abook-group.h:15,<br>
                 from<br>
C:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/libosso-abook-1.0/libosso-abook/osso-abook-all-group.h:13,<br>
                 from<br>
C:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/libosso-abook-1.0/libosso-abook/osso-abook.h:15,<br>
                 from usernotifier.cpp:33:<br>
<br>
C:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/gtk-2.0/gtk/gtkbindings.h:79:<br>
error: expected unqualified-id before &#39;protected&#39;<br>
<br>
C:/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/gtk-2.0/gtk/gtkbindings.h:79:<br>
error: expected &#39;;&#39; before &#39;protected&#39;<br>
<br>
make: Leaving directory<br>
`/c/Users/roman/Documents/privat/projects/2010/babyphone/svn/trunk/src&#39;<br>
make: *** [usernotifier.o] Error 1<br>
<br>
<br>
I am using QtCreator on Windows, thus MADDE-0.7.48: 20101021-1348.<br>
<br>
How can I resolve this?<br>
<br>
Thanks a lot for your support,<br>
Roman<br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</blockquote></div><br>where did you add<br>#include &lt;libosso-abook/osso-abook.h&gt;<br><br>be sure it is the first line and prior to any qtinclude. For example in qossoabookdialog.h<br>(from <a href="http://wiki.forum.nokia.com/index.php/How_to_use_native_Maemo5_contacts_dialogs" target="_blank">http://wiki.forum.nokia.com/index.php/How_to_use_native_Maemo5_contacts_dialogs</a>.):<br>
<br>#include &lt;libosso-abook/osso-abook.h&gt;<br>#include &lt;QObject&gt;<br>#include &lt;QStringList&gt;<br>....<br>works, and:<br><br>#include &lt;QObject&gt;<br>
#include &lt;QStringList&gt;<br>
#include &lt;libosso-abook/osso-abook.h&gt;<br>...<br>does not work (it gives the same error as yours).<br><br>nicolai<br>