[Digikam-devel] Re: using Boost Graph Library

Gilles Caulier caulier.gilles at gmail.com
Thu Oct 28 07:53:43 BST 2010


MArcel,

Under mandriva, boost header are there :

[gilles at localhost boost]$ pwd
/usr/include/boost
[gilles at localhost boost]$ ls
accumulators/                filesystem/                   mpl/
                   serialization/
algorithm/                   filesystem.hpp
multi_array/                   shared_array.hpp
aligned_storage.hpp          flyweight/
multi_array.hpp                shared_container_iterator.hpp
any.hpp                      flyweight.hpp
multi_index/                   shared_ptr.hpp
archive/                     foreach.hpp
multi_index_container_fwd.hpp  signal.hpp
array.hpp                    format/
multi_index_container.hpp      signals/
asio/                        format.hpp
next_prior.hpp                 signals2/
asio.hpp                     function/
noncopyable.hpp                signals2.hpp
assert.hpp                   functional/
nondet_random.hpp              signals.hpp
assign/                      functional.hpp                none.hpp
                   smart_ptr/
assign.hpp                   function_equal.hpp            none_t.hpp
                   smart_ptr.hpp
bimap/                       function.hpp
non_type.hpp                   spirit/
bimap.hpp                    function_output_iterator.hpp  numeric/
                   spirit.hpp
bind/                        function_types/
operators.hpp                  statechart/
bind.hpp                     fusion/                       optional/
                   static_assert.hpp
blank_fwd.hpp                generator_iterator.hpp
optional.hpp                   strong_typedef.hpp
blank.hpp                    get_pointer.hpp               parameter/
                   swap.hpp
call_traits.hpp              gil/
parameter.hpp                  system/
cast.hpp                     graph/                        pending/
                   test/
cerrno.hpp                   implicit_cast.hpp             pointee.hpp
                   thread/
checked_delete.hpp           indirect_reference.hpp
pointer_cast.hpp               thread.hpp
circular_buffer/             integer/
pointer_to_other.hpp           throw_exception.hpp
circular_buffer_fwd.hpp      integer_fwd.hpp               pool/
                   timer.hpp
circular_buffer.hpp          integer.hpp
preprocessor/                  token_functions.hpp
compatibility/               integer_traits.hpp
preprocessor.hpp               token_iterator.hpp
compressed_pair.hpp          interprocess/
program_options/               tokenizer.hpp
concept/                     intrusive/
program_options.hpp            tr1/
concept_archetype.hpp        intrusive_ptr.hpp
progress.hpp                   tuple/
concept_check/               io/
property_map/                  type.hpp
concept_check.hpp            io_fwd.hpp
property_tree/                 typeof/
config/                      iostreams/                    proto/
                   type_traits/
config.hpp                   is_placeholder.hpp
ptr_container/                 type_traits.hpp
crc.hpp                      iterator/                     python/
                   units/
cregex.hpp                   iterator_adaptors.hpp         python.hpp
                   unordered/
cstdint.hpp                  iterator.hpp                  random/
                   unordered_map.hpp
cstdlib.hpp                  lambda/                       random.hpp
                   unordered_set.hpp
current_function.hpp         last_value.hpp                range/
                   utility/
date_time/                   lexical_cast.hpp              range.hpp
                   utility.hpp
date_time.hpp                limits.hpp
rational.hpp                   uuid/
detail/                      logic/                        ref.hpp
                   variant/
dynamic_bitset/              make_shared.hpp               regex/
                   variant.hpp
dynamic_bitset_fwd.hpp       math/
regex_fwd.hpp                  version.hpp
dynamic_bitset.hpp           math_fwd.hpp                  regex.h
                   visit_each.hpp
enable_shared_from_this.hpp  mem_fn.hpp                    regex.hpp
                   wave/
exception/                   memory_order.hpp
scoped_array.hpp               wave.hpp
exception.hpp                mpi/
scoped_ptr.hpp                 weak_ptr.hpp
exception_ptr.hpp            mpi.hpp
scope_exit.hpp                 xpressive/

Gilles


2010/10/28 Gilles Caulier <caulier.gilles at gmail.com>:
> Marcel,
>
> look below :
>
> [gilles at localhost graphics]$ ./bootstrap.mandriva
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Looking for Q_WS_X11
> -- Looking for Q_WS_X11 - found
> -- Looking for Q_WS_WIN
> -- Looking for Q_WS_WIN - not found.
> -- Looking for Q_WS_QWS
> -- Looking for Q_WS_QWS - not found.
> -- Looking for Q_WS_MAC
> -- Looking for Q_WS_MAC - not found.
> -- Found Qt-Version 4.6.2 (using /usr/lib/qt4/bin/qmake)
> -- Looking for XOpenDisplay in
> /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
> -- Looking for XOpenDisplay in
> /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
> - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Looking for connect
> -- Looking for connect - found
> -- Looking for remove
> -- Looking for remove - found
> -- Looking for shmat
> -- Looking for shmat - found
> -- Looking for IceConnectionNumber in ICE
> -- Looking for IceConnectionNumber in ICE - found
> -- Found X11: /usr/lib/libX11.so
> -- Looking for include files CMAKE_HAVE_PTHREAD_H
> -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE
> -- Looking for _POSIX_TIMERS
> -- Looking for _POSIX_TIMERS - found
> -- Found Automoc4: /usr/bin/automoc4
> -- Found Perl: /usr/bin/perl
> -- Phonon Version: 4.4.1
> -- Found Phonon: /usr/lib/libphonon.so
> -- Found Phonon Includes: /usr/include/KDE;/usr/include
> -- Performing Test _OFFT_IS_64BIT
> -- Performing Test _OFFT_IS_64BIT - Failed
> -- Performing Test HAVE_FPIE_SUPPORT
> -- Performing Test HAVE_FPIE_SUPPORT - Success
> -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
> -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
> -- Performing Test __KDE_HAVE_GCC_VISIBILITY
> -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
> -- Found KDE 4.4 include dir: /usr/include
> -- Found KDE 4.4 library dir: /usr/lib
> -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
> -- Found automoc4: /usr/bin/automoc4
> -- checking for module 'lcms'
> --   found lcms, version 1.19
> -- Found lcms version 1.19, /usr/lib/liblcms.so
> -- Found JPEG: /usr/lib/libjpeg.so
> -- Found ZLIB: /usr/lib/libz.so
> -- Found PNG: /usr/lib/libpng.so
> -- Found TIFF: /usr/lib/libtiff.so
> -- Found Jasper: /usr/lib/libjasper.so
> -- Check Kdcraw library in local sub-folder...
> -- Check Kdcraw library using pkg-config...
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- Found libkdcraw release >= 0.2.0
> -- Found libkdcraw: /usr/lib/libkdcraw.so
> -- Check Kexiv2 library in local sub-folder...
> -- Check Kexiv2 library using pkg-config...
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- Found libkexiv2 release >= 0.2.0
> -- Found libkexiv2: /usr/lib/libkexiv2.so
> -- Check Kipi library in local sub-folder...
> -- Check Kipi library using pkg-config...
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- Found libkipi release >= 0.2.0
> -- Found libkipi: /usr/lib/libkipi.so
> -- Check Kface library in local sub-folder...
> -- Check Kface library using pkg-config...
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- Found libkface release >= 0.1.0
> -- Found libkface: /usr/lib/libkface.so
> -- Check Kmap library in local sub-folder...
> -- Check Kmap library using pkg-config...
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- Found libkmap release >= 0.1.0
> -- Found libkmap: /usr/lib/libkmap.so
> -- checking for module 'libpgf'
> --   package 'libpgf' not found
> -- Could NOT find any working clapack installation
> -- Boost version: 1.42.0
> -- Found the following Boost libraries:
> --   graph
> -- Identified libjpeg version: 80
> -- Found MySQL server executable at: /usr/sbin/mysqld
> -- Found MySQL install_db executable at: /usr/bin/mysql_install_db
> -- Found gphoto2: -L/usr/lib -lgphoto2_port;-L/usr/lib -lgphoto2
> -lgphoto2_port -lm
> -- Found KdepimLibs: /usr/lib/cmake/KdepimLibs/KdepimLibsConfig.cmake
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- Found GLIB2: /usr/lib/libglib-2.0.so
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- PKGCONFIG() indicates that lensfun is not installed (install the
> package which contains lensfun.pc if you want to support this feature)
> -- Could NOT find LensFun  (missing:  LENSFUN_INCLUDE_DIRS LENSFUN_LIBRARIES)
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- PKGCONFIG() indicates that lqr-1 is not installed (install the
> package which contains lqr-1.pc if you want to support this feature)
> -- Could NOT find Lqr-1  (missing:  LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES)
> -- Found Soprano: /usr/include
> -- Found SharedDesktopOntologies: /usr/share/ontology
> -- Found Nepomuk: /usr/lib/libnepomuk.so
> -- Found Doxygen: /usr/bin/doxygen
> --
> -- ----------------------------------------------------------------------------------
> --  digiKam 2.0.0-GSoC2010 dependencies results   <http://www.digikam.org>
> --
> --  Qt4 SQL module found..................... YES
> --  Qt4 SCRIPT module found.................. YES
> --  Qt4 SCRIPTTOOLS module found............. YES
> --  MySQL Server found....................... YES
> --  MySQL install_db tool found.............. YES
> --  libtiff library found.................... YES
> --  libpng library found..................... YES
> --  libjasper library found.................. YES
> --  liblcms library found.................... YES
> --  Boost Graph library found................ YES
> --  libkipi library found.................... YES
> --  libkexiv2 library found.................. YES
> --  libkdcraw library found.................. YES
> --  libkface library found................... YES
> --  libkmap library found.................... YES
> --  libpgf library found..................... NO  (optional - internal
> version used instead)
> --  libclapack library found................. NO  (optional - internal
> version used instead)
> --  libgphoto2 library found................. YES (optional)
> --  libkdepimlibs library found.............. YES (optional)
> --  Nepomuk libraries found.................. YES (optional)
> --  libglib2 library found................... YES (optional)
> --  liblqr-1 library found................... NO  (optional - internal
> version used instead)
> --  liblensfun library found................. NO  (optional - internal
> version used instead)
> --  Doxygen found............................ YES (optional)
> --  digiKam can be compiled.................. YES
> -- ----------------------------------------------------------------------------------
> --
> -- Adjusting compilation flags for GCC version ( 4.4.3 )
> -- Found Qt-Version 4.6.2 (using /usr/lib/qt4/bin/qmake)
> -- Found X11: /usr/lib/libX11.so
> -- Phonon Version: 4.4.1
> -- Found KDE 4.4 include dir: /usr/include
> -- Found KDE 4.4 library dir: /usr/lib
> -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
> -- Found automoc4: /usr/bin/automoc4
> -- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so
> -- Found Kdcraw library in cache: /usr/lib/libkdcraw.so
> -- Found Kipi library in cache: /usr/lib/libkipi.so
> -- Found Kmap library in cache: /usr/lib/libkmap.so
> -- Found EXPAT: /usr/lib/libexpat.so
> --   found libxml-2.0, version 2.7.7
> -- Found LibXml2: /usr/lib/libxml2.so
> --   found libxslt, version 1.1.26
> -- Found LibXslt: /usr/lib/libxslt.so
> -- checking for module 'libgpod-1.0'
> --   found libgpod-1.0, version 0.7.93
> -- Found Gpod: /usr/include/gpod-1.0
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- Found Gdk: /usr/include/gtk-2.0
> -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
> -- checking for module 'gobject-2.0'
> --   found gobject-2.0, version 2.24.1
> -- Found GObject libraries:
> /usr/lib/libgobject-2.0.so;/usr/lib/libgmodule-2.0.so;/usr/lib/libgthread-2.0.so;/usr/lib/libglib-2.0.so
> -- Found GObject includes : /usr/include/glib-2.0/gobject
> --   found qca2, version 2.0.2
> -- Found QCA2: /usr/lib/libqca.so
> -- Found libksane: /usr/lib/libksane.so
> -- Found X11: /usr/lib/libX11.so
> -- CMake version: cmake version 2.8.1
>
> -- CMake version (cleaned): cmake version 2.8.1
>
> -- Try OpenMP C flag = [-fopenmp]
> -- Performing Test OpenMP_FLAG_DETECTED
> -- Performing Test OpenMP_FLAG_DETECTED - Success
> -- Try OpenMP CXX flag = [-fopenmp]
> -- Performing Test OpenMP_FLAG_DETECTED
> -- Performing Test OpenMP_FLAG_DETECTED - Success
> -- Found OpenMP: -fopenmp
> --
> -- ----------------------------------------------------------------------------------
> --  kipi-plugins 2.0.0-GoSC2010 dependencies results
> <http://www.kipi-plugins.org>
> --
> --  libjpeg library found.................... YES
> --  libtiff library found.................... YES
> --  libpng library found..................... YES
> --  libkipi library found.................... YES
> --  libkexiv2 library found.................. YES
> --  libkdcraw library found.................. YES
> --  libkmap library found.................... YES
> --  libxml2 library found.................... YES (optional)
> --  libxslt library found.................... YES (optional)
> --  libexpat library found................... YES (optional)
> --  native threads support library found..... YES (optional)
> --  libopengl library found.................. YES (optional)
> --  Qt4 OpenGL module found.................. YES
> --  libopencv library found.................. YES (optional)
> --  libgpod library found.................... YES (optional)
> --  Gdk library found........................ YES (optional)
> --  libkdepim library found.................. YES (optional)
> --  qca2 library found....................... YES (optional)
> --  OpenMP library found..................... YES (optional)
> --  libX11 library found..................... YES (optional)
> --  libksane library found................... YES (optional)
> --
> --  kipi-plugins will be compiled............ YES
> --  Shwup will be compiled................... YES (optional)
> --  HtmlExport will be compiled.............. YES (optional)
> --  AdvancedSlideshow will be compiled....... YES (optional)
> --  ImageViewer will be compiled............. YES (optional)
> --  AcquireImages will be compiled........... YES (optional)
> --  DNGConverter will be compiled............ YES (optional)
> --  RemoveRedEyes will be compiled........... YES (optional)
> --  IpodExport will be compiled.............. YES (optional)
> --  Calendar will be compiled................ YES (optional)
> -- ----------------------------------------------------------------------------------
> --
> -- Check if the system is big endian
> -- Searching 16 bit integer
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of unsigned short
> -- Check size of unsigned short - done
> -- Using unsigned short
> -- Check if the system is big endian - little endian
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /mnt/data/Devel/SVN/branches/graphics
>
> [gilles at localhost graphics]$ make
> [  0%] Built target digikam-svnversion
> [  0%] Built target digikamcore_automoc
> [ 22%] Built target digikamcore
> [ 22%] Built target testlensfuniface_automoc
> [ 23%] Built target testlensfuniface
> [ 23%] Built target digikamdatabase_automoc
> [ 23%] Building CXX object
> digikam/digikam/CMakeFiles/digikamdatabase.dir/__/libs/database/imagehistory/imagehistorygraph.cpp.o
> In file included from
> /usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/../../../../include/c++/4.4.3/backward/hash_set:59,
>                 from /usr/include/boost/pending/container_traits.hpp:23,
>                 from /usr/include/boost/graph/detail/adjacency_list.hpp:31,
>                 from /usr/include/boost/graph/adjacency_list.hpp:324,
>                 from
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph_boost.h:32,
>                 from
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:37,
>                 from
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:36:
> /usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/../../../../include/c++/4.4.3/backward/backward_warning.h:28:2:
> warning: #warning This file includes at least one deprecated or
> antiquated header which may be removed without further notice at a
> future date. Please use a non-deprecated interface with equivalent
> functionality instead. For a listing of replacement headers and
> interfaces, consult the file backward_warning.h. To disable this
> warning use -Wno-deprecated.
> In file included from
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:36:
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:101:
> error: ISO C++ forbids declaration of 'Graph' with no type
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:101:
> error: expected ',' or '...' before '&' token
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:105:
> error: ISO C++ forbids declaration of 'Graph' with no type
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:105:
> error: expected ',' or '...' before '&' token
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:
> In constructor 'Digikam::ImageHistoryGraphData::ImageHistoryGraphData(int)':
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:101:
> error: class 'Digikam::ImageHistoryGraphData' does not have any field
> named 'Graph'
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:101:
> error: 'g' was not declared in this scope
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:
> At global scope:
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:101:
> warning: unused parameter 'Graph'
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:
> In member function 'Digikam::ImageHistoryGraphData&
> Digikam::ImageHistoryGraphData::operator=(int)':
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:107:
> error: 'Graph' is not a class or namespace
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:107:
> error: 'g' was not declared in this scope
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:
> At global scope:
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraphdata.h:105:
> warning: unused parameter 'Graph'
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:
> In member function 'void
> Digikam::ImageHistoryGraphData::applyProperties(Digikam::Graph<Digikam::HistoryVertexProperties,
> Digikam::HistoryEdgeProperties>::Vertex&, const
> QList<Digikam::ImageInfo>&, const QList<Digikam::HistoryImageId>&)':
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:222:
> error: 'template<class VertexProperties, class EdgeProperties> class
> Digikam::Graph' used without template parameters
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:
> In member function 'void Digikam::ImageHistoryGraph::finish()':
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:335:
> error: 'Graph' is not a member of 'Digikam::ImageHistoryGraphData'
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:335:
> error: expected ';' before 'reduction'
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:346:
> error: 'reduction' was not declared in this scope
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:
> In member function 'QList<QPair<long long int, long long int> >
> Digikam::ImageHistoryGraph::relationCloud() const':
> /mnt/data/Devel/SVN/branches/graphics/digikam/libs/database/imagehistory/imagehistorygraph.cpp:352:
> error: conversion from
> 'Digikam::Graph<Digikam::HistoryVertexProperties,
> Digikam::HistoryEdgeProperties>' to non-scalar type
> 'Digikam::ImageHistoryGraphData' requested
> make[2]: *** [digikam/digikam/CMakeFiles/digikamdatabase.dir/__/libs/database/imagehistory/imagehistorygraph.cpp.o]
> Error 1
> make[1]: *** [digikam/digikam/CMakeFiles/digikamdatabase.dir/all] Error 2
> make: *** [all] Error 2
>
> Gilles
>



More information about the Digikam-devel mailing list