Hi, so I've been testing this out. I'll attach the error log in this email.
A fix is going into CMakeLists.txt and commenting the line that says
"add_subdirectory( tests )" and then it builds without an error.
Performing C++ SOURCE FILE Test COMPLEX_TAGLIB_FILENAME failed with the following output:
Change Dir: /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_46425/fast"
/usr/bin/make -f CMakeFiles/cmTC_46425.dir/build.make CMakeFiles/cmTC_46425.dir/build
make[1]: Entering directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_46425.dir/src.cxx.o
/usr/bin/c++ -I/usr/include/taglib -DCOMPLEX_TAGLIB_FILENAME -I/usr/include/taglib -o CMakeFiles/cmTC_46425.dir/src.cxx.o -c /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/src.cxx
/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/home/emily/Downloads/amarok-2.8.90/amarok-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_46425.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_46425.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_46425.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_46425/fast' failed
make: *** [cmTC_46425/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 Q_WS_WIN exist failed with the following output:
Change Dir: /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_75fc0/fast"
/usr/bin/make -f CMakeFiles/cmTC_75fc0.dir/build.make CMakeFiles/cmTC_75fc0.dir/build
make[1]: Entering directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_75fc0.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -I/usr/include/taglib -I/usr/include/qt4 -fmessage-length=0 -Wl,--as-needed -I/usr/include/taglib -o CMakeFiles/cmTC_75fc0.dir/CheckSymbolExists.cxx.o -c /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_WIN’ was not declared in this scope
return ((int*)(&Q_WS_WIN))[argc];
^
CMakeFiles/cmTC_75fc0.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_75fc0.dir/CheckSymbolExists.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_75fc0.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_75fc0/fast' failed
make: *** [cmTC_75fc0/fast] Error 2
File /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef Q_WS_WIN
return ((int*)(&Q_WS_WIN))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_364d2/fast"
/usr/bin/make -f CMakeFiles/cmTC_364d2.dir/build.make CMakeFiles/cmTC_364d2.dir/build
make[1]: Entering directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_364d2.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -I/usr/include/taglib -I/usr/include/qt4 -fmessage-length=0 -Wl,--as-needed -I/usr/include/taglib -o CMakeFiles/cmTC_364d2.dir/CheckSymbolExists.cxx.o -c /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_QWS’ was not declared in this scope
return ((int*)(&Q_WS_QWS))[argc];
^
CMakeFiles/cmTC_364d2.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_364d2.dir/CheckSymbolExists.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_364d2.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_364d2/fast' failed
make: *** [cmTC_364d2/fast] Error 2
File /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef Q_WS_QWS
return ((int*)(&Q_WS_QWS))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the Q_WS_MAC exist failed with the following output:
Change Dir: /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_0cab3/fast"
/usr/bin/make -f CMakeFiles/cmTC_0cab3.dir/build.make CMakeFiles/cmTC_0cab3.dir/build
make[1]: Entering directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0cab3.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -I/usr/include/taglib -I/usr/include/qt4 -fmessage-length=0 -Wl,--as-needed -I/usr/include/taglib -o CMakeFiles/cmTC_0cab3.dir/CheckSymbolExists.cxx.o -c /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_MAC’ was not declared in this scope
return ((int*)(&Q_WS_MAC))[argc];
^
CMakeFiles/cmTC_0cab3.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_0cab3.dir/CheckSymbolExists.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_0cab3.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_0cab3/fast' failed
make: *** [cmTC_0cab3/fast] Error 2
File /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef Q_WS_MAC
return ((int*)(&Q_WS_MAC))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_aa067/fast"
/usr/bin/make -f CMakeFiles/cmTC_aa067.dir/build.make CMakeFiles/cmTC_aa067.dir/build
make[1]: Entering directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_aa067.dir/CheckSymbolExists.c.o
/usr/bin/cc -I/usr/include/taglib -fmessage-length=0 -I/usr/include/taglib -o CMakeFiles/cmTC_aa067.dir/CheckSymbolExists.c.o -c /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_aa067
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_aa067.dir/link.txt --verbose=1
/usr/bin/cc -fmessage-length=0 -I/usr/include/taglib CMakeFiles/cmTC_aa067.dir/CheckSymbolExists.c.o -o cmTC_aa067 -rdynamic -L/usr/lib/x86_64-linux-gnu -ltag
CMakeFiles/cmTC_aa067.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_aa067.dir/build.make:97: recipe for target 'cmTC_aa067' failed
make[1]: *** [cmTC_aa067] Error 1
make[1]: Leaving directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_aa067/fast' failed
make: *** [cmTC_aa067/fast] Error 2
File /home/emily/Downloads/amarok-2.8.90/amarok-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: /home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_471df/fast"
/usr/bin/make -f CMakeFiles/cmTC_471df.dir/build.make CMakeFiles/cmTC_471df.dir/build
make[1]: Entering directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_471df.dir/CheckFunctionExists.c.o
/usr/bin/cc -fmessage-length=0 -DCHECK_FUNCTION_EXISTS=pthread_create -I/usr/include/taglib -o CMakeFiles/cmTC_471df.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_471df
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_471df.dir/link.txt --verbose=1
/usr/bin/cc -fmessage-length=0 -DCHECK_FUNCTION_EXISTS=pthread_create -I/usr/include/taglib CMakeFiles/cmTC_471df.dir/CheckFunctionExists.c.o -o cmTC_471df -rdynamic -lpthreads -L/usr/lib/x86_64-linux-gnu -ltag
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_471df.dir/build.make:97: recipe for target 'cmTC_471df' failed
make[1]: *** [cmTC_471df] Error 1
make[1]: Leaving directory '/home/emily/Downloads/amarok-2.8.90/amarok-build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_471df/fast' failed
make: *** [cmTC_471df/fast] Error 2