This forum has been archived. All content is frozen. Please use KDE Discuss instead.

problem building latest amarok on ubuntu artful

Tags: None
(comma "," separated)
Fran??ois Valenduc
Registered Member
Posts
8
Karma
0
Building the latest git version of amarok on ubuntu artful failed since some times with problems related to pthread and taglib:

Performing C++ SOURCE FILE Test COMPLEX_TAGLIB_FILENAME failed with the following output:
Change Dir: /usr/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a71af/fast"
/usr/bin/make -f CMakeFiles/cmTC_a71af.dir/build.make CMakeFiles/cmTC_a71af.dir/build
make[1] : on entre dans le répertoire « /export/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp »
Building CXX object CMakeFiles/cmTC_a71af.dir/src.cxx.o
/usr/lib/ccache/c++ -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/taglib -std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -DCOMPLEX_TAGLIB_FILENAME -I/usr/include/taglib -o CMakeFiles/cmTC_a71af.dir/src.cxx.o -c /usr/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp/src.cxx
/usr/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp/src.cxx: In function ‘int main()’:
/usr/src/amarok/build-ubuntu/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");
^
/usr/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp/src.cxx:4:20: warning: unused variable ‘fileName1’ [-Wunused-variable]
TagLib::FileName fileName1("char");
^~~~~~~~~
/usr/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp/src.cxx:5:20: warning: unused variable ‘fileName2’ [-Wunused-variable]
TagLib::FileName fileName2(L"wchar");
^~~~~~~~~
CMakeFiles/cmTC_a71af.dir/build.make:65 : la recette pour la cible « CMakeFiles/cmTC_a71af.dir/src.cxx.o » a échouée
make[1]: *** [CMakeFiles/cmTC_a71af.dir/src.cxx.o] Erreur 1
make[1] : on quitte le répertoire « /export/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp »
Makefile:126 : la recette pour la cible « cmTC_a71af/fast » a échouée
make: *** [cmTC_a71af/fast] Erreur 2


And for pthread:

Determining if the pthread_create exist failed with the following output:
Change Dir: /usr/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_88eb9/fast"
/usr/bin/make -f CMakeFiles/cmTC_88eb9.dir/build.make CMakeFiles/cmTC_88eb9.dir/build
make[1] : on entre dans le répertoire « /export/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_88eb9.dir/CheckSymbolExists.c.o
/usr/lib/ccache/cc -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/taglib -std=iso9899:1990 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -fmessage-length=0 -I/usr/include/taglib -o CMakeFiles/cmTC_88eb9.dir/CheckSymbolExists.c.o -c /usr/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_88eb9
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_88eb9.dir/link.txt --verbose=1
/usr/lib/ccache/cc -std=iso9899:1990 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -fmessage-length=0 -I/usr/include/taglib -rdynamic CMakeFiles/cmTC_88eb9.dir/CheckSymbolExists.c.o -o cmTC_88eb9 -L/usr/lib/x86_64-linux-gnu -ltag
CMakeFiles/cmTC_88eb9.dir/CheckSymbolExists.c.o : Dans la fonction « main » :
CheckSymbolExists.c:(.text+0x1b) : référence indéfinie vers « pthread_create »
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_88eb9.dir/build.make:97 : la recette pour la cible « cmTC_88eb9 » a échouée
make[1]: *** [cmTC_88eb9] Erreur 1
make[1] : on quitte le répertoire « /export/src/amarok/build-ubuntu/CMakeFiles/CMakeTmp »
Makefile:126 : la recette pour la cible « cmTC_88eb9/fast » a échouée
make: *** [cmTC_88eb9/fast] Erreur 2


Can somebody explains what is happening ?
Thanks for your help.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
That's strange, I'm also on (K)Ubuntu Artful and it builds fine here.


--
Mark Kretschmann - Amarok Developer
Fran??ois Valenduc
Registered Member
Posts
8
Karma
0
Can you need give the list of dev packages which are needed ?
Fran??ois Valenduc
Registered Member
Posts
8
Karma
0
Nobody can indicate which development packages need to be installed under ubuntu artful ? The git tree is updated more or less each day, but for me, it always fails in the same way.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
you need all the -dev files for the dependencies listed in the README file. If this doesn't help, maybe give a tad more details of the command you use to build Amarok.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
Fran??ois Valenduc
Registered Member
Posts
8
Karma
0
The readme file still refers to kde 4 and qt 4. It wouldn't be bad to update it a bit. Concerning the build command I use, I make a build directory and in that directory, I run cmake. ./
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Then you should ask your question in the amarok-dev channel on IRC, ideally during CET day hours.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
heirecka
KDE Developer
Posts
6
Karma
0
OS
I tried to update the README yesterday morning, hopefully I didn't miss anything. Alternatively you can also look at the CMakeLists.txt (look at the find_package() calls).

Could you please export LANG=en_US.utf8 (or something like that, depending on which locales are installed, C might work as well) in your shell to get English error messages. More of cmake's output would be helpful, too.
Fran??ois Valenduc
Registered Member
Posts
8
Karma
0
Here is the fuild cmake output:
https://drive.google.com/open?id=1A48BFcN6eu-8FWARRkbxzgU99jZSzz6w

Here are the errors:
https://drive.google.com/open?id=10mdRlUbiC-GuAxGGlRa5fmY7dd4HoNOQ

It seems there is a problem with libtag, but almost all libtags package are installed. Here is the output of dpkg-query --list | grep libtag:
ii libtag-extras-dev 1.0.1-3.1 amd64 TagLib extras library - development files
ii libtag-extras1 1.0.1-3.1 amd64 TagLib extras library - support for more file formats
ii libtag1-dev:amd64 1.11.1+dfsg.1-0.2 amd64 audio meta-data library - development files
rc libtag1-vanilla:amd64 1.9.1-2 amd64 audio meta-data library - vanilla flavour
ii libtag1v5:amd64 1.11.1+dfsg.1-0.2 amd64 audio meta-data library
ii libtag1v5-vanilla:amd64 1.11.1+dfsg.1-0.2 amd64 audio meta-data library - vanilla flavour
ii libtagc0:amd64 1.11.1+dfsg.1-0.2 amd64 audio meta-data library - C bindings
ii libtagc0-dev:amd64 1.11.1+dfsg.1-0.2 amd64 audio meta-data library - development files for C bindings
ii libtaglibs-standard-impl-java 1.2.5-2 all Apache JSP Standard Taglib Implementation
ii libtaglibs-standard-spec-java 1.2.5-2 all Apache JSP Standard Taglib Specification API

So I don't understand why it complains about it.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]