您尚未登录。

#1 2020-03-22 00:15:55

beginner
会员
注册时间: 2019-10-07
帖子: 256

[已解决]在polybar文件夹中执行build.sh找不到fixed和unifont

polybar从https://github.com/polybar克隆的.
以下是详细信息:
CMake Error at lib/CMakeLists.txt:27 (add_subdirectory):
  The source directory

    /home/beginner/polybar/lib/xpp

  does not contain a CMakeLists.txt file.


-- Font not found: fixed:pixelsize=10
-- Font not found: unifont:fontformat=truetype
-- Found font: siji:pixelsize=10
-- Configuring incomplete, errors occurred!
See also "/home/beginner/polybar/build/CMakeFiles/CMakeOutput.log".
See also "/home/beginner/polybar/build/CMakeFiles/CMakeError.log".
** Failed to generate build... read output to get a hint of what went wrong

fixed:指什么?
unifont:指什么?
需要下载什么?如果需要选择,就默认...

最近编辑记录 beginner (2020-03-23 11:08:39)

离线

#2 2020-03-22 17:02:35

beginner
会员
注册时间: 2019-10-07
帖子: 256

Re: [已解决]在polybar文件夹中执行build.sh找不到fixed和unifont

CMakeOutput.log太长,不知道怎么贴出来.
以下是~/polybar/build/CMakeFilesCMakeError.log:
Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/beginner/polybar/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_97ffc/fast && /usr/bin/make -f CMakeFiles/cmTC_97ffc.dir/build.make CMakeFiles/cmTC_97ffc.dir/build
make[1]: Entering directory '/home/beginner/polybar/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_97ffc.dir/src.cxx.o
/usr/bin/g++    -Wall -Wextra -Wpedantic -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_97ffc.dir/src.cxx.o -c /home/beginner/polybar/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_97ffc
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_97ffc.dir/link.txt --verbose=1
/usr/bin/g++   -Wall -Wextra -Wpedantic -DCMAKE_HAVE_LIBC_PTHREAD    -rdynamic CMakeFiles/cmTC_97ffc.dir/src.cxx.o  -o cmTC_97ffc
/usr/bin/ld: CMakeFiles/cmTC_97ffc.dir/src.cxx.o: in function `main':
src.cxx:(.text+0x3e): undefined reference to `pthread_create'
/usr/bin/ld: src.cxx:(.text+0x4a): undefined reference to `pthread_detach'
/usr/bin/ld: src.cxx:(.text+0x5b): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_97ffc.dir/build.make:87: cmTC_97ffc] Error 1
make[1]: Leaving directory '/home/beginner/polybar/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_97ffc/fast] Error 2


Source file was:
#include <pthread.h>

void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

离线

#3 2020-03-22 21:06:22

roxsky
会员
注册时间: 2020-02-24
帖子: 6

Re: [已解决]在polybar文件夹中执行build.sh找不到fixed和unifont

为什么要自己编译polybar?仓库里有编译好的二进制包直接装就可以了阿。

离线

#4 2020-03-23 11:09:23

beginner
会员
注册时间: 2019-10-07
帖子: 256

Re: [已解决]在polybar文件夹中执行build.sh找不到fixed和unifont

roxsky 说:

为什么要自己编译polybar?仓库里有编译好的二进制包直接装就可以了阿。

多谢提醒

离线

页脚