|
我的pkg-config配置如下- export PKG_CONFIG_PATH32="/usr/lib/pkgconfig:/usr/X11R7/lib/pkgconfig"
- export PKG_CONFIG_PATHN32="/usr/lib32/pkgconfig"
- export PKG_CONFIG_PATH64="/usr/lib64/pkgconfig:/usr/X11R7/lib64/pkgconfig"
复制代码
我在编译xorg时出错了,提示说没有找到"xcb-proto"需要配置pkg-config,但是xcb-proto.pc文件我已经安装了- root20:02:27:/home/xorg73/old/libxcb-1.0# ls /usr/X11R7/lib/pkgconfig/xcb-proto.pc
- /usr/X11R7/lib/pkgconfig/xcb-proto.pc
复制代码
下面是编译时出错的信息- checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
- checking for g++ option to produce PIC... -fPIC
- checking if g++ PIC flag -fPIC works... yes
- checking if g++ static flag -static works... yes
- checking if g++ supports -c -o file.o... yes
- checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
- checking dynamic linker characteristics... GNU/Linux ld.so
- checking how to hardcode library paths into programs... immediate
- appending configuration tag "F77" to libtool
- checking for gcc... (cached) gcc
- checking whether we are using the GNU C compiler... (cached) yes
- checking whether gcc accepts -g... (cached) yes
- checking for gcc option to accept ISO C89... (cached) none needed
- checking dependency style of gcc... (cached) gcc3
- checking for xsltproc... /usr/bin/xsltproc
- checking for XCBPROTO... configure: error: Package requirements (xcb-proto >= 1.0) were not met:
- No package 'xcb-proto' found
- Consider adjusting the PKG_CONFIG_PATH environment variable if you
- installed software in a non-standard prefix.
- Alternatively, you may set the environment variables XCBPROTO_CFLAGS
- and XCBPROTO_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
复制代码
而且我运行pkg-config --list-all时什么显示都没有,是不是我配置有问题? |
|