我是Mac的新手并尝试在OS X 10.8上构建pkg-config-0.28。我能够使用:
成功配置./configure CC="gcc -arch i386 -arch x86_64" CXX="g++ -arch i386 -arch x86_64" CPP="gcc -E" CXXCPP="g++ -E" --with-internal-glib
在收到错误消息后,我尝试了“--with-internal-glib”。
但是现在我输入时出现以下错误:
$ make -j8
错误讯息:
> CC gvarianttype.lo
CC gversion.lo
CC gwakeup.lo
CC gprintf.lo
CC glib-unix.lo
CC gthread-posix.lo
CC giounix.lo
gutils.c: In function 'find_folder':
gutils.c:1423: warning: 'FSFindFolder' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h:290)
CC gspawn.lo
echo > glib-public-headers.txt.tmp && mv glib-public-headers.txt.tmp glib-public-headers.txt
lipo: can't figure out the architecture type of: /var/folders/wn/zc31626x5mz7w57dq6cf8f7w0000gn/T//cczwFoWN.out
make[6]: *** [gvariant.lo] Error
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
在此之前,我从.pkg文件安装了pkg-config-0.26,但问题是,它显示安装成功,但是当我在终端输入“pkg-config”时,它说找不到命令。出于这个原因,我想到了从最新版本开始构建。
我真的需要这个来构建/编译opencv项目。现在我如何让pkg-config工作?请帮忙。