[Digikam-users] kubuntu wily - digikam refuses to start

Luca Ferrari fluca1978 at infinito.it
Fri Oct 30 11:48:48 GMT 2015


On Fri, Oct 30, 2015 at 11:31 AM, Gilles Caulier
<caulier.gilles at gmail.com> wrote:
> Please give the full config trace here
>

Here it is:

% sh bootstrap.linux
     ~/Downloads/digikam-4.14.0
-- Found Qt-Version 4.8.6 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found KDE 4.12 include dir: /usr/include
-- Found KDE 4.12 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: digiKam Software Collection
-- Local shared libkipi will be compiled.......... YES
-- Local shared libkexiv2 will be compiled........ YES
-- Local shared libkdcraw will be compiled........ YES
-- Local shared libksane will be compiled......... YES
-- Local shared libkface will be compiled......... YES
-- Local shared libkgeomap will be compiled....... YES
-- Local shared libmediawiki will be compiled..... YES
-- Local shared libkvkontakte will be compiled.... YES
-- Extract translations files..................... NO
-- Translations will be compiled.................. NO
-- Handbooks will be compiled..................... YES
-- Tests code will be compiled.................... YES
CMake Error at extra/CMakeLists.txt:11 (add_subdirectory):
  add_subdirectory given source "libkexiv2" which is not an existing
  directory.


CMake Error at extra/CMakeLists.txt:15 (add_subdirectory):
  add_subdirectory given source "libkdcraw" which is not an existing
  directory.


CMake Error at extra/CMakeLists.txt:19 (add_subdirectory):
  add_subdirectory given source "libkipi" which is not an existing directory.


-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: kipi-plugins
-- Found Qt-Version 4.8.6 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Kipi library version required : 2.0.0
-- Check Kipi library in local sub-folder...
CMake Warning at cmake/modules/FindKipi.cmake:48 (MESSAGE):
  KIPI_LOCAL_DIR specified as "extra/libkipi" but libkipi could not be found
  there.
Call Stack (most recent call first):
  extra/kipi-plugins/CMakeLists.txt:67 (find_package)


-- Check Kipi library using pkg-config...
-- Kipi library version: 2.2.0
-- libkipi: Found version 2.2.0 (required: 2.0.0)
-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder:
/home/luca/Downloads/digikam-4.14.0/extra/libkexiv2
-- Check for Kdcraw library in local sub-folder...
CMake Warning at
/usr/share/kde4/apps/cmake/modules/FindKdcraw.cmake:44 (message):
  KDCRAW_LOCAL_DIR specified as "extra/libkdcraw" but libkdcraw could not be
  found there.
Call Stack (most recent call first):
  extra/kipi-plugins/CMakeLists.txt:75 (find_package)


-- Check Kdcraw library using pkg-config...
-- Found libkdcraw release 2.4.2
-- Found libkdcraw: /usr/lib/libkdcraw.so
-- libkdcraw: Found version 2.4.2 (required: 2.2.0)
-- checking for one of the modules 'libgpod-1.0'
-- libgpod dir:
-- libgpod lib:
-- libgpod def:
-- libgpod ver:
-- Check for Ksane library in local sub-folder...
CMake Warning at cmake/modules/FindKSane.cmake:44 (message):
  KSANE_LOCAL_DIR specified as "extra/libksane" but libksane could not be
  found there.
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32
(find_package)
  extra/kipi-plugins/CMakeLists.txt:110 (MACRO_OPTIONAL_FIND_PACKAGE)


-- Check Ksane library using pkg-config...
-- checking for one of the modules 'libksane'
CMake Warning at
/usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32
(find_package):
  By not providing "FindKGeoMap.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "KGeoMap", but
  CMake did not find one.

  Could not find a package configuration file provided by "KGeoMap" with any
  of the following names:

    KGeoMapConfig.cmake
    kgeomap-config.cmake

  Add the installation prefix of "KGeoMap" to CMAKE_PREFIX_PATH or set
  "KGeoMap_DIR" to a directory containing one of the above files.  If
  "KGeoMap" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  extra/kipi-plugins/CMakeLists.txt:112 (MACRO_OPTIONAL_FIND_PACKAGE)


CMake Warning at
/usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32
(find_package):
  By not providing "FindMediawiki.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Mediawiki", but CMake did not find one.

  Could not find a package configuration file provided by "Mediawiki" with
  any of the following names:

    MediawikiConfig.cmake
    mediawiki-config.cmake

  Add the installation prefix of "Mediawiki" to CMAKE_PREFIX_PATH or set
  "Mediawiki_DIR" to a directory containing one of the above files.  If
  "Mediawiki" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  extra/kipi-plugins/CMakeLists.txt:113 (MACRO_OPTIONAL_FIND_PACKAGE)


-- Check Vkontakte library in local sub-folder...
-- Found Vkontakte library in local sub-folder:
/home/luca/Downloads/digikam-4.14.0/extra/libkvkontakte
-- Could NOT find required package HUpnpCore: <http://herqq.org>
-- Could NOT find required package HUpnpAv: <http://herqq.org>
-- Could NOT find ImageMagick (missing:
ImageMagick_MagickCore_LIBRARY) (found version "6.8.9-9")
CMake Warning at
/usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32
(find_package):
  By not providing "FindQtGStreamer.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "QtGStreamer", but CMake did not find one.

  Could not find a package configuration file provided by "QtGStreamer" with
  any of the following names:

    QtGStreamerConfig.cmake
    qtgstreamer-config.cmake

  Add the installation prefix of "QtGStreamer" to CMAKE_PREFIX_PATH or set
  "QtGStreamer_DIR" to a directory containing one of the above files.  If
  "QtGStreamer" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  extra/kipi-plugins/CMakeLists.txt:118 (MACRO_OPTIONAL_FIND_PACKAGE)


-- Could NOT find QtKOAuth (missing:  QTKOAUTH_LIBRARIES QTKOAUTH_INCLUDE_DIR)
CMake Warning at extra/kipi-plugins/CMakeLists.txt:134 (message):
  libkgeomap: Version information not found, your version is probably too
  old.


-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- First try at finding OpenCV...
-- Great, found OpenCV on the first try.
-- OpenCV Root directory is: /usr/local/share/OpenCV
-- OpenCV: Found version 2.4.11 (required: 2.4.9)
-- OpenCV headers: /usr/local/include/opencv;/usr/local/include
-- OpenCV libs   :
opencv_core;opencv_highgui;opencv_objdetect;opencv_contrib;opencv_legacy;opencv_imgproc
-- 
-- ----------------------------------------------------------------------------------
--  kipi-plugins 4.14.0 dependencies results   <http://www.digikam.org>
-- 
--  libqt found.............................. YES
--  libkde found............................. YES
--  libjpeg found............................ YES
--  libtiff found............................ YES
--  libpng found............................. YES
--  libkipi found............................ YES
--  libkexiv2 found.......................... YES
--  libkdcraw found.......................... YES
--  libxml2 found............................ YES (optional)
--  libxslt found............................ NO  (optional)
--  Kipi-plugins will be compiled without libxstl support.
--  Please install the libxslt (version >= 1.1.0) development package.
-- 
--  libexpat found........................... YES (optional)
--  libopencv found.......................... YES (optional)
--  libqjson found........................... YES (optional)
--  libkdepimlibs found...................... YES (optional)
--  libqca found............................. YES (optional)
--  libkgeomap found......................... NO  (optional)
--  Kipi-plugins will be compiled without libkgeomap support.
--  Please install the libkgeomap (version >= 3.0.0) development package.
-- 
--  libmediawiki found....................... NO  (optional)
--  Kipi-plugins will be compiled without libmediawiki support.
--  Please install the libmediawiki (version >= 1.0.0) development package.
-- 
--  libkvkontakte found...................... YES (optional)
--  libimagemagick found..................... NO  (optional)
--  Kipi-plugins will be compiled without libimagemagick support.
--  Please install the libimagemagick (version >= 5.5.4) development package.
-- 
--  libqtgstreamer found..................... NO  (optional)
--  Kipi-plugins will be compiled without libqtgstreamer support.
--  Please install the libqtgstreamer (version >= 0.9.0) development package.
-- 
--  libgpod found............................ NO  (optional)
--  Kipi-plugins will be compiled without libgpod support.
--  Please install the libgpod (version >= 0.7.0) development package.
-- 
--  libgdk found............................. YES (optional)
--  libqtkoauth found........................ NO  (optional)
--  Kipi-plugins will be compiled without libqtkoauth support.
--  Please install the libqtkoauth (version >= 0.97) development package.
-- 
--  libksane found........................... NO  (optional)
--  Kipi-plugins will be compiled without libksane support.
--  Please install the libksane (version >= 0.3.0) development package.
-- 
--  libhupnp found........................... NO  (optional)
--  Internal version used instead
--  Please install the libhupnp (version >= 2.0.0) development package.
-- 
--  libqtsoap found.......................... NO  (optional)
--  Kipi-plugins will be compiled without libqtsoap support.
--  Please install the libqtsoap (version >= 2.7.0) development package.
-- 
--  native threads support found............. YES (optional)
--  native Opengl support found.............. YES (optional)
--  Qt4 OpenGL module found.................. YES (optional)
--  libX11 found............................. YES (optional)
-- 
--  kipi-plugins will be compiled............ YES
--  Shwup will be compiled................... YES (optional)
--  YandexFotki will be compiled............. YES (optional)
--  HtmlExport will be compiled.............. NO  (optional)
--  AdvancedSlideshow will be compiled....... YES (optional)
--  ImageViewer will be compiled............. YES (optional)
--  AcquireImages will be compiled........... NO  (optional)
--  DNGConverter will be compiled............ YES (optional)
--  DLNAExport will be compiled.............. NO  (optional)
--  RemoveRedEyes will be compiled........... YES (optional)
--  Debian Screenshots will be compiled...... YES (optional)
--  Facebook will be compiled................ YES (optional)
--  Imgur will be compiled................... YES (optional)
--  GoogleServices will be compiled.......... YES (optional)
--  Dropbox will be compiled................. YES (optional)
--  VKontakte will be compiled............... YES (optional)
--  IpodExport will be compiled.............. NO  (optional)
--  Calendar will be compiled................ YES (optional)
--  GPSSync will be compiled................. NO  (optional)
--  Mediawiki will be compiled............... NO  (optional)
--  Panorama will be compiled................ YES (optional)
--  VideoSlideshow will be compiled.......... NO  (optional)
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: digiKam
-- Found Qt-Version 4.8.6 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- PGF library version required : 6.12.24
-- PGF_CODEC_VERSION_ID = 061412
-- PGF_VERSION          = 6.14.12
-- PGF_INCLUDE_DIRS     = /usr/include/libpgf
-- PGF_LIBRARIES        = /usr/lib/x86_64-linux-gnu/libpgf.so
-- PGF_LDFLAGS          =
-- PGF_CFLAGS           =
-- Check Kexiv2 library in local sub-folder...
-- Found Kexiv2 library in local sub-folder:
/home/luca/Downloads/digikam-4.14.0/extra/libkexiv2
-- Check for Kdcraw library in local sub-folder...
CMake Warning at
/usr/share/kde4/apps/cmake/modules/FindKdcraw.cmake:44 (message):
  KDCRAW_LOCAL_DIR specified as "extra/libkdcraw" but libkdcraw could not be
  found there.
Call Stack (most recent call first):
  core/CMakeLists.txt:111 (find_package)


-- Check Kdcraw library using pkg-config...
-- Found libkdcraw release 2.4.2
-- Found libkdcraw: /usr/lib/libkdcraw.so
-- Kipi library version required : 2.0.0
-- Check Kipi library in local sub-folder...
CMake Warning at cmake/modules/FindKipi.cmake:48 (MESSAGE):
  KIPI_LOCAL_DIR specified as "extra/libkipi" but libkipi could not be found
  there.
Call Stack (most recent call first):
  core/CMakeLists.txt:116 (find_package)


-- Check Kipi library using pkg-config...
-- Kipi library version: 2.2.0
-- libkipi: Found version 2.2.0 (required: 2.0.0)
-- Check Kface library in local sub-folder...
-- Found Kface library in local sub-folder:
/home/luca/Downloads/digikam-4.14.0/extra/libkface
CMake Warning at core/CMakeLists.txt:118 (find_package):
  By not providing "FindKGeoMap.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "KGeoMap", but
  CMake did not find one.

  Could not find a package configuration file provided by "KGeoMap" with any
  of the following names:

    KGeoMapConfig.cmake
    kgeomap-config.cmake

  Add the installation prefix of "KGeoMap" to CMAKE_PREFIX_PATH or set
  "KGeoMap_DIR" to a directory containing one of the above files.  If
  "KGeoMap" provides a separate development package or SDK, be sure it has
  been installed.


-- Could NOT find Jasper (missing:  JASPER_LIBRARIES JASPER_INCLUDE_DIR)
-- Could NOT find Eigen3 (missing:  EIGEN3_INCLUDE_DIR
EIGEN3_VERSION_OK) (Required is at least version "2.91.0")
-- Boost version: 1.58.0
-- First try at finding OpenCV...
-- Great, found OpenCV on the first try.
-- OpenCV Root directory is: /usr/local/share/OpenCV
-- OpenCV: Found version 2.4.11 (required: 2.4.9)
-- OpenCV headers: /usr/local/include/opencv;/usr/local/include
-- OpenCV libs   :
opencv_core;opencv_highgui;opencv_objdetect;opencv_contrib;opencv_legacy;opencv_imgproc
-- libkdcraw: Found version 2.4.2 (required: 2.2.0)
CMake Warning at core/CMakeLists.txt:179 (message):
  libkgeomap: Version information not found, your version is probably too
  old.


-- Check for LCMS2 availability...
-- Found lcms version 2.06, /usr/lib/x86_64-linux-gnu/liblcms2.so
-- Found LCMS2: /usr/lib/x86_64-linux-gnu/liblcms2.so /usr/include
-- Libjpeg version: 84
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- checking for module 'lqr-1'
--   package 'lqr-1' not found
-- Could NOT find Lqr-1 (missing:  LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES)
-- Found gphoto2: -lgphoto2_port;-lgphoto2 -lgphoto2_port -lm
-- Could NOT find LIBUSB (missing:  LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR)
-- checking for module 'lensfun'
--   package 'lensfun' not found
-- Could NOT find LensFun (missing:  LENSFUN_INCLUDE_DIRS LENSFUN_LIBRARIES)
CMake Warning at core/CMakeLists.txt:340 (message):
  liblensfun: Version information not found, your version is probably too
  old.


CMake Warning at
/usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32
(find_package):
  Could not find a package configuration file provided by "KFileMetaData"
  with any of the following names:

    KFileMetaDataConfig.cmake
    kfilemetadata-config.cmake

  Add the installation prefix of "KFileMetaData" to CMAKE_PREFIX_PATH or set
  "KFileMetaData_DIR" to a directory containing one of the above files.  If
  "KFileMetaData" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  core/CMakeLists.txt:350 (MACRO_OPTIONAL_FIND_PACKAGE)


CMake Warning at
/usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32
(find_package):
  By not providing "FindBaloo.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Baloo", but
  CMake did not find one.

  Could not find a package configuration file provided by "Baloo" with any of
  the following names:

    BalooConfig.cmake
    baloo-config.cmake

  Add the installation prefix of "Baloo" to CMAKE_PREFIX_PATH or set
  "Baloo_DIR" to a directory containing one of the above files.  If "Baloo"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  core/CMakeLists.txt:354 (MACRO_OPTIONAL_FIND_PACKAGE)


-- 
-- ----------------------------------------------------------------------------------
--  digiKam 4.14.0 dependencies results   <http://www.digikam.org>
-- 
--  Qt4 SQL module found..................... YES
--  MySQL Database Support will be compiled.. NO  (optional)
--  libqt found.............................. YES
--  libkde found............................. YES
--  libjpeg found............................ YES
--  libtiff found............................ YES
--  libpng found............................. YES
--  liblcms found............................ YES
--  libboostgraph found...................... YES
--  libkexiv2 found.......................... YES
--  libkdcraw found.......................... YES
--  libpgf found............................. YES
--  libopencv found.......................... YES
--  libkipi found............................ YES (optional)
--  libkface found........................... YES (optional)
--  libkgeomap found......................... NO  (optional)
--  digiKam will be compiled without geolocation maps support.
--  Please install the libkgeomap (version >= 3.0.0) development package.
-- 
--  libkdepimlibs found...................... YES (optional)
--  libjasper found.......................... NO  (optional)
--  digiKam will be compiled without JPEG2000 support.
--  Please install the libjasper (version >= 1.7.0) development package.
-- 
--  liblensfun found......................... NO  (optional)
--  digiKam will be compiled without Lens Auto Correction tool support.
--  Please install the liblensfun (version >= 0.2.6) development package.
-- 
--  liblqr-1 found........................... NO  (optional)
--  digiKam will be compiled without Contents Aware Resizer tool support.
--  Please install the liblqr-1 (version >= 0.4.1) development package.
-- 
--  libeigen3 found.......................... NO  (optional)
--  digiKam will be compiled without Refocus tool support.
--  Please install the libeigen3 (version >= 3.0.0) development package.
-- 
--  libgphoto2 found......................... NO  (optional)
--  digiKam will be compiled without GPhoto2 camera drivers support.
--  Please install the libgphoto2 (version >= 2.4.0) development package.
-- 
--  libbaloo found........................... NO  (optional)
--  digiKam will be compiled without KDE files indexing support.
--  Please install the libbaloo (version >= 4.12.0) development package.
-- 
--  libsqlite2 found......................... YES (optional)
--  doxygen found............................ NO  (optional)
--  digiKam will be compiled without API documentation building support.
--  Please install the doxygen (version >= 1.8.0) development package.
-- 
--  digiKam can be compiled.................. YES
-- ----------------------------------------------------------------------------------
-- 
-- Adjusting compilation flags for GCC version (5.2.1 )
-- Configuring incomplete, errors occurred!





8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--
Here is the CMakeError.log

Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec738768555/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec738768555.dir/build.make
CMakeFiles/cmTryCompileExec738768555.dir/build
make[1]: Entering directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object CMakeFiles/cmTryCompileExec738768555.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt4    -o
CMakeFiles/cmTryCompileExec738768555.dir/CheckSymbolExists.c.o   -c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
In function ‘main’:
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
error: ‘Q_WS_WIN’ undeclared (first use in this function)
   return ((int*)(&Q_WS_WIN))[argc];
                   ^
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
note: each undeclared identifier is reported only once for each
function it appears in
CMakeFiles/cmTryCompileExec738768555.dir/build.make:57: recipe for
target 'CMakeFiles/cmTryCompileExec738768555.dir/CheckSymbolExists.c.o'
failed
make[1]: Leaving directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec738768555.dir/CheckSymbolExists.c.o]
Error 1
Makefile:117: recipe for target 'cmTryCompileExec738768555/fast' failed
make: *** [cmTryCompileExec738768555/fast] Error 2

File /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_WIN
  return ((int*)(&Q_WS_WIN))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1877555967/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1877555967.dir/build.make
CMakeFiles/cmTryCompileExec1877555967.dir/build
make[1]: Entering directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec1877555967.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt4    -o
CMakeFiles/cmTryCompileExec1877555967.dir/CheckSymbolExists.c.o   -c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
In function ‘main’:
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
error: ‘Q_WS_QWS’ undeclared (first use in this function)
   return ((int*)(&Q_WS_QWS))[argc];
                   ^
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
note: each undeclared identifier is reported only once for each
function it appears in
CMakeFiles/cmTryCompileExec1877555967.dir/build.make:57: recipe for
target 'CMakeFiles/cmTryCompileExec1877555967.dir/CheckSymbolExists.c.o'
failed
make[1]: Leaving directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec1877555967.dir/CheckSymbolExists.c.o]
Error 1
Makefile:117: recipe for target 'cmTryCompileExec1877555967/fast' failed
make: *** [cmTryCompileExec1877555967/fast] Error 2

File /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_QWS
  return ((int*)(&Q_WS_QWS))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_MAC exist failed with the following output:
Change Dir: /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1136871890/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1136871890.dir/build.make
CMakeFiles/cmTryCompileExec1136871890.dir/build
make[1]: Entering directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec1136871890.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/qt4    -o
CMakeFiles/cmTryCompileExec1136871890.dir/CheckSymbolExists.c.o   -c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
In function ‘main’:
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
error: ‘Q_WS_MAC’ undeclared (first use in this function)
   return ((int*)(&Q_WS_MAC))[argc];
                   ^
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
note: each undeclared identifier is reported only once for each
function it appears in
CMakeFiles/cmTryCompileExec1136871890.dir/build.make:57: recipe for
target 'CMakeFiles/cmTryCompileExec1136871890.dir/CheckSymbolExists.c.o'
failed
make[1]: Leaving directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec1136871890.dir/CheckSymbolExists.c.o]
Error 1
Makefile:117: recipe for target 'cmTryCompileExec1136871890/fast' failed
make: *** [cmTryCompileExec1136871890/fast] Error 2

File /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_MAC
  return ((int*)(&Q_WS_MAC))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec4207418867/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec4207418867.dir/build.make
CMakeFiles/cmTryCompileExec4207418867.dir/build
make[1]: Entering directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec4207418867.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o
CMakeFiles/cmTryCompileExec4207418867.dir/CheckSymbolExists.c.o   -c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec4207418867
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec4207418867.dir/link.txt --verbose=1
/usr/bin/cc
CMakeFiles/cmTryCompileExec4207418867.dir/CheckSymbolExists.c.o  -o
cmTryCompileExec4207418867 -rdynamic
CMakeFiles/cmTryCompileExec4207418867.dir/CheckSymbolExists.c.o: In
function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec4207418867.dir/build.make:88: recipe for
target 'cmTryCompileExec4207418867' failed
make[1]: Leaving directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
Makefile:117: recipe for target 'cmTryCompileExec4207418867/fast' failed
make[1]: *** [cmTryCompileExec4207418867] Error 1
make: *** [cmTryCompileExec4207418867/fast] Error 2

File /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads
failed with the following output:
Change Dir: /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1313441002/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1313441002.dir/build.make
CMakeFiles/cmTryCompileExec1313441002.dir/build
make[1]: Entering directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object
CMakeFiles/cmTryCompileExec1313441002.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o
CMakeFiles/cmTryCompileExec1313441002.dir/CheckFunctionExists.c.o   -c
/usr/share/cmake-3.2/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1313441002
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec1313441002.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create
CMakeFiles/cmTryCompileExec1313441002.dir/CheckFunctionExists.c.o  -o
cmTryCompileExec1313441002 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec1313441002.dir/build.make:88: recipe for
target 'cmTryCompileExec1313441002' failed
make[1]: Leaving directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
Makefile:117: recipe for target 'cmTryCompileExec1313441002/fast' failed
make[1]: *** [cmTryCompileExec1313441002] Error 1
make: *** [cmTryCompileExec1313441002/fast] Error 2


Determining if the system is big endian passed with the following output:
Change Dir: /home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTryCompileExec1948092521/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1948092521.dir/build.make
CMakeFiles/cmTryCompileExec1948092521.dir/build
make[1]: Entering directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object CMakeFiles/cmTryCompileExec1948092521.dir/TestEndianess.c.o
/usr/bin/cc   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -Wformat-security
-Wmissing-format-attribute -fno-common    -o
CMakeFiles/cmTryCompileExec1948092521.dir/TestEndianess.c.o   -c
/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp/TestEndianess.c
Linking C executable cmTryCompileExec1948092521
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec1948092521.dir/link.txt --verbose=1
/usr/bin/cc   -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align
-Werror-implicit-function-declaration -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -Wformat-security
-Wmissing-format-attribute -fno-common
CMakeFiles/cmTryCompileExec1948092521.dir/TestEndianess.c.o  -o
cmTryCompileExec1948092521 -rdynamic
make[1]: Leaving directory
'/home/luca/Downloads/digikam-4.14.0/build/CMakeFiles/CMakeTmp'

TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;

/* On a little endian machine, these 16bit ints will give "THIS IS
LITTLE ENDIAN."
   On a big endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_little[] =  {0x4854, 0x5349, 0x4920, 0x2053,
0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};

/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
   On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] =     {0x5448, 0x4953, 0x2049, 0x5320,
0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_little[argc];
  require += info_big[argc];
  (void)argv;
  return require;
}



More information about the Digikam-users mailing list