如何构建这个项目?

发布于 2024-08-25 09:37:30 字数 821 浏览 5 评论 0原文

我长期以来一直是 Visual Studio 开发人员,只是想了解 linux/unix 世界中的情况。我在 source forge 中找到了一个开源项目(Gcomandos)并尝试构建它。当我下载源代码时,我得到这些文件:

16/02/2007  05:16 PM            25,987 aclocal.m4
16/02/2007  05:17 PM           127,445 configure
16/02/2007  05:16 PM             1,925 configure.ac
17/03/2010  03:48 PM    <DIR>          gComandos
16/02/2007  05:16 PM               332 gcomandos.pc.in
25/11/2006  10:03 PM             9,233 install-sh
16/02/2007  05:16 PM               353 Makefile.am
16/02/2007  05:17 PM            20,662 Makefile.in
16/02/2007  05:16 PM             1,019 Makefile.include
25/11/2006  10:03 PM            11,014 missing

我现在迷路了。我尝试制作 .am 或 .in 文件,但 GnuMake 说没有什么可制作的。我尝试运行 shell 脚本,但出现错误。任何指导表示赞赏。

I've been a visual studio developer for long and just trying to understand how things are in linux/unix worl. I found an open source project (Gcomandos) in source forge and tried to build it. when I download the source, I get these files:

16/02/2007  05:16 PM            25,987 aclocal.m4
16/02/2007  05:17 PM           127,445 configure
16/02/2007  05:16 PM             1,925 configure.ac
17/03/2010  03:48 PM    <DIR>          gComandos
16/02/2007  05:16 PM               332 gcomandos.pc.in
25/11/2006  10:03 PM             9,233 install-sh
16/02/2007  05:16 PM               353 Makefile.am
16/02/2007  05:17 PM            20,662 Makefile.in
16/02/2007  05:16 PM             1,019 Makefile.include
25/11/2006  10:03 PM            11,014 missing

I am now lost. I tried making the .am or the .in files, but GnuMake says there is nothing to make. I tried running the shell scripts, but I got errors. Any guidance appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

瀟灑尐姊 2024-09-01 09:37:30

通常它应该带有一个INSTALL文件来读取。既然没有,下面是基本例程:

./configure
make
sudo make install

请注意,configure 有许多可以使用的选项;通过 --help 来查看它们。

Normally it's supposed to come with an INSTALL file to read. Since it doesn't, here's the basic routine:

./configure
make
sudo make install

Note that configure has a number of options it can take; pass --help to see them.

指尖微凉心微凉 2024-09-01 09:37:30

如果您只想构建并安装它:

./configure
make
sudo make install

如果您对此项目进行一些更改并稍后重建它,请执行以下操作:

aclocal - adds aclocal.m4 to directory. Defines some m4 macros used by the auto tools.
'autoconf '- creates configure from configure.ac
'automake' - Creates Makefile.in from Makefile.am
'./configure' - creates Makefile from Makefile.in 
'make' 
sudo make install

If you simply want to build and install it:

./configure
make
sudo make install

If you make some changes to this project and rebuild it later do:

aclocal - adds aclocal.m4 to directory. Defines some m4 macros used by the auto tools.
'autoconf '- creates configure from configure.ac
'automake' - Creates Makefile.in from Makefile.am
'./configure' - creates Makefile from Makefile.in 
'make' 
sudo make install
海风掠过北极光 2024-09-01 09:37:30

在各种正确答案之上提出的一项建议是查看有哪些构建选项可用。我喜欢运行的第一个命令是:

./configure --help

这将列出各种构建选项。有些是标准的(例如 --prefix= 用于更改包的安装位置),另一些是特定于项目的(通常采用 --with-FOO 的形式来构建基于 FOO 包的额外功能)。

One recommendation to make on top of the various correct answers is to see what build options are available. The first command I like to run is:

./configure --help

This will list various build options. Some are standard (such as --prefix= for changing where the package is intalled) and others are project specific (often in the form --with-FOO to build with extra features based on the FOO package).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文