Makefile gobject内省而非构建

Makefile gobject内省而非构建,makefile,glib,gobject,pkg-config,gio,Makefile,Glib,Gobject,Pkg Config,Gio,我正试图从i686pclinuxgnu机器上为i686cmlinux编译gobject-introspection-1.31.0(GI)。请在config.log中找到相同的部分。在配置GI时,可以正确地找到glib、gio、gobject和python等库 This file contains any messages produced by compilers while running configure, to aid debugging if confi

我正试图从i686pclinuxgnu机器上为i686cmlinux编译gobject-introspection-1.31.0(GI)。请在config.log中找到相同的部分。在配置GI时,可以正确地找到glib、gio、gobject和python等库

            This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by gobject-introspection configure 1.31.0, which was
    generated by GNU Autoconf 2.68.  Invocation command line was

      $ ./configure --prefix=/home/vishaln/crossed PKG_CONFIG_PATH=/home/vishaln/crossed/lib/pkgconfig PKG_CONFIG_LIBDIR=/home/vishaln/crossed/lib/pkgconfig --host=i686-cm-linux --target=i686-cm-linux --disable-tests --disable-dependency-tracking --includedir=/home/vishaln/crossed/include --oldincludedir=/home/vishaln/crossed/include CC=/home/vishaln/IntelCE_Build/bin/toolchain/root/bin/i686-cm-linux-gcc CXX=/home/vishaln/IntelCE_Build/bin/toolchain/root/bin/i686-cm-linux-g++ CFLAGS=-I/home/vishaln/crossed/include -I/home/vishaln/crossed/include -I/home/vishaln/crossed/include/glib-2.0/gio -I/home/vishaln/crossed/include/glib-2.0/gobject -I/home/vishaln/crossed/include/glib-2.0/glib -I/home/vishaln/crossed/lib/glib-2.0/include LDFLAGS=-L/home/vishaln/crossed/lib LIBS=-lffi -lz  -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lfl

    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##

    configure:4751: checking for ld used by /home/vishaln/IntelCE_Build/bin/toolchain/root/bin/i686-cm-linux-gcc
    configure:4818: result: /home/vishaln/IntelCE_Build/bin/toolchain/root/i686-cm-linux/bin/ld
    configure:4825: checking if the linker (/home/vishaln/IntelCE_Build/bin/toolchain/root/i686-cm-linux/bin/ld) is GNU ld
    configure:4840: result: yes
    configure:4852: checking for BSD- or MS-compatible name lister (nm)
    configure:4901: result: /home/vishaln/IntelCE_Build/bin/toolchain/root/bin/i686-cm-linux-nm -B
    configure:11863: checking for pkg-config
    configure:11881: found /usr/bin/pkg-config
    configure:11893: result: /usr/bin/pkg-config
    configure:11918: checking pkg-config is at least version 0.9.0
    configure:11921: result: yes
    configure:12162: checking for dlopen in -ldl
    configure:12187: /home/vishaln/IntelCE_Build/bin/toolchain/root/bin/i686-cm-linux-gcc -o conftest -fno-strict-aliasing -Wsign-compare -Wcast-align -Wpointer-arith -Wnested-externs -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wall -I/home/vishaln/crossed/include -I/home/vishaln/crossed/include -I/home/vishaln/crossed/include/glib-2.0/gio -I/home/vishaln/crossed/include/glib-2.0/gobject -I/home/vishaln/crossed/include/glib-2.0/glib -I/home/vishaln/crossed/lib/glib-2.0/include  -L/home/vishaln/crossed/lib conftest.c -ldl  -lffi -lz  -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lfl >&5
    configure:12187: $? = 0
    configure:12196: result: yes
    configure:12432: checking for GLIB
    configure:12439: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.29.7"
    configure:12442: $? = 0
    configure:12455: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.29.7"
    configure:12458: $? = 0
    configure:12517: result: yes
    configure:12523: checking for GOBJECT
    configure:12530: $PKG_CONFIG --exists --print-errors "gobject-2.0"
    configure:12533: $? = 0
    configure:12546: $PKG_CONFIG --exists --print-errors "gobject-2.0"
    configure:12549: $? = 0
    configure:12608: result: yes
    configure:12614: checking for GIO
    configure:12621: $PKG_CONFIG --exists --print-errors "gio-2.0"
    configure:12624: $? = 0
    configure:12637: $PKG_CONFIG --exists --print-errors "gio-2.0"
    configure:12640: $? = 0
    configure:12699: result: yes
    configure:12705: checking for GIO_UNIX
    configure:12712: $PKG_CONFIG --exists --print-errors "gio-unix-2.0"
    configure:12715: $? = 0
    configure:12728: $PKG_CONFIG --exists --print-errors "gio-unix-2.0"
    configure:12731: $? = 0
    configure:12768: result: yes
    configure:13402: checking for GIREPO
    configure:13409: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0"
    configure:13412: $? = 0
    configure:13425: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0"
    configure:13428: $? = 0
    configure:13487: result: yes
    configure:14177: checking whether /home/vishaln/crossed/bin/python2.7 version >= 2.5
    configure:14188: /home/vishaln/crossed/bin/python2.7 -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)
    configure:14191: $? = 0
    configure:14193: result: yes
    configure:14284: checking for /home/vishaln/crossed/bin/python2.7 version
    configure:14291: result: 2.7
    configure:14303: checking for /home/vishaln/crossed/bin/python2.7 platform
    configure:14310: result: linux2
    configure:14317: checking for /home/vishaln/crossed/bin/python2.7 script directory
    configure:14346: result: ${prefix}/lib/python2.7/site-packages
    configure:14355: checking for /home/vishaln/crossed/bin/python2.7 extension module directory
    configure:14384: result: ${exec_prefix}/lib/python2.7/site-packages
    configure:14405: checking for headers required to compile python extensions
    configure:14422: /home/vishaln/IntelCE_Build/bin/toolchain/root/bin/i686-cm-linux-gcc -E  -I/home/vishaln/crossed/include/python2.7 conftest.c
    configure:14422: $? = 0
    configure:14423: result: found
    configure:14686: creating ./config.status
pkg配置路径为:
pkg\u config\u path=/home/vishaln/crossed/lib/pkgconfig

ls /home/vishaln/crossed/lib/pkgconfig/g*
gio-2.0.pc  gio-unix-2.0.pc  glib-2.0.pc  gmodule-2.0.pc  gmodule-export-2.0.pc  gmodule-no-export-2.0.pc gobject-2.0.pc  gthread-2.0.pc
  • 我试着重建油嘴滑舌的人
  • 我尝试了不同版本的GI
还没有什么成果

欢迎提出任何建议。

(在评论中回答。请参阅)

OP写道:

我找到了解决这个问题的方法<代码>打包配置路径在运行
make
时被修改。这是错误的,我不知道发生在哪里,如何发生。所以,我想在错误发生之前重新设置它。解决方法:-
Makefile
:在行
GLib-2.0.gir:g-ir-scanner g-ir-compiler$(EXEXT)
之前,添加
PKG\u CONFIG\u PATH=
这将暂时解决问题

@Dror Harari写道:


有一个类似的问题,并且在不编辑make文件的情况下通过以下方式解决了此问题:
sudo make install PKG_CONFIG_PATH=/usr/local/lib/pkgconfig-e

(在评论中回答。请参阅)

OP写道:

我找到了解决这个问题的方法<代码>打包配置路径在运行
make
时被修改。这是错误的,我不知道发生在哪里,如何发生。所以,我想在错误发生之前重新设置它。解决方法:-
Makefile
:在行
GLib-2.0.gir:g-ir-scanner g-ir-compiler$(EXEXT)
之前,添加
PKG\u CONFIG\u PATH=
这将暂时解决问题

@Dror Harari写道:


有一个类似的问题,并且在不编辑make文件的情况下通过以下方式解决了此问题:
sudo make install PKG_CONFIG_PATH=/usr/local/lib/pkgconfig-e


嗨,我找到了解决这个问题的方法。运行“make”时正在修改PKG_配置_路径。这是错误的,我不知道发生在哪里,如何发生。所以,我想在错误发生之前重新设置它。解决方法:-Makefile:在“GLib-2.0.gir:g-ir-scanner g-ir-compiler$(EXEXT)”行之前,添加“PKG_CONFIG_PATH=”这将暂时解决问题。遇到类似的问题,通过使用sudo make install PKG_CONFIG_PATH=/usr/local/lib/pkgconfig-eHi进行安装,在不编辑make文件的情况下解决了该问题,我找到了解决这个问题的方法。运行“make”时正在修改PKG_配置_路径。这是错误的,我不知道发生在哪里,如何发生。所以,我想在错误发生之前重新设置它。解决方法:-Makefile:在“GLib-2.0.gir:g-ir-scanner g-ir-compiler$(EXEXT)”行之前,添加“PKG_CONFIG_PATH=”这将暂时解决问题。遇到类似的问题,通过使用sudo make install PKG_CONFIG_PATH=/usr/local/lib/pkgconfig-e进行安装而不编辑make文件
ls /home/vishaln/crossed/lib/pkgconfig/g*
gio-2.0.pc  gio-unix-2.0.pc  glib-2.0.pc  gmodule-2.0.pc  gmodule-export-2.0.pc  gmodule-no-export-2.0.pc gobject-2.0.pc  gthread-2.0.pc