[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Compile with python on Windows
From: |
Nardy Pillards |
Subject: |
Re: [Bug-gnubg] Compile with python on Windows |
Date: |
Wed, 16 Jul 2003 14:10:39 +0200 |
From: "Holger" <address@hidden>
To: "Nardy Pillards" <address@hidden>; <address@hidden>
Sent: Tuesday, July 15, 2003 8:37 PM
> At 19:54 15.07.2003 +0200, Nardy Pillards wrote:
> >So I assume it will be OK to upload the nogui builds on my site with
Python
> >supported.
> >
> >If you tried the build I uploaded, then you must have noticed one can not
> >type "[" or "]" or even Alt + 999 in the Win32 nogui build. Thus some >>>
> >commands can not be used in these builds as they are now.
>
> No, I didn't try it. Usually, I just build my own and spare the download.
> Also, I haven't built the no-gui version yet. Could you send me your
> config.no-gui and Makefile?
>
> Regards,
>
> Holger
config:
------
/* remarks */
/* READLINE 1 inserted (needs package readline) */
/* VERSION "....." personal */
/* remarks */
/* #define SELECT 1 changed to #undef SELECT 030710 */
/* support for Python: USE_PYTHON 1 */
/* remarks */
/* Version number of package */
#define VERSION "0.14-devel 1.1170 030716"
#define USE_PYTHON 1
/* Name of package */
#define PACKAGE "gnubg"
/* Define to the address where bug reports for this package should be sent.
*/
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME ""
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
/* Installation directory (used to determine PKGDATADIR below). */
#define _DATADIR "./"
/* Define to 1 if you have the `dirname' function. */
#undef HAVE_DIRNAME
#undef HAVE_ESD
#undef HAVE_ARTSC
#undef HAVE_NAS
/* #undef ENABLE_NLS */
#undef HAVE_SYS_SOUNDCARD_H
#undef HAVE_SYS_AUDIOIO_H
/*********************************************************/
#define WIN32 1
/*********************************************************/
/* #undef HAVE_GETEGID #undef HAVE_GETEUID #undef HAVE_GETGID #undef
HAVE_GETLOGIN #undef HAVE_GETPWUID */
/* Define if using alloca.c. */
/* #undef C_ALLOCA */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
/* #undef CRAY_STACKSEG_END */
/* Define if you have alloca, as a function or macro. */
#define HAVE_ALLOCA 1
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
/* #undef HAVE_ALLOCA_H */
/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1
/* Define if you don't have vprintf but do have _doprnt. */
/* #undef HAVE_DOPRNT */
/* Define if you have a working `mmap' system call. */
/* #undef HAVE_MMAP */
/* Define if you have the vprintf function. */
#define HAVE_VPRINTF 1
/* Define as __inline if that's what the C compiler calls it. */
/* #undef inline */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
/* #undef STACK_DIRECTION */
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Define if the X Window System is missing or not being used. */
#define X_DISPLAY_MISSING 1
/* Define if you have the XCopyPlane function. */
/* #undef HAVE_XCOPYPLANE */
/* Define if you have the acosf function. */
#define HAVE_ACOSF 1
/* Define if you have the asinf function. */
#define HAVE_ASINF 1
/* Define if you have the atanf function. */
#define HAVE_ATANF 1
/* Define if you have the cosf function. */
#define HAVE_COSF 1
/* Define if you have the fork function. */
/* #undef HAVE_FORK 1 */
/* Define if you have the FreeType rendering library */
/* #undef HAVE_FREETYPE */
/* *** no-gui *** #define HAVE_FREETYPE 1 */
/* Define if you have the fstat function. */
#define HAVE_FSTAT 1
/* Define if you have the getdtablesize function. */
/* #define HAVE_GETDTABLESIZE 1 */
/* Define if you have the getlogin function. */
/* #undef HAVE_GETLOGIN 1 */
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define to 1 if you have the `getpid' function. */
#define HAVE_GETPID 1
/* Define if you have the getpwuid function. */
/* #undef HAVE_GETPWUID */
/* Define if you have the gettimeofday function. */
/* #undef HAVE_GETTIMEOFDAY 1 */
/* Define if you have the isatty function. */
#define HAVE_ISATTY 1
/* Define if you have the lrint function. */
#define HAVE_LRINT 1
/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
/* Define to 1 if you have the `memmove' function. */
#define HAVE_MEMMOVE 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
/* Define if you have the random function. */
/* #define HAVE_RANDOM 1 */
/* Define if you have the readv function. */
/* #define HAVE_READV 1 */
/* Define if you have the select function. */
#undef HAVE_SELECT
/* Define if you have the setvbuf function. */
#define HAVE_SETVBUF 1
/* Define if you have the sigaction function. */
/* #undef HAVE_SIGACTION 1 */
/* Define if you have the sigblock function. */
/* #undef HAVE_SIGBLOCK */
/* Define if you have the sigprocmask function. */
/* #define HAVE_SIGPROCMASK 1 */
/* Define if you have the sigvec function. */
/* #undef HAVE_SIGVEC */
/* Define if you have the sinf function. */
#define HAVE_SINF 1
/* Define if you have the tanf function. */
#define HAVE_TANF 1
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <gdk/gdkx.h> header file. */
/* #undef HAVE_GDK_GDKX_H */
/* Define if you have the gtkextra library (-lgtkextra). */
/* #define HAVE_LIBGTKEXTRA 1 */
/* Define if you have the <gtkextra/gtksheet.h> header file. */
/* #define HAVE_GTKEXTRA_GTKSHEET_H 1 */
/* does this gtk version have gtk_option_menu_get_history ? */
#define HAVE_GTK_OPTION_MENU_GET_HISTORY 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define if you have the <pwd.h> header file. */
/* #undef HAVE_PWD_H 1 */
/* Define if you have the <stropts.h> header file. */
/* #undef HAVE_STROPTS_H */
/* Define if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define if you have the <sys/ioctl.h> header file. */
/* #undef HAVE_SYS_IOCTL_H 1 */
/* Define if you have the <sys/mman.h> header file. */
/* #undef HAVE_SYS_MMAN_H 1 */
/* Define if you have the <sys/socket.h> header file. */
/* #undef HAVE_SYS_SOCKET_H 1 */
/* Define if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define if you have the <sys/uio.h> header file. */
/* #define HAVE_SYS_UIO_H 1 */
/* Define if you have the <sys/wait.h> header file. */
/* #undef HAVE_SYS_WAIT_H 1 */
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the dl library (-ldl). */
/* #undef HAVE_LIBDL */
/* Define if you have the iconv() function. */
#define HAVE_ICONV 1
/* Define if you have the gdbm library (-lgdbm). */
#define HAVE_LIBGDBM 1
/* Define if you have gdbm_errno or _imp_gdbm_errno in your gdbm */
/* #define HAVE_GDBM_ERRNO 1 */
/* Define if you can use _imp__gdbm_errno as a workaround. */
#define HAVE_IMP_GDBM_ERRNO 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define if you have the m library (-lm). */
#define HAVE_LIBM 1
/* Define to 1 if you have the `png' library (-lpng). */
#define HAVE_LIBPNG 1
/* Define to 1 if you have the art library (-lart). */
/* ***no-gui*** #define HAVE_LIBART 1 */
/* Define to 1 if you have the `readline' library (-lreadline). */
/* #define HAVE_LIBREADLINE 1 */
#define HAVE_LIBREADLINE 1
/* Define to 1 if you have the `rl_completion_matches' function. */
/* #define HAVE_RL_COMPLETION_MATCHES 1 */
/* Define to 1 if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strtoul' function. */
#define HAVE_STRTOUL 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define if you want to use libxml2 to parse XML. */
#define HAVE_LIBXML2 1
/* Define as const if the declaration of iconv() needs const. */
#define ICONV_CONST const
/* The directory where the weights and databases will be stored. */
#define PKGDATADIR _DATADIR "/" PACKAGE
/* Define if you have a bearoff database to link to GNU Backgammon */
/* #define USE_BUILTIN_BEAROFF 1 */
#undef USE_BUILTIN_BEAROFF
/* Define if you want to i18n support */
#define ENABLE_NLS 1
/* Define if you want to use sounds with GNU Backgammon */
#define USE_SOUND 1
/* Define if you want to use the Guile extensibility language. */
/* #define USE_GUILE 1 */
/* Define if you have a signbit() macro faster than a compare to 0.0. */
#define HAVE_SIGNBIT 1
/* Define if the system supports AC_LOCAL sockets. */
/* #undef HAVE_SOCKETS 1 */
/* Define if you want to use the ext toolkit and widgets. */
/* #undef USE_EXT */
/* Define if you want to use the GTK toolkit and widgets. */
/* *** no-gui *** #define USE_GTK 1 */
/* Define if you want to use GTK+ 2.0 or later. */
/* #undef USE_GTK2 */
/* Are we using either GUI (ext or GTK)? */
#if USE_EXT || USE_GTK
#define USE_GUI 1
#endif
/* Enable GNU extensions on systems that have them. */
#define _GNU_SOURCE 1
#ifndef FALSE
/* Define FALSE */
#define FALSE 0
/* Define TRUE */
#define TRUE 1
#endif
/*********************************************************/
/* Define the obvious signbit() if the C library doesn't. */
#if !HAVE_SIGNBIT
#define signbit(x) ( (x) < 0.0 )
#endif
/* Use the double versions of the math functions if the float ones aren't
available. */
#if !HAVE_ACOSF
#define acosf acos
#endif
#if !HAVE_ASINF
#define asinf asin
#endif
#if !HAVE_ATANF
#define atanf atan
#endif
#if !HAVE_COSF
#define cosf cos
#endif
#ifndef HAVE_LRINT
/* define lrint as macro if not available */
#define lrint(x) ((long) ((x)+0.5))
#endif
#if !HAVE_SINF
#define sinf sin
#endif
#if !HAVE_TANF
#define tanf tan
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
makefile:
--------
CC = gcc
CFLAGS = -Os
override CFLAGS += -mms-bitfields -Wall $(DEFS) $(INCLUDE)
DEFS = -DHAVE_CONFIG_H -DLOCALEDIR=\"/mingw/lib/locale\"
INCLUDE = -I. -I./lib \
-I/mingw/include/gtk \
-I/MinGW/lib/gtk+/include \
-I/MinGW/lib/glib-2.0/include \
-I/MinGW/include/glib-2.0 \
-I/mingw/include/libpng12 \
-I/MinGW/include/libxml2 \
-I/MinGW/include/python22 \
-I/MinGW/include/readline \
-I/MinGW/include/freetype2
CONFIG = config.h
LIBPATH = -L./lib
LDFLAGS =
LDFL_MW =
LIBS = $(LIBPATH) -levent -lxml2 -lintl.dll -lgdbm.dll \
-lglib-2.0.dll -lgdk.dll -lgtk.dll -liconv -lpng -lz \
-lreadline -lpython22 -lwinmm -lm
LIBSGNU = $(LDFLAGS) $(LDFL_MW) $(LIBPATH) $(LIBS)
LIBSMB = $(LDFLAGS) $(LIBPATH) $(LIBS)
TARGET = gnubg-nogui
SOURCE = analysis.c bearoff.c bearoffgammon.c boardpos.c copying.c credits.c
\
database.c dice.c drawboard.c erf.c eval.c export.c external.c \
getopt.c getopt1.c gnubg.c gnubgmodule.c guile.c \
html.c htmlimages.c i18n.c import.c kleinman.c latex.c matchequity.c \
matchid.c onechequer.c osr.c path.c play.c positionid.c postscript.c \
progress.c pub_eval.c record.c render.c renderprefs.c rollout.c \
set.c sgf.c sgfl.c sgfp.c show.c sound.c speed.c text.c
OBJS = analysis.o bearoff.o bearoffgammon.o boardpos.o copying.o credits.o
\
database.o dice.o drawboard.o erf.o eval.o export.o external.o \
getopt.o getopt1.o gnubg.o gnubgmodule.o guile.o \
html.o htmlimages.o i18n.o import.o kleinman.o latex.o matchequity.o \
matchid.o onechequer.o osr.o path.o play.o positionid.o postscript.o \
progress.o pub_eval.o record.o render.o renderprefs.o rollout.o \
set.o sgf.o sgfl.o sgfp.o show.o sound.o speed.o text.o gnubg_nogui.res
LIBEVENT = lib/libevent.a
$(TARGET): $(LIBEVENT) $(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LIBSGNU)
sgf.c: $(SRC)
true
$(OBJS): $(SOURCE) $(CONFIG)
$(LIBEVENT): $(CONFIG)
$(MAKE) -C lib
$(CONFIG):
copy config.no_gui $(CONFIG)
clean:
del *.o $(CONFIG)
$(MAKE) clean -C lib
Nardy