[Digikam-devel] [digikam] [Bug 337921] Unable to compile due to pointer type issue in gpcamera

Cor kde at cpt1.demon.nl
Wed Jul 1 18:20:55 BST 2015


https://bugs.kde.org/show_bug.cgi?id=337921

--- Comment #14 from Cor <kde at cpt1.demon.nl> ---
(In reply to Gilles Caulier from comment #13)
> The flag is set by digiKAm cmake script like this :
> 
> # -- libgphoto2 rules
> --------------------------------------------------------------------------
> 
> MACRO_OPTIONAL_FIND_PACKAGE(Gphoto2)
> 
> if(NOT WIN32 AND GPHOTO2_FOUND)
>     # See bug #268267 : digiKam need to be linked to libusb to prevent crash
> at gphoto2 init if opencv is linked with libdc1394
>     MACRO_OPTIONAL_FIND_PACKAGE(USB)
> endif()
> 
> if(GPHOTO2_FOUND)
>     exec_program(gphoto2-config ARGS --version RETURN_VALUE _return_VALUE
> OUTPUT_VARIABLE GPHOTO2_VERSION)
>     string(REPLACE "libgphoto2" "" GPHOTO2_VERSION "${GPHOTO2_VERSION}")
>     MACRO_ENSURE_VERSION("2.4.0" "${GPHOTO2_VERSION}" VERSION_GPHOTO2)
> 
>     if(VERSION_GPHOTO2 AND LIBUSB_FOUND)
>         set(GPHOTO2_FOUND true)
>     else()
>         set(GPHOTO2_FOUND false)
>     endif()
> 
>     MACRO_ENSURE_VERSION("2.5.0" "${GPHOTO2_VERSION}" VERSION_GPHOTO25)
> 
>     if(VERSION_GPHOTO25)
>         set(HAVE_GPHOTO25 1)
>     else()
>         set(HAVE_GPHOTO25 0)
>     endif()
> endif()
> 
> Typically, it run "gphoto2-config --version" CLI tool to check which version
> is installed on your system. What give this command on a console ?
> 
> Gilles Caulier

root at machine:~# gphoto2-config --version
libgphoto2 2.4.11

Okay, so obviously something hasn't gone right when installing libgphoto2, how
can I repair this?

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list