Discussion:
[KPhotoAlbum] Compiling KPA with KFace
Martin Jost
2014-12-26 19:41:08 UTC
Permalink
Hello,

I tried to compile KPA with the interface for face recognition.
I pulled KPA from git today for this.

First I didn't had the correct dependencies installed.
That compilation and linking succeeded.

But after I installed the libs and include files, now the link fails
with a missing symbol.
(Note:
Between those two compilations I did
make clean
cmake clean .
git clean -f
rm CMakeCache.txt
----
cmake .
make
to start over.
cmake .
-- Found Qt-Version 4.8.5 (using /usr/bin/qmake)
-- Found X11: /usr/lib64/libX11.so
-- Found KDE 4.11 include dir: /usr/include
-- Found KDE 4.11 library dir: /usr/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- No Kipi library version required. Check default version : 1.2.0
-- Check Kipi library in local sub-folder...
-- Check Kipi library using pkg-config...
-- Kipi library version: 2.1.0
-- libkipi: Found version 2.1.0 (required: 1.2.0)
-- Check for Kdcraw library in local sub-folder...
-- Check Kdcraw library using pkg-config...
-- Found libkdcraw release 2.3.1
-- Found libkdcraw: /usr/lib64/libkdcraw.so
-- Found KFace version 3.5.0 (optional)
-- Face detection and recognition features will be built.
-- Did not find KGeoMap (optional)
-- Geographic map features won't be built.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pd/pd-sw/foto/kphotoalbum/kphotoalbum_git
make
[...]
Linking CXX executable kphotoalbum
/home/pd/pd-sw/foto/kphotoalbum/kphotoalbum_git/Settings/CategoryItem.cpp:198: undefined reference to `Settings::CategoryItem::newCategoryNameSaved(QString, QString)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [kphotoalbum] Fehler 1
gmake[1]: *** [CMakeFiles/kphotoalbum.dir/all] Fehler 2
gmake: *** [all] Fehler 2
How can I fix this - I'm really curious for the face detection... ;-)

Regards

Martin

P.S.:
What about a new official release with this feature ?
Tobias Leupold
2014-12-27 14:19:36 UTC
Permalink
Hi Martin!
Post by Martin Jost
after I installed the libs and include files, now the link fails
with a missing symbol.
That is odd ... I just tried (again ;-) to compile KPA from git master and it
worked just fine ...

I did not do an in-tree build, but created a build directory (which can easily
wiped by rm -r *). Perhaps, there are some object files left causing this?

Does it also happen with a "clean" new git copy and after

mkdir build
cd build
cmake ..
make

?
Post by Martin Jost
What about a new official release with this feature ?
I think we will do a new release including the face detection and recognition
features soon, as we also added a lot of new features and fixed a lot of
issues the last weeks/months. At least, Jesper said so ;-)

Cheers, Tobias

Loading...