please help me run makepkg -cmake mistakes
#1
I would like to install kodi 18 on manjaro linux.
Whan I run pkgbuild ,I get cmake error:


Determining if the pthread_create exist failed with the following output:
Change Dir: /home/zeev/Downloads/kodi-git/src/xbmc/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b92cb/fast"
/usr/bin/make -f CMakeFiles/cmTC_b92cb.dir/build.make CMakeFiles/cmTC_b92cb.dir/build
make[1]: Entering directory '/home/zeev/Downloads/kodi-git/src/xbmc/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b92cb.dir/CheckSymbolExists.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall    -o CMakeFiles/cmTC_b92cb.dir/CheckSymbolExists.c.o   -c /home/zeev/Downloads/kodi-git/src/xbmc/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_b92cb
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b92cb.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall   -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fuse-ld=gold  CMakeFiles/cmTC_b92cb.dir/CheckSymbolExists.c.o  -o cmTC_b92cb
CMakeFiles/cmTC_b92cb.dir/CheckSymbolExists.c.o:CheckSymbolExists.c:function main: error: undefined reference to 'pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_b92cb.dir/build.make:87: cmTC_b92cb] Error 1
make[1]: Leaving directory '/home/zeev/Downloads/kodi-git/src/xbmc/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_b92cb/fast] Error 2

File /home/zeev/Downloads/kodi-git/src/xbmc/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/zeev/Downloads/kodi-git/src/xbmc/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_27a80/fast"
/usr/bin/make -f CMakeFiles/cmTC_27a80.dir/build.make CMakeFiles/cmTC_27a80.dir/build
make[1]: Entering directory '/home/zeev/Downloads/kodi-git/src/xbmc/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_27a80.dir/CheckFunctionExists.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_27a80.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.11/Modules/CheckFunctionExists.c
Linking C executable cmTC_27a80
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_27a80.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fuse-ld=gold  CMakeFiles/cmTC_27a80.dir/CheckFunctionExists.c.o  -o cmTC_27a80 -lpthreads
/usr/bin/ld.gold: error: cannot find -lpthreads
CMakeFiles/cmTC_27a80.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_27a80.dir/build.make:87: cmTC_27a80] Error 1
make[1]: Leaving directory '/home/zeev/Downloads/kodi-git/src/xbmc/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_27a80/fast] Error 2

please help me!!, Thanks for the help in advance.
Reply
#2
We don't provide any PKGBUILD files for Kodi, so you have to ask the maintainer of that file.
If you want to build Kodi yourself, you can find the documentation at https://github.com/xbmc/xbmc/blob/master...E.Linux.md.
Reply
#3
"please help me run makepkg -cmake mistakes"

We can see you're capable of doing that by yourself just fine Smile
We also do not need your braille font-sized outcry for assistence.
Reply
#4
Use the PKGBUILD I maintain in the AUR... not sure about your Arch spinoff distro but it works well on Arch: https://aur.archlinux.org/packages/kodi-pre-release/
Need help programming a Streamzap remote?
Reply

Logout Mark Read Team Forum Stats Members Help
please help me run makepkg -cmake mistakes0