Results 1 to 6 of 6

Thread: Error including <libnotify/notify.h>

  1. #1
    Join Date
    Jul 2011
    Posts
    14
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Error including <libnotify/notify.h>

    I want to apply the simple notification example in the following link

    http://www.developer.nokia.com/Commu...t_applications

    I followed the steps and added the 2 lines in .pro

    CONFIG += link_pkgconfig
    PKGCONFIG += libnotify
    but I have the following error when I write #include <libnotify/notify.h>

    error: libnotify/notify.h: No such file or directory

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Error including <libnotify/notify.h>

    Do you have that file in your system?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2011
    Posts
    14
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: Error including <libnotify/notify.h>

    I think there is something in Qt like ".dll files" in C#
    for example when i use zgraph in c# i add its dll as refrence
    is there any thing to do to prevent thisi problems ??


    Added after 12 minutes:


    Quote Originally Posted by wysota View Post
    Do you have that file in your system?
    yes,here->>"C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\libnotify\notify.h"
    when i add this line --> INCLUDEPATH +="C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include" in .pro file the error
    this error is fixed but there are many errors because of the header files included in notify.h
    I add the path of each header file causes an error.. and repeated many

    INCLUDEPATH +="C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\glib-2.0"\
    "C:\QtSDK\Symbian\SDKs\Symbian3Qt473\epoc32\includ e\stdapis\glib-2.0"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\gtk-2.0"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\lib\gtk-2.0\include"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\cairo"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\pango-1.0"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\atk-1.0"

    but finally i have 52 errors ..I can't solve them .. not related to header files .. Like --> error: 'goffset' was not declared in this scope


    Added after 4 minutes:


    Quote Originally Posted by wysota View Post
    Do you have that file in your system?
    yes,here->>"C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\libnotify\notify.h"
    when i add this line --> INCLUDEPATH +="C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include" in .pro file the error
    this error is fixed but there are many errors because of the header files included in notify.h
    I add the path of each header file causes an error.. and repeated many

    INCLUDEPATH +="C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\glib-2.0"\
    "C:\QtSDK\Symbian\SDKs\Symbian3Qt473\epoc32\includ e\stdapis\glib-2.0"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\gtk-2.0"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\lib\gtk-2.0\include"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\cairo"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\pango-1.0"\
    "C:\QtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-20.2010.36-2-slim\usr\include\atk-1.0"

    but finally i have 52 errors ..I can't solve them .. not related to header files .. Like --> error: 'goffset' was not declared in this scope
    Last edited by Marwa Shams; 6th August 2011 at 16:05.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Error including <libnotify/notify.h>

    I think you can't use pkgconfig because your environment isn't prepared to use it with freemantle (epecially since you're running Windows). For each library you need to define the paths to includes and the paths to libraries needed. So far you only defined the former.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jul 2011
    Posts
    14
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: Error including <libnotify/notify.h>

    Quote Originally Posted by wysota View Post
    For each library you need to define the paths to includes and the paths to libraries needed. So far you only defined the former.
    OK I already included paths of all needed header files easily because i know each header file name from error bar
    but the problem for me how to know the libraries needed ??
    for example ---> "error: 'goffset' was not declared in this scope" .. what's the lib includes this type ??

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Error including <libnotify/notify.h>

    Use the LIBS variable in the project file. As for goffset, it's likely a glib routine but you can google it yourself.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QtCreator weird error while trying to use libnotify libs
    By hakermania in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2011, 11:42
  2. Replies: 1
    Last Post: 21st February 2011, 09:02
  3. How to use libnotify?
    By Bong.Da.City in forum Qt Programming
    Replies: 1
    Last Post: 26th August 2010, 05:53
  4. compilation error when including dumpcpp output
    By Jimmy2775 in forum Qt Programming
    Replies: 13
    Last Post: 14th May 2010, 04:12
  5. Qt web notify
    By bunjee in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 13:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.