bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Mac OSX builds wanted! (long)


From: Michael Petch
Subject: Re: [Bug-gnubg] Mac OSX builds wanted! (long)
Date: Sat, 10 Dec 2005 14:05:39 -0700
User-agent: Microsoft-Entourage/11.2.1.051004

Howdy,

In a follow up my previous email, I simply pulled the CVS source from the
repository (Dec/10th). Copied in the gnubg.weights, and the bearooff
databases into the directory.

I did:

./autogen.sh
./configure --with-board3d --with-timecontrol --with-gdbm --with-gtk2
--with-gtkextra --enable-bearoff=external
make

Problems I saw, when configure ran it complained about ARTSC (Non fatal).
Probably best to disable ARTSC and ESD sound in OS/X builds.

When I ran make the first time it complained about a problem in dice.c . It
seems that LIBGMP is found during the configure but it dislikes it during
the build. As a temporary work around to see how the build proceeded I
changed the line in config.h that had this:

#define HAVE_LIBGMP 1

to:

// #define HAVE_LIBGMP 1

This was a quick hack (Finding real reason for this issue I leave as an
exercise to the reader)

I ran make again, and there was a linker issue. This is because OS/X
configure process has to now be modified to supply the following options
(under 10.4.x) to COMMON_LIBS line in the Makefile:

-framework glut -framework AppKit

My resulting COMMON_LIBS line looked like this:

COMMON_LIBS =  -Llib -levent  /sw/lib/libintl.dylib /sw/lib/libiconv.dylib
-L/sw/lib -lxml2 -lpthread -lz -liconv -lm   \
              -L/usr/X11R6/lib -lfreetype  -ldl
/sw/lib/python2.4/config/libpython2.4.a -L/sw/lib -lglib-2.0 -lintl -liconv
-framework glut -framework AppKit


Again this is a hack. Such entries need to be added when an OS/X/Tiger build
is being generated by the ./configure process.

After this change I reran Make, and gnubg built fine. Loaded up X windows
ran gnubg and it loaded up fine. The problem with Settings/Apperance (when
3d is selected produced a coredump). The Fonts on the cube look fine now
(This is because of the changes made this summer).

Hope this helps.

Mike

On 11/29/05 3:46 PM, "Richard Buckle" <address@hidden> wrote:

> Hi all,
> 
> Øystein Johansen wrote:
> 
>> Several people are asking me (as webmaster of gnubg.org) if there is any
>> Mac OSX builds available as the ones at Oliviers site is a dead link.
>> 
>> I'm asking kindly if anyone of the Mac OSX experts, who make their own
>> build, could be kind enough to make a Mac OSX precompiled package
>> available somewhere for download. If there's any problems, I willing to
>> help as far as I can. Any volunteers?
> 
> By coincidence I just recently contacted Matthias
> Neeracher, maintainer of the fink package for
> gnubg (fink <http://fink.sourceforge.net/> is a
> Debian-like package manager for Mac OS X),
> offering to help bring that package from 0.13.0
> to 0.14.3, with a view to also:
> 
> (a) arriving at a 100% self-contained package
> that therefore avoids the conflicts with fink
> that Olivier's distribution has, and
> 
> (b) ultimately providing a build for Mac OS X on
> x86 (I'm on the Apple Developer program and as
> such have the luxury of an official Apple Intel
> dev box sitting right here on my left).
> 
> 
> I had no trouble at all using Matthias' fink info
> file for gnubg 0.13.0 on Mac OS 10.4.2, and it
> built perfectly. I made a few tweaks and append
> it as "Appendix A" below: the format is
> documented at 
> <http://fink.sourceforge.net/doc/packaging/index.php?phpLang=en>.
> 
> When I came to revise the fink info file for
> gnubg 0.14.3, I ran into a whole load of new
> dependencies, some of which I couldn't identify:
> gory details below. What would /really/ help me
> right now would be:
> 
> (a) an exhaustive listing of *all* dependencies
> in gnubg 0.14.3, preferably distinguishing
> between compile-time and run-time dependencies;
> 
> (b) primary URLs for *all* packages depended upon;
> 
> (c) sample package info files for gnubg 0.14.3
> and *all* packages depended upon (don't care if
> it's Debian, Red Hat, whatever, but Debian is
> easiest).
> 
> 
> And now for the gory details:
> 
> 
> After some manual investigation, I identified the
> fink packages gtk+2, libxml2 and audiofile,
> giving the info file in "Appendix B" below. This
> narrowed it down a lot, but I still have some
> unresolved dependencies:
> 
> --------------------------------------
> address@hidden ~/Desktop/gnubg/0.14-holding/gnubg-0.14.3]
> % ./configure -q --prefix=/sw  CC=gcc-3.3 CXX=g++-3.3
> look for glib 1
> *** The gtkextra-config script installed by GTK_EXTRA could not be found
> *** If GTK_EXTRA was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the GTK_EXTRA_CONFIG environment variable to the
> *** full path to gtkextra-config.
> *** The libart-config script installed by LIBART could not be found
> *** If LIBART was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the LIBART_CONFIG environment variable to the
> *** full path to libart-config.
> *** The esd-config script installed by ESD could not be found
> *** If ESD was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the ESD_CONFIG environment variable to the
> *** full path to esd-config.
> *** The artsc-config script installed by ArtsC could not be found
> *** If ArtsC was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the ARTSC_CONFIG environment variable to the
> *** full path to artsc-config.
> config.status: creating po/POTFILES
> config.status: creating po/Makefile
> --------------------------------------
> 
> So I added --without-gtkextra
> --disable-artsc-test --disable-esdtest but got
> the same output. Is this anything to worry about?
> 
> I see that fink has a libart2 package but not
> libart. I tried installing the fink libart2
> package, but it didn't help.
> 
> If nevertheless I go ahead and do a make, I get a
> problem with widget3d.c (full output upon
> request):
> 
> --------------------------------------
> address@hidden
> ~/Desktop/gnubg/0.14-holding/gnubg-0.14.3]
> % make
> make  all-recursive
> Making all in intl
> make[2]: Nothing to be done for `all'.
> Making all in lib
> [***snipped lots of OK stuff...***]
> source='widget3d.c' object='widget3d.o' libtool=no \
> depfile='.deps/widget3d.Po' tmpdepfile='.deps/widget3d.TPo' \
> depmode=gcc3 /bin/sh ../depcomp \
> gcc-3.3 -DHAVE_CONFIG_H -I. -I. -I..
> -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2
> -I/sw/lib/glib/include -I/usr/X11R6/include
> -I./../lib  -I/sw/include/libxml2 -I/sw/include
> -I./../intl -DLOCALEDIR=\"\"
> -I/opt/local/include/freetype2
> -I/opt/local/include    -I/sw/include  -g -O2 -c
> `test -f 'widget3d.c' || echo './'`widget3d.c
> widget3d.c:40:29: gtkgl/gtkglarea.h: No such file or directory
> widget3d.c: In function `CreateGLWidget':
> widget3d.c:224: error: `GDK_GL_RGBA' undeclared (first use in this function)
> widget3d.c:224: error: (Each undeclared identifier is reported only once
> widget3d.c:224: error: for each function it appears in.)
> widget3d.c:224: error: `GDK_GL_DOUBLEBUFFER'
> undeclared (first use in this function)
> widget3d.c:224: error: `GDK_GL_DEPTH_SIZE'
> undeclared (first use in this function)
> widget3d.c:224: error: `GDK_GL_STENCIL_SIZE'
> undeclared (first use in this function)
> widget3d.c:224: error: `GDK_GL_NONE' undeclared (first use in this function)
> widget3d.c:224: warning: assignment makes pointer from integer without a cast
> widget3d.c: At top level:
> widget3d.c:392: error: parse error before '*' token
> widget3d.c:392: warning: data definition has no type or storage class
> widget3d.c: In function `SetupVisual':
> widget3d.c:462: error: `GDK_GL_RGBA' undeclared (first use in this function)
> widget3d.c:463: error: `GDK_GL_DEPTH_SIZE'
> undeclared (first use in this function)
> widget3d.c:464: error: `GDK_GL_STENCIL_SIZE'
> undeclared (first use in this function)
> widget3d.c:465: error: `GDK_GL_NONE' undeclared (first use in this function)
> widget3d.c:469: warning: assignment makes pointer from integer without a cast
> widget3d.c: In function `RenderBoard3d':
> widget3d.c:490: error: `GdkGLPixmap' undeclared (first use in this function)
> widget3d.c:490: error: `glpixmap' undeclared (first use in this function)
> widget3d.c:492: warning: assignment makes pointer from integer without a cast
> make[2]: *** [widget3d.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> --------------------------------------
> 
> Congratulations if you've made it this far! I
> hope this is enough info for you all to go on.
> 
> In summary, I have unresolved dependencies on
> GTK_EXTRA, LIBART, ESD and ArtsC, none of which
> are currently provided by fink as far as I can
> see, and a missing gtkgl/gtkglarea.h which is
> throwing widget3d.c for a loop. Any help
> gratefully received.
> 
> Richard.
> 
> 
> Appendix A:
> My 0.13.0 fink info file (fully working):
> ----- cut here -----------------------
> Package: gnubg
> Version: 0.13.0
> Revision: 12
> Depends: glib-shlibs, gdbm-shlibs, readline-shlibs (>= 4.3-15), gtk+
> BuildDepends: glib, gdbm, readline (>= 4.3-15),
> gettext-dev, gettext-bin, gettext-tools, gcc3.3
> Conflicts: gnubg-bearoff
> Replaces: gnubg-bearoff
> Source: ftp://alpha.gnu.org/gnu/%n/%n-%v.tar.gz
> Source-MD5: 91db5727b6589dbfd410e6ce1683fa95
> Source2: ftp://alpha.gnu.org/gnu/%n/%n.weights-0.13a.gz
> Source2-MD5: 5ea773401747c895149027bbfcfdc3d7
> Source3: ftp://alpha.gnu.org/gnu/%n/%n_ts0.bd.gz
> Source3-MD5: 01bd14c184bd701ae484618eb8acec6e
> PatchScript: <<
> gunzip ../%n.weights-0.13a.gz
> mv ../%n.weights-0.13a gnubg.weights
> gunzip ../gnubg_ts0.bd.gz
> mv ../gnubg_ts0.bd .
> <<
> ConfigureParams: --mandir='$(prefix)/share/man'
> --infodir='$(prefix)/share/info'
> SetCPPFLAGS: -no-cpp-precomp
> SetLDFLAGS: -lncurses -L%p/sw -lmx -L/usr/X11R6/lib -lX11
> CompileScript: <<
>   export CC=gcc-3.3; export CXX=g++-3.3; ./configure %c
>   make CC=gcc-3.3 CXX=g++-3.3
> <<
> DocFiles: README NEWS TODO COPYING AUTHORS
> InfoDocs: gnubg.info
> Description: GNU Backgammon
> DescDetail: <<
> GNU Backgammon is a very strong (well, at least it beat me soundly)
> backgammon program that can play on the console or through GTK.
> <<
> License: GPL
> Maintainer: Matthias Neeracher <address@hidden>
> Homepage: http://gnubg.sourceforge.net
> --------------------------------------
> 
> 
> Appendix B:
> My 0.14.3 fink info file (work in progress):
> ----- cut here -----------------------
> Package: gnubg
> Version: 0.14.3
> Revision: 1
> Depends: glib-shlibs, gdbm-shlibs,
> readline-shlibs (>= 4.3-15), gtk+-data,
> gtk+-shlibs, gtk+2-shlibs, libxml2-shlibs,
> audiofile-shlibs
> BuildDepends: glib, gdbm, readline (>= 4.3-15),
> gettext-dev, gettext-bin, gettext-tools, gcc3.3,
> gtk+, gtk+2, libxml2, audiofile
> Conflicts: gnubg-bearoff
> Replaces: gnubg-bearoff
> Source: ftp://alpha.gnu.org/gnu/%n/%n-%v.tar.gz
> Source-MD5: b3ab1ace76fa4bea69db8e617ab587da
> Source2: ftp://alpha.gnu.org/gnu/%n/%n.weights-0.14.gz
> Source2-MD5: 9f1154a9b327954a260726aa6aa6eea5
> Source3: ftp://alpha.gnu.org/gnu/%n/%n_ts0.bd.gz
> Source3-MD5: 01bd14c184bd701ae484618eb8acec6e
> PatchScript: <<
> gunzip ../%n.weights-0.14.gz
> mv ../%n.weights-0.14 gnubg.weights
> gunzip ../gnubg_ts0.bd.gz
> mv ../gnubg_ts0.bd .
> <<
> ConfigureParams: --mandir='$(prefix)/share/man'
> --infodir='$(prefix)/share/info'
> SetCPPFLAGS: -no-cpp-precomp
> SetLDFLAGS: -lncurses -L%p/sw -lmx -L/usr/X11R6/lib -lX11
> CompileScript: <<
>   export CC=gcc-3.3; export CXX=g++-3.3; ./configure %c
>   make CC=gcc-3.3 CXX=g++-3.3
> <<
> DocFiles: README NEWS TODO COPYING AUTHORS
> InfoDocs: gnubg.info
> Description: GNU Backgammon
> DescDetail: <<
> GNU Backgammon is a very strong (well, at least it beat me soundly)
> backgammon program that can play on the console or through GTK.
> <<
> License: GPL
> Maintainer: Matthias Neeracher <address@hidden>
> Homepage: http://gnubg.sourceforge.net
> --------------------------------------
> 
> 
> 
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
> 






reply via email to

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