如何使用MinGW运行./configure? [英] How Do I Run ./configure with MinGW?

查看:1766
本文介绍了如何使用MinGW运行./configure?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看此网页

http://mathieu.carbou.free.fr/wiki/index.php?title = Glib_for_Win32

它告诉我我需要运行以下命令.

And it tells me I need to run the following commands.

./configure
make
make install

该如何实际执行以及在哪里可以找到这些文件.我的C盘中安装了MinGW和Mysys.

How do I actually do this and where can I find these files. I have MinGW and Mysys installed in my C drive.

推荐答案

在Windows上,如果安装了MinGW,则有两种方法可以实现此目的,对于MinGW的某些MinGW安装,还必须安装msys已经预装了msys,请转到您的MinGW文件夹,查看其中是否有msys文件夹.

On Windows there is 2 ways to achieve this if you have MinGW installed you also have to install msys for MinGW some MinGW installations already come pre-installed with msys to check go to your MinGW folder and see if you have a msys folder inside there.

第二,确保将Windows环境变量内的路径设置为MinGWmsys

Second make sure the path inside the Environment Variables of your windows is setup to MinGW and msys like so


C:\MinGW\bin;C:\MinGW\msys\1.0\bin


在您的系统上可能看起来有所不同,具体取决于安装位置.


may look different on your system depending where you installed it.

现在,您只需单击msys\1.0文件夹中的msys.bat,这将打开一个外壳,您可以在其中使用lsdir导航,但是您将无法离开msys文件夹.不管什么.

Now you can simply click on msys.bat inside msys\1.0 folder which will open up a shell where you can navigate with ls and dir but you won't be able to leave the msys folder no matter what.

但是现在您可以在Command Prompt内部运行诸如sh之类的命令,这就是您所需要的.

But now you have the ability to run commands like sh inside your Command Prompt which is all you need.

单击Windows的开始"按钮->运行-> cmd.exe

Click on your Windows Start button -> Run -> cmd.exe


现在在命令提示符中仅运行sh命令,它应显示为sh-3.1$

now in Command Prompt just run sh command and it should show up as sh-3.1$


现在您可以导航到您的项目文件夹并运行命令


now you can navigate to your project folder and run the command

./configure
make
make install

这应该完全建立您的任何项目.

and that should completely build any of your pojects.

这篇关于如何使用MinGW运行./configure?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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