Project

General

Profile

Building D-LAN

Added by Manuel F over 12 years ago

Hey, I've just forked the code on github, to try to understand what's going on in this cool applications, but I've been having some build issues I am trying to fix.

I am using Ubuntu (lastest) to build it. After I forked it, I followed the instructions here: http://dev.d-lan.net/projects/pmp/wiki/Howtos_-_Hack_on_Linux

So after I fixed some bugs in the build process (I'll later submit the pull request) it stops here

g++ -c -pipe -O2 -fPIC -Wall -Wno-parentheses -D_REENTRANT -DQT_WEBKIT -DNETWORKLISTENER_LIBRARY -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../../application/Core/NetworkListener -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I../../../application/Core/NetworkListener -I../../../application -I.tmp/release -I. -o .tmp/release/UDPListener.o ../../../application/Core/NetworkListener/priv/UDPListener.cpp
../../../application/Core/NetworkListener/priv/UDPListener.cpp: In member function ‘void NL::UDPListener::initMulticastUDPSocket()’:
../../../application/Core/NetworkListener/priv/UDPListener.cpp:344:42: error: ‘MulticastLoopbackOption’ is not a member of ‘QAbstractSocket’
../../../application/Core/NetworkListener/priv/UDPListener.cpp:346:42: error: ‘MulticastTtlOption’ is not a member of ‘QAbstractSocket’
../../../application/Core/NetworkListener/priv/UDPListener.cpp:348:31: error: ‘class QUdpSocket’ has no member named ‘joinMulticastGroup’

I finally tracked it down to the QT version. The ver downloaded in the repositories is QT 4.7 (the last one before current 4.8), and it doesn't have any of these enumerations in the SocketOption:http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/qabstractsocket.html#SocketOption-enum . You were using the latest, QT 4.8.

I am now trying to get those as I write, I'll report as soon as I have news.

Great project by the way!


Replies (1)

RE: Building D-LAN - Added by Greg Burri over 12 years ago

Hi,
Yes, the last version needs Qt 4.8. I didn't develop the linux part myself, Herve did it: https://github.com/hmartinet/Aybabtu/commits/herve.martinet. But he has sadly stopped hacking on D-LAN a while ago.

There is an open 'feature' task for the linux support here: http://dev.d-lan.net/issues/157. For the moment the file watcher is working but not stable enough and there is no packaging (dep/rpm/..).

I'm trying to finish the 1.1 version for an upcoming LAN party near where I live. Maybe after that I will work a bit on the Linux and MacOSx versions.

Thanks for your interest.

    (1-1/1)