[Digikam-devel] Re: Current svn of libkface does not compile for me

Gilles Caulier caulier.gilles at gmail.com
Thu Oct 28 10:10:36 BST 2010


Alex,

And yes, i confirm that libkface doesn't compile with current libface
code from svn trunk :

[gilles at localhost libkface]$ make
Scanning dependencies of target kface_automoc
Generating button.moc
Generating faceitem.moc
Generating marquee.moc
[  0%] Built target kface_automoc
Scanning dependencies of target kface
[ 10%] Building CXX object
libs/libkface/libkface/CMakeFiles/kface.dir/kface_automoc.o
[ 10%] Building CXX object
libs/libkface/libkface/CMakeFiles/kface.dir/database.o
/mnt/data/Devel/SVN/trunk/kdegraphics/libs/libkface/libkface/database.cpp:
In member function 'bool
KFaceIface::Database::updateFaces(QList<KFaceIface::Face>&)':
/mnt/data/Devel/SVN/trunk/kdegraphics/libs/libkface/libkface/database.cpp:227:
error: no match for 'operator=' in 'ids =
((KFaceIface::Database*)this)->KFaceIface::Database::d.QExplicitlySharedDataPointer<T>::operator->
[with T = KFaceIface::Database::DatabasePriv]()->KFaceIface::Database::DatabasePriv::libface->libface::LibFace::update((&
faceVec), 1)'
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/../../../../include/c++/4.4.3/bits/vector.tcc:156:
note: candidates are: std::vector<_Tp, _Alloc>& std::vector<_Tp,
_Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int,
_Alloc = std::allocator<int>]
make[2]: *** [libs/libkface/libkface/CMakeFiles/kface.dir/database.o] Error 1
make[1]: *** [libs/libkface/libkface/CMakeFiles/kface.dir/all] Error 2
make: *** [all] Error 2

Gilles

2010/10/28 Gilles Caulier <caulier.gilles at gmail.com>:
> Alex,
>
> [gilles at localhost libface]$ make
> [  5%] Building CXX object src/CMakeFiles/face.dir/LibFaceUtils.cpp.o
> [ 11%] Building CXX object src/CMakeFiles/face.dir/FaceDetect.cpp.o
> [ 16%] Building CXX object src/CMakeFiles/face.dir/Face.cpp.o
> [ 22%] Building CXX object src/CMakeFiles/face.dir/Eigenfaces.cpp.o
> [ 27%] Building CXX object src/CMakeFiles/face.dir/LibFace.cpp.o
> [ 33%] Building CXX object src/CMakeFiles/face.dir/Haarcascades.cpp.o
> Linking CXX shared library libface.so
> [ 33%] Built target face
> [ 38%] Building CXX object
> examples/CMakeFiles/FaceDetectionExample.dir/FaceDetection.cpp.o
> Linking CXX executable FaceDetectionExample
> [ 38%] Built target FaceDetectionExample
> [ 44%] Building CXX object
> examples/CMakeFiles/RandomTestsExample.dir/RandomTests.cpp.o
> Linking CXX executable RandomTestsExample
> CMakeFiles/RandomTestsExample.dir/RandomTests.cpp.o: In function
> `main':
> /mnt/data/Devel/SVN/branches/libface/examples/RandomTests.cpp:63:
> undefined reference to `libface::LibFace::count(int) const'
> collect2: ld returned 1 exit status
> make[2]: *** [examples/RandomTestsExample] Error 1
> make[1]: *** [examples/CMakeFiles/RandomTestsExample.dir/all] Error 2
> make: *** [all] Error 2
>
> Test program do not link fine...
>
> Gilles
>
> 2010/10/28 Alex Jironkin <alexjironkin at gmail.com>:
>> I have changed the return parameter from update function. I will revert to previous version.
>>
>>
>> Alex
>>
>> On 28 Oct 2010, at 09:48, Gilles Caulier wrote:
>>
>>> libkface must be compiled against libface from trunk (currently 0.1 release)
>>>
>>> We plan to include right libface code as well in libkface to prevent
>>> any problem and reduce puzzle complexity. We already do this with
>>> libraw included in libkdcraw.
>>>
>>> Marcel, do you have started to port libface code to libkface ? If no,
>>> i can do it today
>>>
>>> Gilles Caulier
>>>
>>> 2010/10/28 Sven Burmeister <sven.burmeister at gmx.net>:
>>>> Hello!
>>>>
>>>> First of all, since there is now a branch of libface, should I use that branch
>>>> or trunk for compiling digikam 2.0 svn?
>>>>
>>>> Further if I try to compile libkface with any of the above I get an error. I
>>>> tried to clean the build dirs but to no avail.
>>>>
>>>> Is this a local issue or does compiling fail for anyone else as well?
>>>>
>>>> Sven
>>>>
>>>> /home/kde-branch/kde/src/libkface/libkface/database.cpp: In member function
>>>> ‘bool KFaceIface::Database::updateFaces(QList<KFaceIface::Face>&)’:
>>>> /home/kde-branch/kde/src/libkface/libkface/database.cpp:227:42: error: no
>>>> match for ‘operator=’ in ‘ids = ((KFaceIface::Database*)this)-
>>>>> KFaceIface::Database::d.QExplicitlySharedDataPointer<T>::operator-> [with T =
>>>> KFaceIface::Database::DatabasePriv]()-
>>>>> KFaceIface::Database::DatabasePriv::libface->libface::LibFace::update((&
>>>> faceVec), 1)’
>>>> /usr/include/c++/4.5/bits/vector.tcc:156:5: note: candidate is:
>>>> std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const
>>>> std::vector<_Tp, _Alloc>&) [with _Tp = int, _Alloc = std::allocator<int>]
>>>> /home/kde-branch/kde/src/libkface/libkface/database.cpp: In member function
>>>> ‘QList<double>
>>>> KFaceIface::Database::recognizeFaces(QList<KFaceIface::Face>&)’:
>>>> /home/kde-branch/kde/src/libkface/libkface/database.cpp:274:48: error: no
>>>> match for ‘operator=’ in ‘result =
>>>> libface::LibFace::recognise(std::vector<libface::Face>*, int)((& faceVec), 1)’
>>>> /usr/include/c++/4.5/bits/vector.tcc:156:5: note: candidate is:
>>>> std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const
>>>> std::vector<_Tp, _Alloc>&) [with _Tp = std::pair<int, double>, _Alloc =
>>>> std::allocator<std::pair<int, double> >]
>>>> _______________________________________________
>>>> Digikam-devel mailing list
>>>> Digikam-devel at kde.org
>>>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>>>
>>> _______________________________________________
>>> Digikam-devel mailing list
>>> Digikam-devel at kde.org
>>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>
>> If we knew what we were doing, it wouldn't be called research, would it?
>> -- Albert Einstein
>>
>>
>>
>> _______________________________________________
>> Digikam-devel mailing list
>> Digikam-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>
>



More information about the Digikam-devel mailing list