使用mingw“help”配置源代码的问题 [英] Problem with configuring the source code with mingw "help"

查看:90
本文介绍了使用mingw“help”配置源代码的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿我需要一些关于这个问题的建议。

我最近一直试图在这里建立这个源代码https://www.libsdl.org/projects/doom/1

我正在用sdl构建原始端口,而不是linuxdoom端口所以我有一些问题



我试过的第一个...



我已经安装了Mingw



我已经安装了SDL v1.0.1



我已将环境变量设置为SDL-Config文件的路径



确保我已安装make也基本上我有一切



但是当我加载windows命令提示符时,我找到了源目录



所以例如cd C:\ Users \ john \Desktop \ sdl doom源代码



然后我使用ls命令查看该目录中的文件



然后我使用sh configure开始配置源代码



但是我找到了sdl-config,但找不到sdl 1.0.1但是我要给你关于config-log的信息,看看我的问题和mingw命令行信息到另外我也很困惑,因为我知道我需要添加到sdl / sdl.h的include目录的路径,但是我无法弄明白它的其他东西请帮我解决这个问题我一直坚持这个问题现在5个小时它有点bull *但是很好......



这是我的命令行信息



Hey need some advice here on this issue I’m having.
I have recently been trying to build this source code here https://www.libsdl.org/projects/doom/1
I am building the original port with sdl infused with it not the linuxdoom port so i’m having some issues

What I have tried first…

Ive installed Mingw

Ive installed SDL v1.0.1

Ive set the enviroment varibles to the path of the SDL-Config file

And made sure I had make installed also basically I have everything

But when I load up the windows command prompt I locate the source directory

so for example cd C:\Users\john\Desktop\sdl doom source code

Then I use the command ls to see my files in that directory

Then I use the sh configure to start the configuring of the source code

But I get the sdl-config found but the sdl 1.0.1 is not found but I’m going to give you the info on the config-log to see my issue and the mingw command line info to see also i’m confused because I know that I need to add the path to the include directory of the sdl/sdl.h but I cant figure it out mabe its something else please help me out on this I have been stuck on this issue for 5 hours now its kinda bullsh*t but ow well…

Here is my command line info

loading cache ./config.cache
checking for a BSD compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking whether make sets ${MAKE}… yes
checking for working aclocal… found
checking for working autoconf… found
checking for working automake… found
checking for working autoheader… found
checking for working makeinfo… found
checking whether make sets ${MAKE}… (cached) yes
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
checking for a BSD compatible install… /usr/bin/install -c
checking for sdl-config… /c/Program Files (x86)/SDL_MINGW32/SDL-1.0.1/bin/sdl-config
checking for SDL - version >= 1.0.1… configure: line 1181: /c/Program: No such file or directory
configure: line 1182: /c/Program: No such file or directory
configure: line 1185: /c/Program: No such file or directory
configure: line 1187: /c/Program: No such file or directory
configure: line 1189: /c/Program: No such file or directory
no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /c/Program Files (x86)/SDL_MINGW32/SDL-1.0.1/bin/sdl-config
configure: error: *** SDL version 1.0.1 not found!





这是我生成的配置日志文件,它可以提供更多信息问题是什么...





Here is my config-log file that it generates to give more info on what the issue is…

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:563: checking for a BSD compatible install
configure:616: checking whether build environment is sane
configure:673: checking whether make sets ${MAKE}
configure:719: checking for working aclocal
configure:732: checking for working autoconf
configure:745: checking for working automake
configure:758: checking for working autoheader
configure:771: checking for working makeinfo
configure:787: checking whether make sets ${MAKE}
configure:816: checking for gcc
configure:929: checking whether the C compiler (gcc ) works
configure:945: gcc -o conftest conftest.c 1>&5
configure:942:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main(){return(0);}
^
configure:971: checking whether the C compiler (gcc ) is a cross-compiler
configure:976: checking whether we are using GNU C
configure:985: gcc -E conftest.c
configure:1004: checking whether gcc accepts -g
configure:1047: checking for a BSD compatible install
configure:1142: checking for sdl-config
configure:1177: checking for SDL - version >= 1.0.1
configure:1259: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1206:21: fatal error: SDL/SDL.h: No such file or directory
compilation terminated.
configure: failed program was:
#line 1201 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <SDL/SDL.h>

char*
my_strdup (char *str)
{
char *new_str;

if (str)
{
new_str = malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;

return new_str;
}

int main ()
{
int major, minor, micro;
char *tmp_version;

system ("touch conf.sdltest");

/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("1.0.1");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "1.0.1");
exit(1);
}

if (( > major) ||
(( == major) && ( > minor)) ||
(( == major) && ( == minor) && ( >= micro)))
{
return 0;
}
else
{
printf("\n*** ‘sdl-config --version’ returned %d.%d.%d, but the minimum version\n", , , );
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}

configure:1303: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1296:21: fatal error: SDL/SDL.h: No such file or directory
compilation terminated.
configure: failed program was:
#line 1293 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <SDL/SDL.h>

int main() {
return 0;
; return 0; }

So Whats the Issue that I am missing here thanks in advance… hope you guys can help me out on this one…





我尝试了什么:



我曾经尝试过,没有运气,所以任何帮助都会很好......



What I have tried:

I had tried and no luck so any help would be nice....

推荐答案

{MAKE} ...是
检查工作的aclocal ...发现
检查工作autoconf ...发现
检查工作的automake ...找到
检查工作autoheader ...发现
检查工作makeinfo ...找到
检查是否make sets
{MAKE}… yes checking for working aclocal… found checking for working autoconf… found checking for working automake… found checking for working autoheader… found checking for working makeinfo… found checking whether make sets


{MAKE} ...(缓存)yes
检查gcc ... gcc
检查C编译器(gcc)是否正常工作...是
检查C编译器(gcc)是否是交叉编译器...没有
检查我们是否是使用GNU C ...是
检查gcc是否接受-g ...是
检查BSD兼容安装... / usr / bin / install -c
检查sdl-config ... / c / Program文件(x86)/ SDL_MIN GW32 / SDL-1.0.1 / bin / sdl-config
检查SDL - 版本> = 1.0.1 ... configure:line 1181:/ c / Program:没有这样的文件或目录
configure:第1182行:/ c /程序:没有这样的文件或目录
configure:第1185行:/ c /程序:没有这样的文件或目录
configure:第1187行:/ c / Program:没有这样的文件或目录
configure:第1189行:/ c / Program:没有这样的文件或目录
没有
***无法运行SDL测试程序,检查原因...
***测试程序无法编译或链接。请参阅文件config.log以了解发生的
***确切错误。这通常意味着SDL未正确安装
***或者您已经安装了SDL。在后一种情况下,你
***可能想要编辑sdl-config脚本:/ c / Program Files(x86)/SDL_MINGW32/SDL-1.0.1/bin/sdl-config
configure :错误:***找不到SDL版本1.0.1!
{MAKE}… (cached) yes checking for gcc… gcc checking whether the C compiler (gcc ) works… yes checking whether the C compiler (gcc ) is a cross-compiler… no checking whether we are using GNU C… yes checking whether gcc accepts -g… yes checking for a BSD compatible install… /usr/bin/install -c checking for sdl-config… /c/Program Files (x86)/SDL_MINGW32/SDL-1.0.1/bin/sdl-config checking for SDL - version >= 1.0.1… configure: line 1181: /c/Program: No such file or directory configure: line 1182: /c/Program: No such file or directory configure: line 1185: /c/Program: No such file or directory configure: line 1187: /c/Program: No such file or directory configure: line 1189: /c/Program: No such file or directory no *** Could not run SDL test program, checking why… *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means SDL was incorrectly installed *** or that you have moved SDL since it was installed. In the latter case, you *** may want to edit the sdl-config script: /c/Program Files (x86)/SDL_MINGW32/SDL-1.0.1/bin/sdl-config configure: error: *** SDL version 1.0.1 not found!





这是我生成的配置日志文件,它可以提供更多信息问题是什么...





Here is my config-log file that it generates to give more info on what the issue is…

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:563: checking for a BSD compatible install
configure:616: checking whether build environment is sane
configure:673: checking whether make sets


{MAKE}
configure:719:check for working aclocal
configure:732:check for working autoconf
configure:745:check for working automake
configure: 758:检查工作autoheader
configure:771:检查工作makeinfo
configure:787:检查make sets是否
{MAKE} configure:719: checking for working aclocal configure:732: checking for working autoconf configure:745: checking for working automake configure:758: checking for working autoheader configure:771: checking for working makeinfo configure:787: checking whether make sets


这篇关于使用mingw“help”配置源代码的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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