[Digikam-devel] getSupportedPorts

Arnd Baecker arnd.baecker at web.de
Fri May 16 10:41:27 BST 2008


Hi Greg,

just to be sure that your patch does not get lost:
did you file a bug in the bug tracker with your patch attached?
(If yes, which number is it?).

Thanks a lot,

Arnd

On Thu, 8 May 2008, Greg Lee wrote:

> There is an incompatibility with the svn version
> of libgphoto2 which turns up in three places: once
> in  GPCamera::getSupportedPorts in
> digikam-0.9.4-beta4/digikam/utilities/cameragui/gpcamera.cpp
> and in two places in kipi-plugins.
>
> I don't know if the following patch is correct, but it
> compiles:
>
> --- gpcamera.cpp.orig   2008-05-08 10:37:20.000000000 -1000
> +++ gpcamera.cpp        2008-05-08 10:42:44.000000000 -1000
> @@ -1090,6 +1090,8 @@
>  {
>      GPPortInfoList *list;
>      GPPortInfo      info;
> +               char **path;
> +
>
>      plist.clear();
>
> @@ -1109,7 +1111,9 @@
>          for (int i = 0 ; i < numPorts ; i++)
>          {
>              gp_port_info_list_get_info( list, i, &info );
> -            plist.append( info.path );
> +               gp_port_info_get_path (info, path);
> +            //plist.append( info.path );
> +               plist.append( *path );
>          }
>      }
>
> Very similar functions are in kipi-plugins/kameraklient/
> in gpcamera.cpp and gpiface.cpp and have the same problem.
>
>



More information about the Digikam-devel mailing list