Re: [Evolution-hackers] Can't find installed BookFactories



On Wed, 2009-08-26 at 11:44 +0800, Saint yeyo wrote:
> when I tried libebook function such as : e_book_new,
> e_book_new_default_addressbook, e_book_new_system_addressbook to init
> a EBook, but all of them gave a error message: 
> WARNING **: Can't find installed BookFactories
> 
> 1.
>       EBook *n_ebook = e_book_new_system_addressbook (NULL);

If this gives an error message then your evolution-data-server or
ORBit/Bonobo installation is broken.

> 2.
>       vcf_file = "xxx.vcf";  // a exported vcard file from evolution
> directly
>       ESource *s_source = e_source_new_with_absolute_uri(vcf_file,
> dirname);
>       EBook *n_ebook = e_book_new (s_source, NULL);

vcf_file isn't a URI, so this won't work.

> 3.
>       EBook *n_ebook = e_book_new_default_addressbook (NULL);
> 
> 4.
>      const char *uri = "~/.evolution/addressbook/local/system";
>      EBook *n_ebook = e_book_new_from_uri  (uri, NULL);

Again, this isn't a URI.

Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                           www: http://burtonini.com

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]