From: Andrea G. <a.g...@gm...> - 2006-12-16 16:24:50
|
Hello, where can I find some libgpod documentation and some artwork functions related samples? Thanks for your reply. -- Andrea Grandi email: a.g...@gm... website: http://www.ptlug.org |
From: Todd Z. <tm...@po...> - 2006-12-17 15:54:05
|
Hi Andrea, Andrea Grandi wrote: > where can I find some libgpod documentation and some artwork > functions related samples? Documentation is built using gtk-doc. Check docs/reference/html/ in the tar ball. Once installed, the docs are in /usr/share/gtk-doc/html/libgpod on my system. If you have devhelp installed, you can browse the docs using that. --=20 Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ambition is a poor excuse for not having enough sense to be lazy. |
From: Todd Z. <tm...@po...> - 2006-12-17 16:00:17
|
> Andrea Grandi wrote: >> ... and some artwork functions related samples? I forgot to say in my first reply that you can check out the test programs in the tests/ directory for some examples of using the artwork functions. For a more complete example, check out Tripod[1] by Seb Ruiz. [1] http://www.sebruiz.net/tripod/ --=20 Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Our chief defect is that we are more given to talking about things than to doing them. -- Jawaharlal Nehru, Indian statesman (1889-1964) |
From: Andrea G. <a.g...@gm...> - 2006-12-17 17:06:43
|
Hi, > Documentation is built using gtk-doc. Check docs/reference/html/ in > the tar ball. > > Once installed, the docs are in /usr/share/gtk-doc/html/libgpod on my > system. If you have devhelp installed, you can browse the docs using > that. I've built again the package using this configure option: ./configure --enable-gtk-doc once installed, if I run DevHelp the libgpod documentation available is 0.3.3 :( These are the first lines: "for libgpod 0.3.3 Copyright (c) 2006 Christophe Fergeau" So doc is not updated. How can I update it? p.s: I installed 0.4.0 version. Best regards, -- Andrea Grandi email: a.g...@gm... website: http://www.ptlug.org |
From: Todd Z. <tm...@po...> - 2006-12-17 17:19:46
|
Andrea Grandi wrote: > I've built again the package using this configure option: > ./configure --enable-gtk-doc >=20 > once installed, if I run DevHelp the libgpod documentation available > is 0.3.3 :( >=20 > These are the first lines: >=20 > "for libgpod 0.3.3 >=20 > Copyright (c) 2006 Christophe Fergeau" >=20 > So doc is not updated. How can I update it? I'd guess that you have an older version of the docs at a different prefix. Try to locate libgpod.devhelp and see if you have the docs in two places, perhaps /usr and /usr/local. I don't know if devhelp can be told to look in additional prefixes or not, I've never played with it much. You can also just point any browser at the docs in the source. I find that w3m docs/reference/html/index.html works well for me. :) --=20 Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D All of us could take a lesson from the weather. It pays no attention to criticism. |
From: Andrea G. <a.g...@gm...> - 2006-12-17 17:34:34
|
Hi, > I'd guess that you have an older version of the docs at a different > prefix. Try to locate libgpod.devhelp and see if you have the docs in > two places, perhaps /usr and /usr/local. I don't know if devhelp can > be told to look in additional prefixes or not, I've never played with > it much. I had two copies. I copyed the more recent to the devhel files location, now I can see ArtWork related function help. Anyway, if I point my browser here: file:///home/andy80/download/libgpod-0.4.0/doc-pak/docs/reference/html/index.html I read 0.3.3 so I think that version number is not updated. But, there is another problem now, this time with tripo: the configure gives me no error, the make gives me errors: ipodexportdialog.cpp: In member function 'void IpodExport::UploadDialog::startTransfer()': ipodexportdialog.cpp:328: error: cannot convert 'GError**' to 'const gchar*' for argument '3' to 'gboolean itdb_photodb_add_photo(Itdb_PhotoDB*, const gchar*, const gchar*)' ipodexportdialog.cpp:339: error: 'itdb_photodb_photoalbum_add_photo' was not declared in this scope ipodexportdialog.cpp: In member function 'void IpodExport::UploadDialog::createIpodAlbum()': ipodexportdialog.cpp:496: error: 'itdb_photodb_photoalbum_create' was not declared in this scope ipodexportdialog.cpp: In member function 'bool IpodExport::UploadDialog::deleteIpodPhoto(IpodExport::IpodPhotoItem*)': ipodexportdialog.cpp:550: error: invalid conversion from 'Itdb_PhotoAlbum*' to 'gint' /usr/local/include/gpod-1.0/gpod/itdb.h:967: error: too many arguments to function 'gboolean itdb_photodb_remove_photo(Itdb_PhotoDB*, gint)' ipodexportdialog.cpp:550: error: at this point in file ipodexportdialog.cpp:553: error: 'struct _Itdb_PhotoAlbum' has no member named 'album_type' ipodexportdialog.cpp: In member function 'bool IpodExport::UploadDialog::deleteIpodAlbum(IpodExport::IpodAlbumItem*)': ipodexportdialog.cpp:575: error: 'itdb_photodb_photoalbum_remove' was not declared in this scope ipodexportdialog.cpp: In member function 'bool IpodExport::UploadDialog::openDevice()': ipodexportdialog.cpp:736: error: 'itdb_photodb_create' was not declared in this scope make[3]: *** [ipodexportdialog.o] Error 1 make[3]: Leaving directory `/home/andy80/download/tripod-0.7.0-beta1/tripod/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/andy80/download/tripod-0.7.0-beta1/tripod' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/andy80/download/tripod-0.7.0-beta1' make: *** [all] Error 2 How can I fix it? Thanks for your help! -- Andrea Grandi email: a.g...@gm... website: http://www.ptlug.org |
From: Todd Z. <tm...@po...> - 2006-12-18 06:43:55
Attachments:
tripod-0.7.0-beta1-libgpod-api.patch
|
Andrea Grandi wrote: > I had two copies. I copyed the more recent to the devhel files > location, now I can see ArtWork related function help. > > Anyway, if I point my browser here: > file:///home/andy80/download/libgpod-0.4.0/doc-pak/docs/reference/html/index.html Where does the doc-pak dir come from? That's not in the libgpod tarball. > I read 0.3.3 so I think that version number is not updated. The docs that are included in the tarball don't appear to be up to date. You should pass --enable-gtk-doc to configure and then the docs will get updated. This series of commands gets the updated docs built for me: $ tar -xzf libgpod-0.4.0.tar.gz -C /tmp && cd /tmp/libgpod-0.4.0/ && ./configure --enable-gtk-doc && cd docs && make I can verify this with: $ w3m -dump /tmp/libgpod-0.4.0/docs/reference/html/index.html | grep 'for libgpod ' for libgpod 0.4.0 > But, there is another problem now, this time with tripo: the > configure gives me no error, the make gives me errors: You need libgpod from CVS to build the tripod beta, as Seb mentions on his site: Dependencies * kdelibs 3.5 (untested with previous versions) * libgpod CVS (0.4.0 is not supported due to major changes in photo manipulation code) The photo API in libgpod was changed even since the tripod beta was released and tripod requires a small patch to build correctly. That patch is attached. I meant to send it off to Seb, but it's only two small changes and I'm sure he'll spot them soon enough whenever he gets some time to work on tripod next. -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ====================================================================== All I really want for Christmas is Santa's list of Naughty Girls. |
From: Seb R. <me...@se...> - 2006-12-18 15:18:26
|
well, i'm currently overseas, and sometime between releasing tripod and now, the photo api has very slightly changed. this means that the configure check passes, but it won't compile. id love to fix it, but i'm overseas :( i know it is a simple fix, so perhaps i'll be able to ssh into a box and write a patch. (or you could do it :) thanks, seb On 18/12/06, Todd Zullinger <tm...@po...> wrote: > Andrea Grandi wrote: > > I had two copies. I copyed the more recent to the devhel files > > location, now I can see ArtWork related function help. > > > > Anyway, if I point my browser here: > > file:///home/andy80/download/libgpod-0.4.0/doc-pak/docs/reference/html/index.html > > Where does the doc-pak dir come from? That's not in the libgpod > tarball. > > > I read 0.3.3 so I think that version number is not updated. > > The docs that are included in the tarball don't appear to be up to > date. You should pass --enable-gtk-doc to configure and then the docs > will get updated. > > This series of commands gets the updated docs built for me: > > $ tar -xzf libgpod-0.4.0.tar.gz -C /tmp && cd /tmp/libgpod-0.4.0/ && ./configure --enable-gtk-doc && cd docs && make > > I can verify this with: > > $ w3m -dump /tmp/libgpod-0.4.0/docs/reference/html/index.html | grep 'for libgpod ' > for libgpod 0.4.0 > > > But, there is another problem now, this time with tripo: the > > configure gives me no error, the make gives me errors: > > You need libgpod from CVS to build the tripod beta, as Seb mentions on > his site: > > Dependencies > > * kdelibs 3.5 (untested with previous versions) > * libgpod CVS (0.4.0 is not supported due to major changes in > photo manipulation code) > > The photo API in libgpod was changed even since the tripod beta was > released and tripod requires a small patch to build correctly. That > patch is attached. I meant to send it off to Seb, but it's only two > small changes and I'm sure he'll spot them soon enough whenever he > gets some time to work on tripod next. > > -- > Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp > ====================================================================== > All I really want for Christmas is Santa's list of Naughty Girls. > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Gtkpod-devel mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtkpod-devel > > > > -- http://www.sebruiz.net/ |
From: Todd Z. <tm...@po...> - 2006-12-18 15:41:59
Attachments:
tripod-0.7.0-beta1-autoconf-typo.patch
|
Hi Seb, Seb Ruiz wrote: > well, i'm currently overseas, and sometime between releasing tripod > and now, the photo api has very slightly changed. this means that > the configure check passes, but it won't compile. > > id love to fix it, but i'm overseas :( Travelling sounds like more fun. :) > i know it is a simple fix, so perhaps i'll be able to ssh into a box > and write a patch. > > (or you could do it :) It is a pretty straightforward fix. The patch was attached (I think). Here it is, in case you find someplace that you can ssh from and want to put out another beta. --- tripod-0.7.0-beta1/tripod/src/ipodexportdialog.cpp.api 2006-11-10 08:39:19.000000000 -0500 +++ tripod-0.7.0-beta1/tripod/src/ipodexportdialog.cpp 2006-12-12 12:13:18.000000000 -0500 @@ -325,7 +325,7 @@ #define item static_cast<ImageListItem*>(item) debug() << "Uploading " << item->pathSrc() << " to ipod album " << album->name << endl; - Itdb_Artwork *art = itdb_photodb_add_photo( m_itdb, QFile::encodeName( item->pathSrc() ), &err ); + Itdb_Artwork *art = itdb_photodb_add_photo( m_itdb, QFile::encodeName( item->pathSrc() ), -1, 0, &err ); if( !art ) { if( err ) @@ -336,7 +336,7 @@ } } else - itdb_photodb_photoalbum_add_photo( m_itdb, album, art ); + itdb_photodb_photoalbum_add_photo( m_itdb, album, art, -1 ); delete item; #undef item There was one other little thing I noticed in building tripod. During the configure check for gdk-pixbuf the result that's printed isn't yes or no, it's have_gdkpixbuf. Seems that a $ is missing to get the value of the have_gdkpixbuf variable. The tiny autoconf patch for that is attached. (If it gets eaten along the way let me know and I'll resend inline.) Thanks for Tripod Seb! It's really nice so far! -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ====================================================================== Mary had a crypto key, she kept it in escrow, and everything that Mary said, the Feds were sure to know. -- Sam Simpson |
From: Seb R. <me...@se...> - 2006-12-19 06:32:27
|
Thanks Todd, i'll see if i can get this out asap. cheers, seb On 18/12/06, Todd Zullinger <tm...@po...> wrote: > Hi Seb, > > Seb Ruiz wrote: > > well, i'm currently overseas, and sometime between releasing tripod > > and now, the photo api has very slightly changed. this means that > > the configure check passes, but it won't compile. > > > > id love to fix it, but i'm overseas :( > > Travelling sounds like more fun. :) > > > i know it is a simple fix, so perhaps i'll be able to ssh into a box > > and write a patch. > > > > (or you could do it :) > > It is a pretty straightforward fix. The patch was attached (I think). > Here it is, in case you find someplace that you can ssh from and want > to put out another beta. > > --- tripod-0.7.0-beta1/tripod/src/ipodexportdialog.cpp.api 2006-11-10 08:39:19.000000000 -0500 > +++ tripod-0.7.0-beta1/tripod/src/ipodexportdialog.cpp 2006-12-12 12:13:18.000000000 -0500 > @@ -325,7 +325,7 @@ > #define item static_cast<ImageListItem*>(item) > debug() << "Uploading " << item->pathSrc() > << " to ipod album " << album->name << endl; > - Itdb_Artwork *art = itdb_photodb_add_photo( m_itdb, QFile::encodeName( item->pathSrc() ), &err ); > + Itdb_Artwork *art = itdb_photodb_add_photo( m_itdb, QFile::encodeName( item->pathSrc() ), -1, 0, &err ); > if( !art ) > { > if( err ) > @@ -336,7 +336,7 @@ > } > } > else > - itdb_photodb_photoalbum_add_photo( m_itdb, album, art ); > + itdb_photodb_photoalbum_add_photo( m_itdb, album, art, -1 ); > > delete item; > #undef item > > There was one other little thing I noticed in building tripod. During > the configure check for gdk-pixbuf the result that's printed isn't yes > or no, it's have_gdkpixbuf. Seems that a $ is missing to get the > value of the have_gdkpixbuf variable. The tiny autoconf patch for > that is attached. (If it gets eaten along the way let me know and > I'll resend inline.) > > Thanks for Tripod Seb! It's really nice so far! > > -- > Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp > ====================================================================== > Mary had a crypto key, she kept it in escrow, and everything that Mary > said, the Feds were sure to know. > -- Sam Simpson > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Gtkpod-devel mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtkpod-devel > > > > -- http://www.sebruiz.net/ |
From: Seb R. <me...@se...> - 2006-12-28 18:46:59
|
Okay, finally found the time to do it :). Tripod beta 2 released, hopefully it compiles this time. cheers, seb On 18/12/06, Todd Zullinger <tm...@po...> wrote: > Hi Seb, > > Seb Ruiz wrote: > > well, i'm currently overseas, and sometime between releasing tripod > > and now, the photo api has very slightly changed. this means that > > the configure check passes, but it won't compile. > > > > id love to fix it, but i'm overseas :( > > Travelling sounds like more fun. :) > > > i know it is a simple fix, so perhaps i'll be able to ssh into a box > > and write a patch. > > > > (or you could do it :) > > It is a pretty straightforward fix. The patch was attached (I think). > Here it is, in case you find someplace that you can ssh from and want > to put out another beta. > > --- tripod-0.7.0-beta1/tripod/src/ipodexportdialog.cpp.api 2006-11-10 08:39:19.000000000 -0500 > +++ tripod-0.7.0-beta1/tripod/src/ipodexportdialog.cpp 2006-12-12 12:13:18.000000000 -0500 > @@ -325,7 +325,7 @@ > #define item static_cast<ImageListItem*>(item) > debug() << "Uploading " << item->pathSrc() > << " to ipod album " << album->name << endl; > - Itdb_Artwork *art = itdb_photodb_add_photo( m_itdb, QFile::encodeName( item->pathSrc() ), &err ); > + Itdb_Artwork *art = itdb_photodb_add_photo( m_itdb, QFile::encodeName( item->pathSrc() ), -1, 0, &err ); > if( !art ) > { > if( err ) > @@ -336,7 +336,7 @@ > } > } > else > - itdb_photodb_photoalbum_add_photo( m_itdb, album, art ); > + itdb_photodb_photoalbum_add_photo( m_itdb, album, art, -1 ); > > delete item; > #undef item > > There was one other little thing I noticed in building tripod. During > the configure check for gdk-pixbuf the result that's printed isn't yes > or no, it's have_gdkpixbuf. Seems that a $ is missing to get the > value of the have_gdkpixbuf variable. The tiny autoconf patch for > that is attached. (If it gets eaten along the way let me know and > I'll resend inline.) > > Thanks for Tripod Seb! It's really nice so far! > > -- > Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp > ====================================================================== > Mary had a crypto key, she kept it in escrow, and everything that Mary > said, the Feds were sure to know. > -- Sam Simpson > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Gtkpod-devel mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtkpod-devel > > > > -- http://www.sebruiz.net/ |