Thanks, Vlad, that's getting me closer!

Clementine doesn't have a source package available on kubuntu, so apt-get
build-dep clementine didn't work for me. (using Kubuntu 20.04)

I'm attempting the builds over and over and looking at errors and trying to
figure out what I need to install.
My most recent error looks like this and has me stumped...

Run Build Command(s):/usr/bin/make cmTC_cd645/fast && /usr/bin/make -f
CMakeFiles/cmTC_cd645.dir/build.make CMakeFiles/cmTC_cd645.dir/build
make[1]: Entering directory
'/home/ezust/workspace/Clementine/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_cd645.dir/src.c.o
/usr/bin/cc   -DCMAKE_HAVE_LIBC_PTHREAD   -o
CMakeFiles/cmTC_cd645.dir/src.c.o   -c
/home/ezust/workspace/Clementine/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_cd645
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cd645.dir/link.txt
--verbose=1
/usr/bin/cc  -DCMAKE_HAVE_LIBC_PTHREAD    -rdynamic
CMakeFiles/cmTC_cd645.dir/src.c.o  -o cmTC_cd645
/usr/bin/ld: CMakeFiles/cmTC_cd645.dir/src.c.o: in function `main':
src.c:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_cd645.dir/build.make:87: cmTC_cd645] Error 1
make[1]: Leaving directory
'/home/ezust/workspace/Clementine/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_cd645/fast] Error 2

What is the correct library I am supposed to install from kubuntu to get
the right pthreads stuff?


On Sat, Aug 1, 2020 at 3:01 AM Vlad Zahorodnii <vlad.zahorod...@kde.org>
wrote:

> Howdy,
>
> On 8/1/20 12:32 PM, Alan Ezust wrote:
> > But I am not sure exactly what to do to the cmakelists.txt of Clementine
> > in order to "bring in" this framework into Clementine.
> >
> > I know I need to put a find_package(KF5GlobalAccel) somewhere in it, but
> > what else do I need to do to start using this library ?
>
> That's right, you need to find KF5GlobalAccel first
>
>     find_package(KF5GlobalAccel CONFIG)
>
> and then link your program against KF5::GlobalAccel
>
>     target_link_libraries(target_name KF5::GlobalAccel)
>
> Cheers,
> Vlad
>

Reply via email to