gnuwin32 libxml2安装:设置几个lib和include目录 [英] gnuwin32 libxml2 installation : setting several lib and include directories

查看:181
本文介绍了gnuwin32 libxml2安装:设置几个lib和include目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在使用mingw32在Windows 8上编译libxml2。

I am now compiling libxml2 on windows 8 using mingw32.

我从这里下载 ftp://xmlsoft.org/libxml2/ 并按照README文件中的说明进行操作。他们指示使用名为configure.js的javascript配置make。我们可以像这样运行脚本:

I have downloaded from here ftp://xmlsoft.org/libxml2/ and follow the instruction found in the README file. They instruct to configure make using a javascript called configure.js. We can run the script like this:

cscript configure.js compiler=msvc prefix=c:\opt include=c:\opt\include lib=c:\opt\lib debug=yes

我猜这个问题有一个超级简单且可能很明显的问题,但是如何设置多个lib并包含文件夹?我尝试用;分开:

I guess there is a super simple and maybe obvious to this question, but how do I set several lib and include folders ? I tried separating with ";" :

cscript configure.js compiler=mingw zlib=yes prefix=C:\cpp\libraries\libxml2 include=C:\cpp\libraries\iconv-1.9.2.win32\include;C:\cpp\libraries\zlib1.2.3\GnuWin32\include lib=C:\cpp\libraries\iconv-1.9.2.win32\lib;C:\cpp\libraries\zlib1.2.3\GnuWin32\lib

但是没有成功。在自述文件中没有找到任何相关内容...

but that did not work out. Did not find anything about that in the readme file ...

推荐答案

最后事情并不那么困难。
javascript脚本创建一个易于编辑的文件config.mingw,在这种情况下手动添加路径-I,在我的情况下:

finally things were not so difficult. the javascript script create a file config.mingw that is easy to edit, in this case manually adding the paths separately with -I, in my case:

INCLUDE+= -IC:\cpp\libraries\iconv\GnuWin32\include -IC:\cpp\libraries\zlib1.2.3\GnuWin32\include
LIB+= -LC:\cpp\libraries\iconv\GnuWin32\lib -LC:\cpp\libraries\zlib1.2.3\GnuWin32\lib

这篇关于gnuwin32 libxml2安装:设置几个lib和include目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆