Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-140

Contacts maemo5 plugin fails to build if libosso-abook-1.0.pc is not present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • 1.1.x
    • 1.0.0
    • Contacts
    • None

      plugins/contacts/maemo5/maemo5.pro does

      CONFIG += link_pkgconfig
      PKGCONFIG += libosso-abook-1.0

      However, this does not validate that the appropriate .pc file is present. This leads to this output while running qmake:

      Package libosso-abook-1.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libosso-abook-1.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libosso-abook-1.0' found
      Package libosso-abook-1.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libosso-abook-1.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libosso-abook-1.0' found
      Package libosso-abook-1.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libosso-abook-1.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libosso-abook-1.0' found

      No error happens though and compilation fails due to indirect dependencies not being met.

      In file included from /home/user/src/messaging/plugins/contacts/maemo5/qcontactmaemo5backend_p.h:56,
      from /home/user/src/messaging/plugins/contacts/maemo5/qcontactabook.cpp:42:
      /home/user/src/messaging/plugins/contacts/maemo5/qcontactabook_p.h:51:35: error: gdk-pixbuf/gdk-pixbuf.h: No such file or directory
      snip lots and lots of useless errors

      How could this be improved? configure would ideally stop and let me know which packages were missing (or at least which .pc files were missing). At build time, the build system could detect the missing .pc files and fail in a way that makes sense instead of letting the compile go ahead.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes