如何构建此源代码? [英] How do I build this source code?

查看:89
本文介绍了如何构建此源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要什么才能构建此代码以及如何执行此操作...感谢您的帮助

以下代码的链接

https:// www.libsdl.org/projects/doom/



我想建立原始端口而不是该网站上的lxdoom端口



我尝试了什么:



我试过只编译它没有运气

What do I need to build this code and how do I do it... thanks for any help
The link to the code below
https://www.libsdl.org/projects/doom/

I want to build the original port not the lxdoom port on that site

What I have tried:

I have tried only compiling it no luck

推荐答案

在构建Linux应用程序时(或在Windows上使用例如 MinGW )时,必须使用常规步骤。



第一步是解压源:

You have to use the general steps when building a Linux application (or when using for example MinGW on Windows).

The first step is unpacking the source:
tar -xzvvf sdldoom-1.10.tar.gz

然后看一下解压缩文件,如果有某种带有构建指令的 README 文件。如果没有,请查找常见的构建文件。



如果有 autogen.sh 文件,请执行

Then have a look at the unpacked files if there is some kind of README file with build instructions. If not, look for common build files.

If there is an autogen.sh file, execute that

./autogen.sh



否则,如果有 configure.sh 文件:


Otherwise, if there is a configure.sh file:

./configure.sh



当构建过程需要某些内容时,两个脚本都将创建一些构建文件和打印消息不见了。如果是这样,你必须做消息告诉你的事情,比如安装所需的库和构建工具,然后再执行脚本。



无论如何(即使有)不属于上述情况),应该有某种 Makefile 。这用于控制构建可执行文件的最终


Both scripts will create some build files and print messages when something required for the build process is missing. If so, you have to do what the messages tell you like installing required libraries and build tools, and execute the script again afterwards.

In any case (even if there is none of the above), there should be some kind of Makefile. That is used to control the final

make





最后你可以用

that will build the executable.

Finally you can install (as root) with

make install

安装(以root用户身份)或者只是启动可执行文件。

or just start the executable.


这篇关于如何构建此源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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