KFritz

Network

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

13
8 .0
Description:

A KDE program for users of AVMs Fritz!Box to get call signaling and other functions.

Call notification

KFritz connects to the Fritz!Box to inform you about incoming calls. Detailed configuration is possible either in the KFritz user interface or KDE's system settings.

To enable this feature you have to dial "#96*5*" with a telephone connected to the Fritz!Box. This works for all firmware versions >= xx.03.99

You may experience problems when trying to dial "#96*5*" with an ISDN telephone. In such a case try to activate "auto keypad", "dial * and #" or some similar setting in your ISDN telephone. If your ISDN telephone contains no keypad support simply use an analogue telephone instead.

If you do not want to be notified by every call, you can specify a list of MSNs you are interested on in the plugin's setup. Max. 22 monitored MSNs are supported.

Phone book support

KFritz supports multiple phonebooks. You can configure which phonebooks are used. The order matters with respect to number lookup. When a call comes in, the plugin tries to resolve the number using the first configured phonebook. If that fails, it tries the second one, and so on.

Fritz!Box phone book

This accesses the Fritz!Box phonebook stored on the box itself.

das-oertliche.de/nummerzoeker.com phone books

This tries to resolve any number via online directories.

Local Phonebook

This is a local CSV file. It must be called "localphonebook.csv" and has to be placed in $KDEHOME/share/apps/kfritz/. Each line contains one entry in the following format: "«name»,«type»,«number»". «type» has to be replaced with a type code (1=home, 2=mobile, 3=work).


Fritz!Box call list

Shows the call history. Missed calls are indicated in KDE's system bar.


f you discover any bug or have a feature request, use the KDE bugtracking at https://bugs.kde.org/enter_bug.cgi?product=kfritz&format=guided
Last changelog:

5 years ago

2015-03-25: Version 0.0.14
- Fix compiler issue with libindicate installed
(closes #329249 in KDE bugtracker)
- Fix crash on empty fritz phone book entries
(closes #330733 in KDE bugtracker)

C

jowi24

10 years ago

What have you already tried? Do you get an error message or similar?

Just unpack the source-archive and run "make all".

Report

johnyff

10 years ago

Thanks for this great App for KDE

Report

rbos

10 years ago

Hi,

I'm getting this build failure:
[ 67%] Building CXX object CMakeFiles/kfritz.dir/KFritzWindow.o
/usr/bin/c++ -D_BSD_SOURCE -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -g -ggdb -O0 -Wall -D_GLIBCXX_DEBUG -I/usr/src/packages/BUILD/kfritz-0.0.1/builddir -I/usr/src/packages/BUILD/kfritz-0.0.1 -I/usr/src/packages/BUILD/kfritz-0.0.1/libfritz++ -I/usr/src/packages/BUILD/kfritz-0.0.1/libtcpclient++ -I/usr/src/packages/BUILD/kfritz-0.0.1/libpthread++ -I/usr/include/KDE -I/usr/include/QtXmlPatterns -I/usr/include/QtWebKit -I/usr/include/QtHelp -I/usr/include/QtAssistant -I/usr/include/QtDBus -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtNetwork -I/usr/include/QtDesigner -I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/Qt -I/usr/share/qt4/mkspecs/default -o CMakeFiles/kfritz.dir/KFritzWindow.o -c /usr/src/packages/BUILD/kfritz-0.0.1/KFritzWindow.cpp
/usr/src/packages/BUILD/kfritz-0.0.1/KFritzWindow.cpp: In member function 'void KFritzWindow::initIndicator()':
/usr/src/packages/BUILD/kfritz-0.0.1/KFritzWindow.cpp:260: warning: unused variable 'iServer'
/usr/src/packages/BUILD/kfritz-0.0.1/KFritzWindow.cpp: In member function 'void KFritzWindow::showMissedCalls(QIndicate::Indicator*)':
/usr/src/packages/BUILD/kfritz-0.0.1/KFritzWindow.cpp:383: error: invalid use of incomplete type 'struct QIndicate::Indicator'
/usr/src/packages/BUILD/kfritz-0.0.1/KFritzWindow.h:45: error: forward declaration of 'struct QIndicate::Indicator'
make[2]: *** [CMakeFiles/kfritz.dir/KFritzWindow.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/kfritz-0.0.1/builddir'

This is on openSUSE_11.2 x86_64 and on i586 as well

Report

C

jowi24

10 years ago

This is an error on systems without libindicate-qt-dev. The following patch fixes this and will be part of the next release.

--- KFritzWindow.cpp (revision 336)
+++ KFritzWindow.cpp (working copy)
@@ -379,9 +379,10 @@
void KFritzWindow::showMissedCalls(QIndicate::Indicator* indicator __attribute__((unused))) {
tabWidget->setCurrentIndex(1);
this->show();
+#ifdef INDICATEQT_FOUND
if (missedCallsIndicator)
missedCallsIndicator->hide();
-
+#endif
fritz::CallList *callList = fritz::CallList::getCallList(false);
KSettings::setLastKnownMissedCall(callList->LastMissedCall());
KSettings::self()->writeConfig();

Report

rbos

10 years ago

Hello jowi24: your +#ifdef INDICATEQT_FOUND patched fixed that failure indeed. Thanks, especially for the switch reply time :)

But now it fails at the end of the build with this error;
[100%] Building CXX object CMakeFiles/kfritz.dir/KSettings.o
/usr/bin/c++ -D_BSD_SOURCE -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -g -ggdb -O0 -Wall -D_GLIBCXX_DEBUG -I/usr/src/packages/BUILD/kfritz-0.0.1/builddir -I/usr/src/packages/BUILD/kfritz-0.0.1 -I/usr/src/packages/BUILD/kfritz-0.0.1/libfritz++ -I/usr/src/packages/BUILD/kfritz-0.0.1/libtcpclient++ -I/usr/src/packages/BUILD/kfritz-0.0.1/libpthread++ -I/usr/include/KDE -I/usr/include/QtXmlPatterns -I/usr/include/QtWebKit -I/usr/include/QtHelp -I/usr/include/QtAssistant -I/usr/include/QtDBus -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtNetwork -I/usr/include/QtDesigner -I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/Qt -I/usr/share/qt4/mkspecs/default -o CMakeFiles/kfritz.dir/KSettings.o -c /usr/src/packages/BUILD/kfritz-0.0.1/builddir/KSettings.cpp
Linking CXX executable kfritz
/usr/bin/cmake -E cmake_link_script CMakeFiles/kfritz.dir/link.txt --verbose=1
/usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -g -ggdb -O0 -Wall -D_GLIBCXX_DEBUG -fPIC -Wl,--enable-new-dtags CMakeFiles/kfritz.dir/kfritz_automoc.o CMakeFiles/kfritz.dir/KFritz.o CMakeFiles/kfritz.dir/KFritzWindow.o CMakeFiles/kfritz.dir/KFonbookModel.o CMakeFiles/kfritz.dir/KSettingsFonbooks.o CMakeFiles/kfritz.dir/KSettingsFritzBox.o CMakeFiles/kfritz.dir/KFritzModel.o CMakeFiles/kfritz.dir/KCalllistModel.o CMakeFiles/kfritz.dir/LibFritzInit.o CMakeFiles/kfritz.dir/Log.o CMakeFiles/kfritz.dir/LogDialog.o CMakeFiles/kfritz.dir/QAdaptTreeView.o CMakeFiles/kfritz.dir/KSettings.o -o kfritz -rdynamic -L/usr/src/packages/BUILD/kfritz-0.0.1/builddir/lib /usr/lib64/libkdeui.so.5.3.0 /usr/lib64/libknotifyconfig.so.4.3.0 lib/libfritz++.a lib/libtcpclient++.a lib/libpthread++.a -lssl /usr/lib64/libkdeui.so.5.3.0 -lQtSvg /usr/lib64/libkdecore.so.5.3.0 -lQtDBus -lQtCore -lpthread -lQtGui
lib/libfritz++.a(FritzClient.cpp.o): In function `fritz::FritzClient::CalculateLoginResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/usr/src/packages/BUILD/kfritz-0.0.1/libfritz++/FritzClient.cpp:73: undefined reference to `MD5'
collect2: ld returned 1 exit status
make[2]: *** [kfritz] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/kfritz-0.0.1/builddir'

Hopefully you have a quick fix for this one too!

Report

rbos

10 years ago

Hello jowi24: your +#ifdef INDICATEQT_FOUND patched fixed that failure indeed. Thanks, especially for the switch reply time :)

But now it fails at the end of the build with this error;
[100%] Building CXX object CMakeFiles/kfritz.dir/KSettings.o
/usr/bin/c++ -D_BSD_SOURCE -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -g -ggdb -O0 -Wall -D_GLIBCXX_DEBUG -I/usr/src/packages/BUILD/kfritz-0.0.1/builddir -I/usr/src/packages/BUILD/kfritz-0.0.1 -I/usr/src/packages/BUILD/kfritz-0.0.1/libfritz++ -I/usr/src/packages/BUILD/kfritz-0.0.1/libtcpclient++ -I/usr/src/packages/BUILD/kfritz-0.0.1/libpthread++ -I/usr/include/KDE -I/usr/include/QtXmlPatterns -I/usr/include/QtWebKit -I/usr/include/QtHelp -I/usr/include/QtAssistant -I/usr/include/QtDBus -I/usr/include/QtTest -I/usr/include/QtUiTools -I/usr/include/QtScript -I/usr/include/QtSvg -I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL -I/usr/include/QtNetwork -I/usr/include/QtDesigner -I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/Qt -I/usr/share/qt4/mkspecs/default -o CMakeFiles/kfritz.dir/KSettings.o -c /usr/src/packages/BUILD/kfritz-0.0.1/builddir/KSettings.cpp
Linking CXX executable kfritz
/usr/bin/cmake -E cmake_link_script CMakeFiles/kfritz.dir/link.txt --verbose=1
/usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -g -ggdb -O0 -Wall -D_GLIBCXX_DEBUG -fPIC -Wl,--enable-new-dtags CMakeFiles/kfritz.dir/kfritz_automoc.o CMakeFiles/kfritz.dir/KFritz.o CMakeFiles/kfritz.dir/KFritzWindow.o CMakeFiles/kfritz.dir/KFonbookModel.o CMakeFiles/kfritz.dir/KSettingsFonbooks.o CMakeFiles/kfritz.dir/KSettingsFritzBox.o CMakeFiles/kfritz.dir/KFritzModel.o CMakeFiles/kfritz.dir/KCalllistModel.o CMakeFiles/kfritz.dir/LibFritzInit.o CMakeFiles/kfritz.dir/Log.o CMakeFiles/kfritz.dir/LogDialog.o CMakeFiles/kfritz.dir/QAdaptTreeView.o CMakeFiles/kfritz.dir/KSettings.o -o kfritz -rdynamic -L/usr/src/packages/BUILD/kfritz-0.0.1/builddir/lib /usr/lib64/libkdeui.so.5.3.0 /usr/lib64/libknotifyconfig.so.4.3.0 lib/libfritz++.a lib/libtcpclient++.a lib/libpthread++.a -lssl /usr/lib64/libkdeui.so.5.3.0 -lQtSvg /usr/lib64/libkdecore.so.5.3.0 -lQtDBus -lQtCore -lpthread -lQtGui
lib/libfritz++.a(FritzClient.cpp.o): In function `fritz::FritzClient::CalculateLoginResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/usr/src/packages/BUILD/kfritz-0.0.1/libfritz++/FritzClient.cpp:73: undefined reference to `MD5'
collect2: ld returned 1 exit status
make[2]: *** [kfritz] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/kfritz-0.0.1/builddir'

Hopefully you have a quick fix for this one too!

Report

C

jowi24

10 years ago

Yes, I have... :)

You need libssl-dev installed, because KFritz uses the crypto routines of SSL to login to the Fritz!Box.

Report

C

jowi24

10 years ago

I just fixed the cmake makefile accordingly, because it should warn you about the missing libssl-dev.

Report

rbos

10 years ago

Hi,
I tried it with libopenssl-devel, but that does not help:
$ rpm -qa | grep ssl
libopenssl0_9_8-0.9.8k-3.4.x86_64
libopenssl-devel-0.9.8k-3.4.x86_64
openssl-0.9.8k-3.4.x86_64

$ rpm -ql libopenssl-devel | grep -i md5
/usr/include/openssl/md5.h

This file has:
unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md);

Any idea what is wrong, or what I'm doing wrong? In which file is MD5 defined?

Report

C

jowi24

10 years ago

This is an error on systems without libindicate-qt-dev. The following patch fixes this and will be part of the next release.

--- KFritzWindow.cpp (revision 336)
+++ KFritzWindow.cpp (working copy)
@@ -379,9 +379,10 @@
void KFritzWindow::showMissedCalls(QIndicate::Indicator* indicator __attribute__((unused))) {
tabWidget->setCurrentIndex(1);
this->show();
+#ifdef INDICATEQT_FOUND
if (missedCallsIndicator)
missedCallsIndicator->hide();
-
+#endif
fritz::CallList *callList = fritz::CallList::getCallList(false);
KSettings::setLastKnownMissedCall(callList->LastMissedCall());
KSettings::self()->writeConfig();

Report

wrohdewald

10 years ago

Did you find a way how to pass phone book entries into the Fritz box? It would be quite handy if I could pass all my kaddressbook entries that way - and KFritz could pass new entries for incoming calls where the number has to be looked up in das Oertliche.

Report

C

jowi24

10 years ago

This is not yet implemented, but sounds like a cool feature. The only way adding phone book entries is to do it the same way as it is done via the Fritz!Box's web interface (which should not be too complex)
btw. patches are welcome ;-)

Report

C

jowi24

9 years ago

A first step is done here, existing phone book entries can now be edited in KFritz and are saved to the Fritz!Box when KFritz is closed.

Report

lefou

10 years ago

I got the following compile error (KDE4.4):

make -j1
Scanning dependencies of target tcpclient++
[ 3%] Building CXX object libtcpclient++/CMakeFiles/tcpclient++.dir/TcpClient++.cpp.o
Linking CXX static library ../lib/libtcpclient++.a
[ 3%] Built target tcpclient++
Scanning dependencies of target pthread++
[ 6%] Building CXX object libpthread++/CMakeFiles/pthread++.dir/PThread++.cpp.o
Linking CXX static library ../lib/libpthread++.a
[ 6%] Built target pthread++
Scanning dependencies of target kfritz_automoc
Generating moc_KFonbookModel.cpp
Generating moc_KCalllistModel.cpp
Generating moc_Log.cpp
Generating moc_LogDialog.cpp
Generating moc_KFritz.cpp
Generating moc_KSettingsFritzBox.cpp
Generating moc_KFritzModel.cpp
Generating moc_KFritzWindow.cpp
Generating moc_LibFritzInit.cpp
Generating moc_QAdaptTreeView.cpp
Generating moc_KSettingsFonbooks.cpp
[ 6%] Built target kfritz_automoc
Scanning dependencies of target fritz++
[ 9%] Building CXX object libfritz++/CMakeFiles/fritz++.dir/CallList.cpp.o
[ 12%] Building CXX object libfritz++/CMakeFiles/fritz++.dir/Config.cpp.o
[ 16%] Building CXX object libfritz++/CMakeFiles/fritz++.dir/Fonbooks.cpp.o
[ 19%] Building CXX object libfritz++/CMakeFiles/fritz++.dir/Fonbook.cpp.o
[ 22%] Building CXX object libfritz++/CMakeFiles/fritz++.dir/FonbookManager.cpp.o
[ 25%] Building CXX object libfritz++/CMakeFiles/fritz++.dir/FritzClient.cpp.o
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp: In member function »bool fritz::FritzClient::InitCall(std::string&)«:
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp:278: Fehler: »te« wurde in diesem Gültigkeitsbereich nicht definiert
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp: In member function »std::string fritz::FritzClient::RequestLocationSettings()«:
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp:298: Fehler: »te« wurde in diesem Gültigkeitsbereich nicht definiert
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp: In member function »std::string fritz::FritzClient::RequestSipSettings()«:
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp:316: Fehler: »te« wurde in diesem Gültigkeitsbereich nicht definiert
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp: In member function »std::string fritz::FritzClient::RequestCallList()«:
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp:355: Fehler: »te« wurde in diesem Gültigkeitsbereich nicht definiert
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp: In member function »std::string fritz::FritzClient::RequestFonbook()«:
/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz/libfritz++/FritzClient.cpp:374: Fehler: »te« wurde in diesem Gültigkeitsbereich nicht definiert
make[2]: *** [libfritz++/CMakeFiles/fritz++.dir/FritzClient.cpp.o] Fehler 1
make[1]: *** [libfritz++/CMakeFiles/fritz++.dir/all] Fehler 2
make: *** [all] Fehler 2

Any idea?

Report

C

jowi24

10 years ago

Not yet. What compilier version do you use?

Report

lefou

10 years ago

Compiler:

buildbox kfritz# LC_ALL=c gcc --version
gcc (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

on a 32bit machine.

Configuration:

buildbox kfritz# cmake -C /var/tmp/portage/kde-misc/kfritz-0.0.1/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE4_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-misc/kfritz-0.0.1/temp/gentoo_rules.cmake /var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz
loading initial cache file /var/tmp/portage/kde-misc/kfritz-0.0.1/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/bin/i686-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib/ccache/bin/i686-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/i686-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib/ccache/bin/i686-pc-linux-gnu-g++ -- 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.1 (using /usr/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.3.80
-- 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 'indicate-qt>=0.2.2'
-- package 'indicate-qt>=0.2.2' not found
-- <<< Gentoo configuration >>>
Build type: Gentoo
Install path: /usr

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz_build

Report

lefou

10 years ago

I found the problem: When not building in debug mode, the -fexceptions switch is not enabled.

Addding
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
somewhere in the bottom of the CmakeLists.txt file fixed this problem.

But now, I got a new error when linking:

Linking CXX executable kfritz
/usr/bin/cmake -E cmake_link_script CMakeFiles/kfritz.dir/link.txt --verbose=1
/usr/lib/ccache/bin/i686-pc-linux-gnu-g++ -fexceptions -fexceptions -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed CMakeFiles/kfritz.dir/kfritz_automoc.o CMakeFiles/kfritz.dir/KFritz.o CMakeFiles/kfritz.dir/KFritzWindow.o CMakeFiles/kfritz.dir/KFonbookModel.o CMakeFiles/kfritz.dir/KSettingsFonbooks.o CMakeFiles/kfritz.dir/KSettingsFritzBox.o CMakeFiles/kfritz.dir/KFritzModel.o CMakeFiles/kfritz.dir/KCalllistModel.o CMakeFiles/kfritz.dir/LibFritzInit.o CMakeFiles/kfritz.dir/Log.o CMakeFiles/kfritz.dir/LogDialog.o CMakeFiles/kfritz.dir/QAdaptTreeView.o CMakeFiles/kfritz.dir/KSettings.o -o kfritz -rdynamic -L/var/tmp/portage/kde-misc/kfritz-0.0.1/work/kfritz_build/lib -L/usr/lib/qt4 /usr/lib/libkdeui.so.5.4.0 /usr/lib/libknotifyconfig.so.4.4.0 lib/libfritz++.a lib/libtcpclient++.a lib/libpthread++.a -lssl -lindicate-qt /usr/lib/qt4/libQtSvg.so /usr/lib/libkdecore.so.5.4.0 /usr/lib/qt4/libQtDBus.so /usr/lib/qt4/libQtCore.so -lpthread /usr/lib/qt4/libQtGui.so -Wl,-rpath,/usr/lib/qt4:::::::::
lib/libfritz++.a(FritzClient.cpp.o): In function `fritz::FritzClient::CalculateLoginResponse(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
FritzClient.cpp:(.text+0x1306): undefined reference to `MD5'
collect2: ld gab 1 als Ende-Status zurück

I'm under Gentoo, so all (!) header files of packages are already present.

Report

C

jowi24

10 years ago

Thanks for your response. I'll add the parameter to the makefile.

The linker error has to do with dynamic linking to libssl.so. This is not a header problem.

I'm currently investigating this issue and will report back.

Report

C

jowi24

10 years ago

rbos found a solution for openSUSE, perhaps this works for you, too:

http://lists.opensuse.org/opensuse-packaging/2010-02/msg00076.html

Summary:
--- kfritz-0.0.1/CMakeLists.txt 2010-02-11 13:09:35.000000000 +0100
+++ kfritz-0.0.1.new/CMakeLists.txt 2010-02-16 10:14:31.000000000 +0100
@@ -71,7 +71,7 @@ configure_file(pkg-config.h.cmake ${CMAK
kde4_add_executable(kfritz ${kfritzbox_SRCS})
target_link_libraries(kfritz ${KDE4_KDEUI_LIBS} ${KDE4_KNOTIFYCONFIG_LIBRARY}
fritz++ tcpclient++ pthread++
- ssl)
+ crypto ssl)
if (INDICATEQT_FOUND)
target_link_libraries(kfritz ${INDICATEQT_LIBRARIES})
endif (INDICATEQT_FOUND)

Report

lefou

10 years ago

Thanks, that worked!

I created an ebuild for Gentoo, so everybody can try it out: http://lepetitfou.dyndns.org/svn/gentoo/lefous_portage_overlay/kde-misc/kfritz/kfritz-0.0.1.ebuild

I'm currently not a home, so I cannot say anything to your app (apparently, KFritz doesn't support multiple fritz-boxes), but it looks promising. ;-)

Report

5 years ago

2015-03-25: Version 0.0.14
- Fix compiler issue with libindicate installed
(closes #329249 in KDE bugtracker)
- Fix crash on empty fritz phone book entries
(closes #330733 in KDE bugtracker)

12345678910
12
product-maker mea5 Feb 09 2016 9 excellent
product-maker poiuztrew Apr 13 2015 9 excellent
product-maker Moppel Feb 27 2013 9 excellent
product-maker peavey Nov 23 2012 9 excellent
product-maker Heart May 02 2012 9 excellent
product-maker mononoke Apr 23 2012 9 excellent
product-maker Goldfinger Nov 02 2011 9 excellent
product-maker schleby Jul 25 2011 9 excellent
product-maker SirDodger Feb 17 2011 9 excellent
product-maker ach Jan 17 2011 9 excellent
product-maker bugmenot1234 Jan 17 2011 9 excellent
product-maker ub1x Dec 24 2010 9 excellent
Be the first to comment
m00nraker
Dec 06 2013
Moppel
Feb 27 2013
peavey
Nov 23 2012
mononoke
Apr 23 2012
devport
Nov 01 2011
SirDodger
Feb 17 2011
ach
Jan 14 2011
RalphMW
Dec 27 2010
marcocingolani
Sep 19 2010
borisdigital
Apr 20 2010
gauda
Mar 18 2010
FloPe
Feb 17 2010
ub1x
Feb 14 2010
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.0.14
updated Mar 25 2015
added Feb 14 2010
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2
System Tags app software