glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] can't compile alpha22-rc with mingw, error in AIEcho.c


From: NanoTech
Subject: Re: [glob2-devel] can't compile alpha22-rc with mingw, error in AIEcho.cpp
Date: Sat, 7 Apr 2007 16:55:10 -0600

Hi, I'm trying to compile Glob2 Alpha 22 on Windows with Gcc 4.1 in MinGW, but while compiling, I get the following error:

-----------------------------------------------------------------------------------------------

*** Could not run the 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 may have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /mingw/bin/sdl-config
configure: error *** SDL version 1.2.0 not found!
make: *** [ config.status] Error 1

-----------------------------------------------------------------------------------------------

Here's the relevent section (I think) of config.log:

-----------------------------------------------------------------------------------------------

configure:5497: checking for sdl-config
configure:5515: found /mingw/bin/sdl-config
configure:5528: result: /mingw/bin/sdl-config
configure:5536: checking for SDL - version >= 1.2.0
configure:5628: gcc -o conftest.exe -g -O2 -I/include/SDL -Dmain=SDL_main   conftest.c -lspeex -lz  -L/lib -lmingw32 -lSDLmain -lSDL -mwindows >&5
gcc.exe: _spawnvp: No such file or directory
configure:5631: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "Globulation 2"
| #define PACKAGE_TARNAME "glob2"
| #define PACKAGE_VERSION "0.8.22"
| #define PACKAGE_STRING "Globulation 2 0.8.22"
| #define PACKAGE_BUGREPORT "address@hidden"
| #define PACKAGE "glob2"
| #define VERSION "0.8.22"
| #ifdef __cplusplus
| extern "C" void std::exit (int); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_ALLOCA 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_LIBZ 1
| #define SPEEX_DIR
| #define HAVE_LIBSPEEX 1
| /* end confdefs.h.  */
|
| #include <stdio.h>
| #include <stdlib.h>
| #include <string.h >
| #include "SDL.h"
|
| char*
| my_strdup (char *str)
| {
|   char *new_str;
|
|   if (str)
|     {
|       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
|       strcpy (new_str, str);
|     }
|   else
|     new_str = NULL;
|
|   return new_str;
| }
|
| int main (int argc, char *argv[])
| {
|   int major, minor, micro;
|   char *tmp_version;
|
|   /* This hangs on some systems (?)
|   system ("touch conf.sdltest");
|   */
|   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
|
|   /* HP/UX 9 (address@hidden) writes to sscanf strings */
|   tmp_version = my_strdup(" 1.2.0");
|   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
|      printf("%s, bad version string\n", "1.2.0");
|      exit(1);
|    }
|
|    if ((1 > major) ||
|       ((1 == major) && (2 > minor)) ||
|       ((1 == major) && (2 == minor) && (9 >= micro)))
|     {
|       return 0;
|     }
|   else
|     {
|       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", 1, 2, 9);
|       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:5658: result: no
configure:5697: gcc -o conftest.exe -g -O2 -I/include/SDL -Dmain=SDL_main   conftest.c -lspeex -lz  -L/lib -lmingw32 -lSDLmain -lSDL -mwindows >&5
gcc.exe: _spawnvp: No such file or directory
configure:5703: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "Globulation 2"
| #define PACKAGE_TARNAME "glob2"
| #define PACKAGE_VERSION "0.8.22"
| #define PACKAGE_STRING "Globulation 2 0.8.22"
| #define PACKAGE_BUGREPORT " address@hidden"
| #define PACKAGE "glob2"
| #define VERSION "0.8.22"
| #ifdef __cplusplus
| extern "C" void std::exit (int); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_ALLOCA 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_LIBZ 1
| #define SPEEX_DIR
| #define HAVE_LIBSPEEX 1
| /* end confdefs.h.  */
|
| #include <stdio.h>
| #include "SDL.h"
|
| int main(int argc, char *argv[])
| { return 0; }
| #undef  main
| #define main K_and_R_C_main
|
| int
| main ()
| {
|  return 0;
|   ;
|   return 0;
| }
configure:5746: error: *** SDL version 1.2.0 not found!

-----------------------------------------------------------------------------------------------

Thanks!

On 4/5/07, Bradley Arsenault <address@hidden> wrote:
On 4/5/07, Martin Hinrichs <address@hidden> wrote:
> 2007/4/5, Bradley Arsenault <address@hidden>:
> > I need to get your g++ version, as the code compiles for us.
>
> $ g++ --version
> g++.exe (GCC) 3.3.1 (mingw special 20030804-1)
>
> Quote from http://globulation2.org/wiki/Mingw_compilation :
> "Note: Globulation 2 does not compile with mingw gcc versions 3.2.3,
> 2.95.3-8 and 3.4.2. But don't worry, gcc version 3.3.1 works and is
> included in glob2_required_libs_mingw.tar.bz2."
>
> Is the information in the wiki wrong?
>
> Martin Hinrichs

Quite possible that it is, the code compiles on Gcc 4.0 series (which
is what I use) without complaint.

There is no leading error which makes this one in particular quite
peculiar. I don't have access to the code right now but when I do,
probably tommorrow, I will definitly take a look. It looks like a
scoping problem, scoping rules have changed since old GCC to new GCC.

--
Really. I'm not lieing. Bradley Arsenault.


_______________________________________________
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel



--
NanoTech :: http://www.nanotechcorp.net/
----
THIS IS NOT AN AUTOMATED MESSAGE, PLEASE REPLY
reply via email to

[Prev in Thread] Current Thread [Next in Thread]