timmerk / nfc-tools

Automatically exported from code.google.com/p/nfc-tools
0 stars 0 forks source link

DeskNFC compile error #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Build:

svn checkout http://nfc-tools.googlecode.com/svn/trunk/desknfc desknfc
cd desknfc
mkdir -p build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config 
--prefix` && make

gives me this error:

kapcom01@ProBook:~/temp/desknfc/build$ cmake .. 
-DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` && make
-- Found Qt-Version 4.8.4 (using /usr/bin/qmake)
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found KDE 4.10 include dir: /usr/include
-- Found KDE 4.10 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kapcom01/temp/desknfc/build
[  0%] Built target plasma_applet_desknfc_automoc
[  5%] Building CXX object CMakeFiles/plasma_applet_desknfc.dir/Content.o
/home/kapcom01/temp/desknfc/Content.cpp: In member function ‘QString 
Content::makeFile(QByteArray, QString)’:
/home/kapcom01/temp/desknfc/Content.cpp:103:56: σφάλμα: ‘getlogin’ 
was not declared in this scope
make[2]: *** [CMakeFiles/plasma_applet_desknfc.dir/Content.o] Error 1
make[1]: *** [CMakeFiles/plasma_applet_desknfc.dir/all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by mano...@kapcom.gr on 24 May 2013 at 2:47

GoogleCodeExporter commented 9 years ago
the complete log

Original comment by mano...@kapcom.gr on 24 May 2013 at 2:51

Attachments:

GoogleCodeExporter commented 9 years ago
I replaced getlogin() on lines 103 and 104 of Content.cpp with getenv("USER")
and it built successfully.

i haven't tested it though, because i'm not in KDE.

Original comment by mano...@kapcom.gr on 24 May 2013 at 4:05

GoogleCodeExporter commented 9 years ago
DeskNFC need a bit of work to do its job properly but this project is not 
maintained.

BTW, if any user want to... feel free to contact me.

Original comment by romu...@libnfc.org on 13 Jun 2013 at 3:13