Cannot build telldus-gui on Arch Linux

Moderator: Telldus

Post Reply
Hund
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Cannot build telldus-gui on Arch Linux

Post by Hund »

[ Fjuppen ~/telldus-gui-2.1.1]$ make
[ 1%] Building CXX object TelldusCenter/CMakeFiles/TelldusCenter.dir/__/3rdparty/qtsingleapplication/src/qtlocalpeer.o
/home/johan/telldus-gui-2.1.1/3rdparty/qtsingleapplication/src/qtlocalpeer.cpp: In constructor ‘QtLocalPeer::QtLocalPeer(QObject*, const QString&)’:
/home/johan/telldus-gui-2.1.1/3rdparty/qtsingleapplication/src/qtlocalpeer.cpp:103:54: error: ‘::getuid’ has not been declared
/home/johan/telldus-gui-2.1.1/3rdparty/qtsingleapplication/src/qtlocalpeer.cpp:103:54: note: suggested alternative:
In file included from /home/johan/telldus-gui-2.1.1/3rdparty/qtsingleapplication/src/qtlockedfile_unix.cpp:49:0,
from /home/johan/telldus-gui-2.1.1/3rdparty/qtsingleapplication/src/qtlocalpeer.cpp:67:
/usr/include/unistd.h:697:16: note: ‘QtLP_Private::getuid’
make[2]: *** [TelldusCenter/CMakeFiles/TelldusCenter.dir/__/3rdparty/qtsingleapplication/src/qtlocalpeer.o] Error 1
make[1]: *** [TelldusCenter/CMakeFiles/TelldusCenter.dir/all] Error 2
make: *** [all] Error 2
What to do?
snis
Posts: 7
Joined: Fri Mar 17, 2023 9:45 am

Re: Cannot build telldus-gui on Arch Linux

Post by snis »

Add the following line to /home/johan/telldus-gui-2.1.1/3rdparty/qtsingleapplication/src/qtlocalpeer.cpp

Code: Select all

#include <unistd.h>
After line

Code: Select all

#include <time.h>
That should help.

You can look at this thread for help: http://www.telldus.com/forum/viewtopic.php?f=15&t=2505
Post Reply