tomahawk-player / tomahawk

Tomahawk, the multi-source music player
http://tomahawk-player.org
GNU General Public License v3.0
2.95k stars 367 forks source link

Help with installing tomahawk on raspberry pi #586

Closed alonpeer closed 5 years ago

alonpeer commented 7 years ago

I'm using a Rpi 3 model B, with Jessie OS. I'm having a hard time understanding how to install it.

After running sudo cmake -DBUILD_WITH_QT4=ON .., I'm getting the following in the error log:

Performing C++ SOURCE FILE Test LIBCPP_FOUND failed with the following output:
Change Dir: /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_29c36/fast"
/usr/bin/make -f CMakeFiles/cmTC_29c36.dir/build.make CMakeFiles/cmTC_29c36.dir/build
make[1]: Entering directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_29c36.dir/src.cxx.o
/usr/bin/c++     -fvisibility=hidden -DLIBCPP_FOUND   -stdlib=libc++ -o CMakeFiles/cmTC_29c36.dir/src.cxx.o -c /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
CMakeFiles/cmTC_29c36.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_29c36.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_29c36.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_29c36/fast' failed
make: *** [cmTC_29c36/fast] Error 2

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPLEX_TAGLIB_FILENAME failed with the following output:
Change Dir: /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_ebc1d/fast"
/usr/bin/make -f CMakeFiles/cmTC_ebc1d.dir/build.make CMakeFiles/cmTC_ebc1d.dir/build
make[1]: Entering directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_ebc1d.dir/src.cxx.o
/usr/bin/c++    -I/usr/include/taglib  -fvisibility=hidden -std=c++11 -DCOMPLEX_TAGLIB_FILENAME -I/usr/include/taglib   -o CMakeFiles/cmTC_ebc1d.dir/src.cxx.o -c /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/src.cxx
/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/src.cxx: In function 'int main()':
/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/src.cxx:5:38: error: cannot convert 'const wchar_t*' to 'TagLib::FileName {aka const char*}' in initialization
   TagLib::FileName fileName2(L"wchar");
                                      ^
CMakeFiles/cmTC_ebc1d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_ebc1d.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_ebc1d.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_ebc1d/fast' failed
make: *** [cmTC_ebc1d/fast] Error 2

Source file was:
#include <tfile.h>
    int main()
    {
        TagLib::FileName fileName1("char");
        TagLib::FileName fileName2(L"wchar");
        return 0;
    }
Determining if the pthread_create exist failed with the following output:
Change Dir: /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_9348a/fast"
/usr/bin/make -f CMakeFiles/cmTC_9348a.dir/build.make CMakeFiles/cmTC_9348a.dir/build
make[1]: Entering directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9348a.dir/CheckSymbolExists.c.o
/usr/bin/cc   -I/usr/include/taglib  -fvisibility=hidden -I/usr/include/taglib   -o CMakeFiles/cmTC_9348a.dir/CheckSymbolExists.c.o   -c /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_9348a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9348a.dir/link.txt --verbose=1
/usr/bin/cc   -fvisibility=hidden -I/usr/include/taglib    CMakeFiles/cmTC_9348a.dir/CheckSymbolExists.c.o  -o cmTC_9348a -rdynamic -L/usr/lib/arm-linux-gnueabihf -ltag 
CMakeFiles/cmTC_9348a.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x38): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_9348a.dir/build.make:97: recipe for target 'cmTC_9348a' failed
make[1]: *** [cmTC_9348a] Error 1
make[1]: Leaving directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_9348a/fast' failed
make: *** [cmTC_9348a/fast] Error 2

File /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b4bcb/fast"
/usr/bin/make -f CMakeFiles/cmTC_b4bcb.dir/build.make CMakeFiles/cmTC_b4bcb.dir/build
make[1]: Entering directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b4bcb.dir/CheckFunctionExists.c.o
/usr/bin/cc    -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=pthread_create -I/usr/include/taglib   -o CMakeFiles/cmTC_b4bcb.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.6/Modules/CheckFunctionExists.c
Linking C executable cmTC_b4bcb
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b4bcb.dir/link.txt --verbose=1
/usr/bin/cc   -fvisibility=hidden -DCHECK_FUNCTION_EXISTS=pthread_create -I/usr/include/taglib    CMakeFiles/cmTC_b4bcb.dir/CheckFunctionExists.c.o  -o cmTC_b4bcb -rdynamic -lpthreads -L/usr/lib/arm-linux-gnueabihf -ltag 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_b4bcb.dir/build.make:97: recipe for target 'cmTC_b4bcb' failed
make[1]: *** [cmTC_b4bcb] Error 1
make[1]: Leaving directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_b4bcb/fast' failed
make: *** [cmTC_b4bcb/fast] Error 2

Performing C++ SOURCE FILE Test HAVE_VLC_ALBUMARTIST failed with the following output:
Change Dir: /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a83fa/fast"
/usr/bin/make -f CMakeFiles/cmTC_a83fa.dir/build.make CMakeFiles/cmTC_a83fa.dir/build
make[1]: Entering directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a83fa.dir/src.cxx.o
/usr/bin/c++    -I/usr/include/taglib  -fvisibility=hidden -std=c++11 -DHAVE_VLC_ALBUMARTIST -I/usr/include/taglib   -o CMakeFiles/cmTC_a83fa.dir/src.cxx.o -c /media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/src.cxx
/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/src.cxx: In function 'int main(int, char**)':
/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp/src.cxx:5:26: error: 'libvlc_meta_AlbumArtist' was not declared in this scope
     libvlc_meta_t meta = libvlc_meta_AlbumArtist;
                          ^
CMakeFiles/cmTC_a83fa.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a83fa.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_a83fa.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/Ext1/Downloads/tomahawk/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_a83fa/fast' failed
make: *** [cmTC_a83fa/fast] Error 2

Source file was:

#include <vlc/libvlc.h>
#include <vlc/libvlc_media.h>
int main(int argc, char *argv[]) {
    libvlc_meta_t meta = libvlc_meta_AlbumArtist;
}
muesli commented 7 years ago

Seems like a couple of issues you're running into. Missing pthreads, complex-filename check failing for taglib.

Probably not related, but FWIW I would recommend using Qt5 with latest Tomahawk from git.

Jiab77 commented 6 years ago

I made a gist on compiling Tomahawk on Ubuntu from git. I was able to compile and run it. https://gist.github.com/Jiab77/e8e2e98a427eee6760045b26c7161501

alonpeer commented 6 years ago

Thanks @Jiab77. I already gave up and am using other tools, but I'll give this a try!

Jiab77 commented 6 years ago

Thanks a lot @alonpeer