darkfeline / cantata

Automatically exported from code.google.com/p/cantata
GNU General Public License v3.0
0 stars 0 forks source link

KDE: avahi is not included in build #504

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A recent change to the logic in (topmost) CMakeLists.txt prevents the avahi lib 
from being included in KDE builds (ENABLE_KDE=ON and ENABLE_REMOTE_DEVICES=ON). 
This causes a linker error:

Linking CXX executable cantata
CMakeFiles/cantata.dir/devices/remotefsdevice.o: In function 
`RemoteFsDevice::load()':
remotefsdevice.cpp:(.text+0x2f84): undefined reference to `Avahi::self()'
remotefsdevice.cpp:(.text+0x2fdd): undefined reference to `Avahi::self()'
remotefsdevice.cpp:(.text+0x2ffa): undefined reference to `Avahi::self()'
remotefsdevice.cpp:(.text+0x3039): undefined reference to `Avahi::self()'
remotefsdevice.cpp:(.text+0x3048): undefined reference to 
`Avahi::getService(QString const&)'
CMakeFiles/cantata.dir/devices/remotefsdevice.o: In function 
`RemoteFsDevice::mount()':
remotefsdevice.cpp:(.text+0x65cc): undefined reference to `Avahi::self()'
remotefsdevice.cpp:(.text+0x65dc): undefined reference to 
`Avahi::getService(QString const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/cantata.dir/build.make:5372: recipe for target 'cantata' failed
make[2]: *** [cantata] Error 1
CMakeFiles/Makefile2:66: recipe for target 'CMakeFiles/cantata.dir/all' failed
make[1]: *** [CMakeFiles/cantata.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2

Original issue reported on code.google.com by michael....@gmail.com on 15 Jul 2014 at 1:33

GoogleCodeExporter commented 9 years ago
Fixed in trunk now. Didn't realise anyone actually used the remote device 
support :-)

Original comment by craig.p....@gmail.com on 15 Jul 2014 at 7:26

GoogleCodeExporter commented 9 years ago
Thanks!

I'm running SSHDroid on my phone anyway. It's auto-started in my WLAN and uses 
public key auth. That way I can directly access the phone from the file manager 
(dolphin) Cantata can use it, too. No hassle with cables and strange protocols 
like MTP.

Original comment by michael....@gmail.com on 15 Jul 2014 at 8:08