You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2007-07-15 18:12:10

MarV
Member
Registered: 2007-07-15
Posts: 1

Compiling with Mac OSX

Hello,
I am using Mac OSX Tiger, but I don't know how to compile DeSmuME to use it with my OS. Could someone explain me what I should do?
Thanks anyway.

Offline

#2 2007-07-15 18:23:53

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

Hello !

Do you know how to use fink ?
It's a package management system for Mac OSX. If you install fink, I can give you what
packages you need to install, and how to compile desmume

Offline

#3 2007-07-16 09:45:00

miguelito
Member
Registered: 2007-07-16
Posts: 6

Re: Compiling with Mac OSX

I'm very interested too in compiling desmume for OSX, because I working on a homebrew and running every test on the hardware is way too slow.

I have fink installed, so any help with the packages needed would be very helpful. I've seen on the readme.lin (I guess this is the one I should look at) something about gtk+ and sdl, are these the packages I need?

I ran the configure and this is the output I get.

Inky:~/Desktop/desmume-0.7.2 miguelito$ ./configure
checking build system type... i686-apple-darwin8.10.1
checking host system type... i686-apple-darwin8.10.1
checking target system type... i686-apple-darwin8.10.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for gzopen in -lz... yes
checking for zzip_open in -lzzip... no
checking for sdl-config... no
checking for sdl11-config... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
checking GL/glu.h usability... no
checking GL/glu.h presence... no
checking for GL/glu.h... no
checking for pkg-config... pkg-config
WARNING: pkg-config is not available therefore gtk and gtk-glade UIs are not available either.
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
.infig.status: error: cannot find input file: Makefile

Thanks a lot in advance!!

Offline

#4 2007-07-16 09:50:07

miguelito
Member
Registered: 2007-07-16
Posts: 6

Re: Compiling with Mac OSX

One more thing, I've tried fink list with both gtk and sdl and none of the packages shown are installed.

Inky:~ miguelito$ fink list gtk
Information about 1732 packages read in 9 seconds.
     gtk+                                     1.2.10-50                      The Gimp Toolkit
     gtk+-data                                1.2.10-50                      The Gimp Toolkit
     gtk+-shlibs                              1.2.10-50                      The Gimp Toolkit
     gtk+2                                    2.4.9-1009                     The Gimp Toolkit
     gtk+2-dev                                2.4.9-1009                     The Gimp Toolkit
     gtk+2-shlibs                             2.4.9-1009                     The Gimp Toolkit
     gtk-doc                                  1.3-1012                       GTK+ - API documentation generator
     gtk-engines                              0.12-3                         Theme plugins for Gtk
     gtk2-engines                             2.2.0-1002                     Theme plugins for Gtk
     gtkglarea                                1.2.3-13                       OpenGL widget for GTK+
     gtkglarea2                               1.99.0-1002                    OpenGL widget for GTK+
     gtkglarea2-shlibs                        1.99.0-1002                    OpenGL widget for GTK+
     gtkglext1                                1.0.6-1002                     OpenGL Extension to GTK
     gtkglext1-shlibs                         1.0.6-1002                     OpenGL Extension to GTK
     gtkgraph                                 0.6.2-4                        Graphing calculator using Gtk+
     gtkhtml                                  1.0.2-1054                     HTML rendering/printing/editing engine
     gtkhtml-dev                              1.0.2-1054                     HTML rendering/printing/editing engine
     gtkhtml-shlibs                           1.0.2-1054                     HTML rendering/printing/editing engine
     gtkhtml1.1                               1.1.7-1014                     HTML rendering/printing/editing engine
     gtkhtml1.1-dev                           1.1.7-1014                     HTML rendering/printing/editing engine
     gtkhtml1.1-shlibs                        1.1.7-1014                     HTML rendering/printing/editing engine
     gtkmm2                                   2.2.12-1002                    C++ interface for the gtk+2 library
     gtkmm2-dev                               2.2.12-1002                    C++ interface for the gtk+2 library
     gtkmm2-shlibs                            2.2.12-1002                    C++ interface for the gtk+2 library
     gtksourceview                            1.0.1-1007                     Source code viewing tool
     gtksourceview-dev                        1.0.1-1007                     Headers and libraries for developing with gtksourceview
     gtksourceview-shlibs                     1.0.1-1007                     Shared libraries for gtksourceview
     gtkspell2                                2.0.4-1005                     Highlight misspelled words as you type
     gtkspell2-dev                            2.0.4-1005                     Highlight misspelled words as you type
     gtkspell2-shlibs                         2.0.4-1005                     Highlight misspelled words as you type
     libgtkhtml2                              2.6.2-1010                     HTML rendering/printing/editing engine
     libgtkhtml2-shlibs                       2.6.2-1010                     HTML rendering/printing/editing engine
     pygtk                                    0.6.9-13                       Placeholder for versioned pygtk packages
     pygtk-py23                               0.6.9-1016                     Modules for use of GTK with Python
     rep-gtk                                  0.15-1025                      Gtk+ and GNOME bindings for librep
Inky:~ miguelito$ fink list sdl
Information about 1732 packages read in 2 seconds.
     sdl                                      1.2.9-1001                     Cross-platform multimedia library
     sdl-image                                1.2.3-1002                     SDL image file loading library
     sdl-image-shlibs                         1.2.3-1002                     SDL image file loading library
     sdl-mixer                                1.2.6-1013                     SDL multi-channel audio mixer library
     sdl-mixer-shlibs                         1.2.6-1013                     SDL multi-channel audio mixer library
     sdl-shlibs                               1.2.9-1001                     Cross-platform multimedia library
     sdl-ttf                                  2.0.6-1016                     SDL TrueType font library
     sdl-ttf-shlibs                           2.0.6-1016                     SDL TrueType font library
Inky:~ miguelito$

Offline

#5 2007-07-16 10:40:59

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Compiling with Mac OSX

Hmm... that looks like a parsing problem...
Are you trying to build from the official release tarball of 0.7.2 ?

If so, please try to execute "dos2unix" on all files extracted from the tarball before trying to build again.

Offline

#6 2007-07-16 11:43:55

miguelito
Member
Registered: 2007-07-16
Posts: 6

Re: Compiling with Mac OSX

Done, but nothing changed.

Offline

#7 2007-07-16 11:46:03

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

with fink, install the following packages :
autoconf
gawk
gtk+2
libglade2
sdl
libgl
libxml-pm586

Perhaps i forget something, but all of those packages are needed for the last cvs version.

Then, be careful ! you need pkg-config, that comes with autoconf in /sw/bin and not in /usr/bin.
So you need to adjust your path by using /sw/bin in first position:
(bash)
export PATH="/sw/bin:$PATH"
(tcsh)
setenv PATH "/sw/bin:$PATH"

try configure and make, and tell me what you obtain !

Last edited by Xoff (2007-07-16 11:50:46)

Offline

#8 2007-07-16 13:03:15

miguelito
Member
Registered: 2007-07-16
Posts: 6

Re: Compiling with Mac OSX

Every package you list has installed without apparent errors. However the configure command still outputs the same.

There are two files named Makefile on the desmume directory, one with .am extension and the other with .in extension. I don't know if this has something to do, but as the problem seems to be with the Makefile I thought this might help.

Any idea?

Thanks again smile, I can't handle this by myself...

Offline

#9 2007-07-16 13:10:56

miguelito
Member
Registered: 2007-07-16
Posts: 6

Re: Compiling with Mac OSX

Here's the content of configure.log in case it helps

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

It was created by desmume configure 0.7.2, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = Inky.local
uname -m = i386
uname -r = 8.10.1
uname -s = Darwin
uname -v = Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = Mach kernel version:
     Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 512.00 megabytes
Default processor set: 57 tasks, 186 threads, 2 processors
Load average: 0.26, Mach factor: 1.73
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sw/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /sw/bin
PATH: /sw/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/local/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /opt/local/devkitPro/devkitARM//bin
PATH: /opt/local/devkitPro/devkitARM/bin
PATH: /usr/X11R6/bin
PATH: /opt/local/devkitPro/devkitARM/bin
PATH: /usr/local/Trolltech/Qt-4.3.0/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1350: checking build system type
configure:1368: result: i686-apple-darwin8.10.1
configure:1376: checking host system type
configure:1390: result: i686-apple-darwin8.10.1
configure:1398: checking target system type
configure:1412: result: i686-apple-darwin8.10.1
configure:1448: checking for a BSD-compatible install
configure:1503: result: /usr/bin/install -c
configure:1514: checking whether build environment is sane
configure:1557: result: yes
configure:1614: checking for gawk
configure:1630: found /sw/bin/gawk
configure:1640: result: gawk
configure:1650: checking whether make sets $(MAKE)
configure:1670: result: yes
configure:1881: checking for gcc
configure:1897: found /usr/bin/gcc
configure:1907: result: gcc
configure:2151: checking for C compiler version
configure:2154: gcc --version </dev/null >&5
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2157: $? = 0
configure:2159: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)
configure:2162: $? = 0
configure:2164: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2167: $? = 1
configure:2190: checking for C compiler default output file name
configure:2193: gcc    conftest.c  >&5
configure:2196: $? = 0
configure:2242: result: a.out
configure:2247: checking whether the C compiler works
configure:2253: ./a.out
configure:2256: $? = 0
configure:2273: result: yes
configure:2280: checking whether we are cross compiling
configure:2282: result: no
configure:2285: checking for suffix of executables
configure:2287: gcc -o conftest    conftest.c  >&5
configure:2290: $? = 0
configure:2315: result: 
configure:2321: checking for suffix of object files
configure:2342: gcc -c   conftest.c >&5
configure:2345: $? = 0
configure:2367: result: o
configure:2371: checking whether we are using the GNU C compiler
configure:2395: gcc -c   conftest.c >&5
configure:2401: $? = 0
configure:2405: test -z 
             || test ! -s conftest.err
configure:2408: $? = 0
configure:2411: test -s conftest.o
configure:2414: $? = 0
configure:2427: result: yes
configure:2433: checking whether gcc accepts -g
configure:2454: gcc -c -g  conftest.c >&5
configure:2460: $? = 0
configure:2464: test -z 
             || test ! -s conftest.err
configure:2467: $? = 0
configure:2470: test -s conftest.o
configure:2473: $? = 0
configure:2484: result: yes
configure:2501: checking for gcc option to accept ANSI C
configure:2571: gcc  -c -g -O2  conftest.c >&5
configure:2577: $? = 0
configure:2581: test -z 
             || test ! -s conftest.err
configure:2584: $? = 0
configure:2587: test -s conftest.o
configure:2590: $? = 0
configure:2608: result: none needed
configure:2626: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before 'me'
configure:2632: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2776: checking for style of include used by make
configure:2804: result: GNU
configure:2832: checking dependency style of gcc
configure:2915: result: gcc3
configure:2974: checking for ranlib
configure:2990: found /usr/bin/ranlib
configure:3001: result: ranlib
configure:3015: checking whether byte ordering is bigendian
configure:3042: gcc -c -g -O2  conftest.c >&5
configure:3048: $? = 0
configure:3052: test -z 
             || test ! -s conftest.err
configure:3055: $? = 0
configure:3058: test -s conftest.o
configure:3061: $? = 0
configure:3085: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:18: error: 'not' undeclared (first use in this function)
conftest.c:18: error: (Each undeclared identifier is reported only once
conftest.c:18: error: for each function it appears in.)
conftest.c:18: error: parse error before 'big'
configure:3091: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| /* end confdefs.h.  */
| #include <sys/types.h>
| #include <sys/param.h>
| 
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
|  not big endian
| #endif
| 
|   ;
|   return 0;
| }
configure:3226: result: no
configure:3249: checking for gzopen in -lz
configure:3279: gcc -o conftest -g -O2   conftest.c -lz   >&5
configure:3285: $? = 0
configure:3289: test -z 
             || test ! -s conftest.err
configure:3292: $? = 0
configure:3295: test -s conftest
configure:3298: $? = 0
configure:3311: result: yes
configure:3324: checking for zzip_open in -lzzip
configure:3354: gcc -o conftest -g -O2   conftest.c -lzzip  -lz  >&5
/usr/bin/ld: can't locate file for: -lzzip
collect2: ld returned 1 exit status
configure:3360: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| #define HAVE_LIBZ 1
| /* end confdefs.h.  */
| 
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char zzip_open ();
| int
| main ()
| {
| zzip_open ();
|   ;
|   return 0;
| }
configure:3386: result: no
configure:3402: checking for sdl-config
configure:3420: found /sw/bin/sdl-config
configure:3432: result: /sw/bin/sdl-config
configure:3457: checking how to run the C preprocessor
configure:3492: gcc -E  conftest.c
configure:3498: $? = 0
configure:3530: gcc -E  conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:3536: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| #define HAVE_LIBZ 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3575: result: gcc -E
configure:3599: gcc -E  conftest.c
configure:3605: $? = 0
configure:3637: gcc -E  conftest.c
conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
configure:3643: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| #define HAVE_LIBZ 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3687: checking for egrep
configure:3697: result: grep -E
configure:3702: checking for ANSI C header files
configure:3727: gcc -c -g -O2  conftest.c >&5
configure:3733: $? = 0
configure:3737: test -z 
             || test ! -s conftest.err
configure:3740: $? = 0
configure:3743: test -s conftest.o
configure:3746: $? = 0
configure:3832: gcc -o conftest -g -O2   conftest.c -lz  >&5
conftest.c: In function 'main':
conftest.c:29: warning: incompatible implicit declaration of built-in function 'exit'
configure:3835: $? = 0
configure:3837: ./conftest
configure:3840: $? = 0
configure:3855: result: yes
configure:3879: checking for sys/types.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for sys/stat.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for stdlib.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for string.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for memory.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for strings.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for inttypes.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for stdint.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3879: checking for unistd.h
configure:3895: gcc -c -g -O2  conftest.c >&5
configure:3901: $? = 0
configure:3905: test -z 
             || test ! -s conftest.err
configure:3908: $? = 0
configure:3911: test -s conftest.o
configure:3914: $? = 0
configure:3925: result: yes
configure:3951: checking GL/gl.h usability
configure:3963: gcc -c -g -O2  conftest.c >&5
conftest.c:56:19: error: GL/gl.h: No such file or directory
configure:3969: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| #define HAVE_LIBZ 1
| #define STDC_HEADERS 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_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <GL/gl.h>
configure:3992: result: no
configure:3996: checking GL/gl.h presence
configure:4006: gcc -E  conftest.c
conftest.c:22:19: error: GL/gl.h: No such file or directory
configure:4012: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| #define HAVE_LIBZ 1
| #define STDC_HEADERS 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_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <GL/gl.h>
configure:4032: result: no
configure:4067: checking for GL/gl.h
configure:4074: result: no
configure:4101: checking GL/glu.h usability
configure:4113: gcc -c -g -O2  conftest.c >&5
conftest.c:56:20: error: GL/glu.h: No such file or directory
configure:4119: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| #define HAVE_LIBZ 1
| #define STDC_HEADERS 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_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <GL/glu.h>
configure:4142: result: no
configure:4146: checking GL/glu.h presence
configure:4156: gcc -E  conftest.c
conftest.c:22:20: error: GL/glu.h: No such file or directory
configure:4162: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "desmume"
| #define PACKAGE_TARNAME "desmume"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "desmume 0.7.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "desmume"
| #define VERSION "0.7.2"
| #define HAVE_LIBZ 1
| #define STDC_HEADERS 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_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <GL/glu.h>
configure:4182: result: no
configure:4217: checking for GL/glu.h
configure:4224: result: no
configure:4279: checking for pkg-config
configure:4295: found /usr/bin/pkg-config
configure:4305: result: pkg-config
configure:4395: checking whether to enable maintainer-specific portions of Makefiles
configure:4404: result: no
configure:4571: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by desmume config.status 0.7.2, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on Inky.local

config.status:713: creating Makefile

config.status:20: error: cannot find input file: Makefile
.in

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-apple-darwin8.10.1
ac_cv_build_alias=i686-apple-darwin8.10.1
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_header_GL_gl_h=no
ac_cv_header_GL_glu_h=no
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-apple-darwin8.10.1
ac_cv_host_alias=i686-apple-darwin8.10.1
ac_cv_lib_z_gzopen=yes
ac_cv_lib_zzip_zzip_open=no
ac_cv_objext=o
ac_cv_path_SDLCONFIG=/sw/bin/sdl-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_HAVE_PKG=pkg-config
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-apple-darwin8.10.1
ac_cv_target_alias=i686-apple-darwin8.10.1
am_cv_CC_dependencies_compiler_type=gcc3

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Users/miguelito/Desktop/desmume-0.7.2/missing --run aclocal-1.8'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /Users/miguelito/Desktop/desmume-0.7.2/missing --run tar'
AUTOCONF='${SHELL} /Users/miguelito/Desktop/desmume-0.7.2/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/miguelito/Desktop/desmume-0.7.2/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/miguelito/Desktop/desmume-0.7.2/missing --run automake-1.8'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DPACKAGE_NAME=\"desmume\" -DPACKAGE_TARNAME=\"desmume\" -DPACKAGE_VERSION=\"0.7.2\" -DPACKAGE_STRING=\"desmume\ 0.7.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"desmume\" -DVERSION=\"0.7.2\" -DHAVE_LIBZ=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 '
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
HAVE_PKG='pkg-config'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS='-lz  -framework OpenGL'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/miguelito/Desktop/desmume-0.7.2/missing --run makeinfo'
OBJEXT='o'
PACKAGE='desmume'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='desmume'
PACKAGE_STRING='desmume 0.7.2'
PACKAGE_TARNAME='desmume'
PACKAGE_VERSION='0.7.2'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SDLCONFIG='/sw/bin/sdl-config'
SDL_CFLAGS='-I/sw/include/SDL -D_THREAD_SAFE'
SDL_LIBS='-L/sw/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
UI_DIR='cli '
USE_MAINTAINER_MODE='no'
VERSION='0.7.2'
ac_ct_CC='gcc'
ac_ct_HAVE_PKG='pkg-config'
ac_ct_RANLIB='ranlib'
ac_ct_STRIP=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-apple-darwin8.10.1'
build_alias=''
build_cpu='i686'
build_os='darwin8.10.1'
build_vendor='apple'
datadir='${prefix}/share'
desmume_arch='linux'
exec_prefix='${prefix}'
host='i686-apple-darwin8.10.1'
host_alias=''
host_cpu='i686'
host_os='darwin8.10.1'
host_vendor='apple'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/Users/miguelito/Desktop/desmume-0.7.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p -- .'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-apple-darwin8.10.1'
target_alias=''
target_cpu='i686'
target_os='darwin8.10.1'
target_vendor='apple'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_INTTYPES_H 1
#define HAVE_LIBZ 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE "desmume"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "desmume"
#define PACKAGE_STRING "desmume 0.7.2"
#define PACKAGE_TARNAME "desmume"
#define PACKAGE_VERSION "0.7.2"
#define STDC_HEADERS 1
#define VERSION "0.7.2"

configure: exit 1

Offline

#10 2007-07-16 18:11:16

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

This is my environment, perhaps you need to adjust some values ? (setenv or export)

LD_LIBRARY_PATH=/sw/lib
LDFLAGS=-L/sw/lib
CPATH=/sw/include:/sw/include/gtk-2.0:/sw/include/gdk-2.0:/sw/include/pango-1.0:/sw/lib/gtk-2.0/include:/sw/include/atk-1.0:/sw/include/libglade-2.0:/usr/x11R6/include
CPPFLAGS=-I/sw/include
PKG_CONFIG_PATH=/sw/lib/freetype219/lib/pkgconfig/
PERL5LIB=/sw/lib/perl5/5.8.6/darwin-thread-multi-2level


Do you use source of last version or cvs version ?
Could you please give me what you obtain from ./configure in your terminal ?
(configure.log is too much verbose for now, stdin is enough)

Offline

#11 2007-07-16 21:10:16

doobedy
Member
Registered: 2007-07-16
Posts: 2

Re: Compiling with Mac OSX

I've been trying to compile for OS X as well, and not really having any luck.  I've noticed at least two problems:

1) the configure file in the download is just echoing that error message about pkg-config, without any conditionals:

    echo "WARNING: pkg-config is not available therefore gtk and gtk-glade UIs are not available either."

So I don't think that configure file will work either way, ever, because it never moves on to check for gtk/glade and some other stuff.  Which leaves autoconf and configure.ac.

2) had to run dos2unix on the configure, configure.ac and Makefiles, and autogen.sh if I remember correctly

I managed to get the cli version to compile from the release, but no dice with either the 0.7.2 release or the CVS version using autogen.sh, for gtk-glade.  Everything seems to be detected fine, all dependencies met. 

When I run from the CVS, I get more dos/unix errors it looks like, like this:

Making all in po
file=`echo fr | sed 's,.*/,,'`.gmo \
  && rm -f $file &&  -o $file fr.po
/bin/sh: line 1: -o: command not found
make[1]: *** [fr.gmo] Error 127
make: *** [all-recursive] Error 1

So I guess I'll try to track those down now smile

Offline

#12 2007-07-16 21:32:29

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

the pkg-config error is solved by installing the package autoconf with fink and put the fink path "/sw/bin" in front of your PATH.
(to avoid using autoconf scripts from the base system in /usr)

I did not need to use dos2unix on any file, (release or cvs). But Makefiles are invalid if configure was not successful

Last edited by Xoff (2007-07-16 21:33:41)

Offline

#13 2007-07-17 00:50:40

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Compiling with Mac OSX

Miguelito: You need to have OpenGL... i don't know how to install that on MacOSX, but you _need_ the OpenGL framework. (I should modify the configure.ac to make that a fatal error on MacOSX...)

doobedy: As mentionned by Xoff, you _need_ pkg-config for the gtk-glade and gtk UIs to work. Make sure it's in your path. If it's not present, you'll only get the cli UI. (At least i've covered that case with an explicit WARNING!)

Offline

#14 2007-07-17 00:54:41

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Compiling with Mac OSX

Xoff: pkg-config is in /sw/bin !? Could you quickly how things are done on MacOSX?
So far, i understand that you need to use fink... do you need to run X or it works under Cocoa (is cocoa the Windows Server? if not, replace cocoa with the Windows Server name)?

Eventually, it'd be nice to have a README.OSX and perhaps a configure.ac that handles the MacOSX case without any user intervention... (e.g. LDFLAGS, CPATH, etc.  redefines)

Offline

#15 2007-07-17 03:49:08

doobedy
Member
Registered: 2007-07-16
Posts: 2

Re: Compiling with Mac OSX

evilynux wrote:

Miguelito: You need to have OpenGL... i don't know how to install that on MacOSX, but you _need_ the OpenGL framework. (I should modify the configure.ac to make that a fatal error on MacOSX...)

doobedy: As mentionned by Xoff, you _need_ pkg-config for the gtk-glade and gtk UIs to work. Make sure it's in your path. If it's not present, you'll only get the cli UI. (At least i've covered that case with an explicit WARNING!)

Sorry, maybe I wasn't clear.  It's finding pkg-config fine, when I generate my own configure.  If you look at the configure file bundled with the 0.7.2 release, it looks like it will spit out that error no matter what you do.  It's just an echo on a line by itself.  And it never checks for gtk/glade either.  Not sure what's up with that.

Offline

#16 2007-07-17 05:04:42

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Compiling with Mac OSX

doobedy wrote:

Sorry, maybe I wasn't clear.  It's finding pkg-config fine, when I generate my own configure.  If you look at the configure file bundled with the 0.7.2 release, it looks like it will spit out that error no matter what you do.  It's just an echo on a line by itself.  And it never checks for gtk/glade either.  Not sure what's up with that.

From the CVS, it seems GMSGFMT is not defined for you. Are intltool and gettext installed?

I just made intltool/gettext required only if the gtk-glade UI is to be built. Same goes for the po/ folder.

You say everything is found correctly... hmmm... what's the output of your "./configure"?
What are your environment variables? See Xoff's post.

Offline

#17 2007-07-17 08:42:25

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

To make things more understandable (?!) :

On OSX, the "Window server" is aqua. Cocoa and Carbon are os-x specific GUI (like gtk for unix).
All native drawing on OSX are based on OpenGL, so the framework is always installed on OSX.
But, to compile unix-like program with OpenGL, you need sometimes interface to the openGL framework,
like the one provided by X11 (Apple Developper tools) in /usr/X11R6/include/GL/gl.h !

The system unix-like binaries are installed in /usr/bin.
The unix-like binaries provided by fink are installed in /sw/bin.


The pkg-config is not installed by default in the system (/usr/bin). So you need to install it with fink (package pkgconfig).
BUT, it must be linked with autoconf correctly, and it will be only with autoconf installed from fink (so you end with two autoconf, one in /sw/bin and one in /usr/bin). It's why you need to adjust very carefully your PATH.

So the following other packages must be installed with fink : pkgconfig gettext intltool.

Offline

#18 2007-07-17 08:47:03

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

And as far as you use standard gtk, you need to launch the X11 server to use desmume-gtk and desmume-glade.
The desmume-cli is based on sdl which is "native" on OSX, and don't use X11.

There is some experimental gtk framework for aqua, but it's enough complex for now with standard tools smile

Last edited by Xoff (2007-07-17 08:53:04)

Offline

#19 2007-07-18 09:30:07

miguelito
Member
Registered: 2007-07-16
Posts: 6

Re: Compiling with Mac OSX

Sorry for being away for a while. I've installed all packages mentioned here, set the environment like Xoffs and redownloaded the source from sourceforge. Yet I still get the same output.

You can see my environment too, in case it helps.

Inky:~/Desktop/desmume-0.7.2 miguelito$ ./configure
checking build system type... i686-apple-darwin8.10.1
checking host system type... i686-apple-darwin8.10.1
checking target system type... i686-apple-darwin8.10.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for gzopen in -lz... yes
checking for zzip_open in -lzzip... no
checking for sdl-config... /sw/bin/sdl-config
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
checking GL/glu.h usability... no
checking GL/glu.h presence... no
checking for GL/glu.h... no
checking for pkg-config... pkg-config
WARNING: pkg-config is not available therefore gtk and gtk-glade UIs are not available either.
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
.infig.status: error: cannot find input file: Makefile
Inky:~/Desktop/desmume-0.7.2 miguelito$ env
LDFLAGS=-L/sw/lib
MANPATH=/sw/share/man:/usr/share/man:/usr/local/share/man:/Library/TeX/Distributions/.DefaultTeX/Contents/Man:/opt/local/share/man:/opt/local/devkitPro/devkitARM//man:/opt/local/devkitPro/devkitARM/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man
DEVKITARM=/opt/local/devkitPro/devkitARM
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/bash
CPPFLAGS=-I/sw/include
PERL5LIB=/sw/lib/perl5/5.8.6/darwin-thread-multi-2level
TERM_PROGRAM_VERSION=133
SGML_CATALOG_FILES=/sw/etc/sgml/catalog
USER=miguelito
LD_LIBRARY_PATH=/sw/lib
GDK_USE_XFT=1
DEVKITPRO=/opt/local/devkitPro
CPATH=/sw/include:/sw/include/gtk-2.0:/sw/include/gdk-2.0:/sw/include/pango-1.0:/sw/lib/gtk-2.0/include:/sw/include/atk-1.0:/sw/include/libglade-2.0:/usr/x11R6/include
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/sw/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/texbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/opt/local/devkitPro/devkitARM//bin:/opt/local/devkitPro/devkitARM/bin:/usr/X11R6/bin:/opt/local/devkitPro/devkitARM/bin:/usr/local/Trolltech/Qt-4.3.0/bin
XML_CATALOG_FILES=/sw/etc/xml/catalog
PWD=/Users/miguelito/Desktop/desmume-0.7.2
EDITOR=/usr/bin/pico
LIBNDS=/opt/local/devkitPro/libnds/
LIBNDS_INCLUDE=/opt/local/devkitPro/libnds/include/
PAPATH=/opt/local/devkitPro/PAlib/
SHLVL=1
HOME=/Users/miguelito
LOGNAME=miguelito
PKG_CONFIG_PATH=/sw/lib/freetype219/lib/pkgconfig/
INFOPATH=/sw/share/info:/sw/info:/usr/share/info
DISPLAY=:0.0
SECURITYSESSIONID=4e96b20
_=/usr/bin/env
OLDPWD=/Users/miguelito
Inky:~/Desktop/desmume-0.7.2 miguelito$

Thanks once more!

Offline

#20 2007-07-18 11:14:04

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

There is something wrong in 0.7.2 !

I have the same error as you. But there is a solution !
In fact there is two problems. An encoding problem, and a bad path for autoconf in configure.


First solution :
     install package dos2unix in fink
     and run the following commands :
      dos2unix configure.ac
      dos2unix autogen.sh
      chmod u+x autogen.sh
      ./autogen.sh
      ./configure
      make

Second Solution :
    use the CVS repositery, and load the last cvs version, run autogen.sh, configure and make.

hope this is helping smile

Last edited by Xoff (2007-07-18 11:16:58)

Offline

#21 2007-07-18 12:59:02

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Compiling with Mac OSX

Also, don't you also have to change the PATH so that autotools from /sw/bin are used instead of /usr/bin ?

Offline

#22 2007-07-18 20:11:58

Xoff
Member
From: France
Registered: 2007-07-01
Posts: 22

Re: Compiling with Mac OSX

autogen.sh (autoreconf) does all the job

Offline

#23 2007-07-19 07:35:25

adriel
Member
Registered: 2007-07-19
Posts: 5

Re: Compiling with Mac OSX

Why cant anyone who has gotten this to work upload it somewhere and post a link here?

Offline

#24 2007-07-24 08:32:25

fenne
Member
Registered: 2007-07-24
Posts: 10

Re: Compiling with Mac OSX

Using the standard 7.2 source (nothing from cvs) I was able to get the cli version running.

I installed xcode and x11, then installed fink. 
I opened X11, went to Aplications->Customize Menu... and made sure under the Menu Name "Terminal" that the command was "xterm -ls" instead of just "xterm".  This will fix any PATH errors you get.

From there I went Applications->Terminal and in that new window I ran
'fink configure'
(and just stuck to all the defaults)

'fink selfupdate; fink index; fink scanpackages'
(which takes a long time)

and then finally 'fink install xyz' where xyz was each of these
sdl
gtk+2
libglade2
autoconf
gawk
libxml-pm586
dos2unix

I then expanded the source to my desktop and navigated to the source directory using 'cd Desktop/desmume-0.7.2/'

From there I ran 'dos2unix Makefile.* autogen.sh configure*;'

After that completed I had to fix the execute permissions so I ran 'chmod +x configure' and 'chmod +x autogen.sh'

After that I did './autogen.sh' followed by './configure' and 'make'

I noted that during the ./configure stage it's not finding the openGL libraries.  These are natively supported by osx and there is no way to install them via fink, they don't exist.  The openGL libraries for x11 exist in locations like 'usr/x11r6/include/GL/gl.h' and 'usr/x11r6/lib/libGLU.a'  I did not know where to begin to reroute what you are looking for to where the native libgl stuff is, but we wont have 3d support until you can do so.

I also noticed it always spewed an error about pkg-config not being installed, when indeed it was.  This hampers the gtk or glade libs from ever being usable.

Anyways after that I was able to navigate to the 'desmume-0.7.2/src/cli' directory, and use the cli version with './desmume-cli ppeach.nds'.  Everything loaded fine, I had frame rate and full sound on my dual 2.7 g5 and the menus came up right away and it was playable.  However, any 3d game either hung right as in the case of New SMB or had severe errors.


All in all its essentially fully working on osx.  You just need to link to the correct location of the built-in OpenGL x11 libs, and fix the issue with pkg-config not being recognized so that we can use the gui modes.  Excellent work im quite impressed.

Last edited by fenne (2007-07-24 09:10:55)

Offline

#25 2007-07-26 06:16:00

mcoupland
Member
Registered: 2007-07-26
Posts: 1

Re: Compiling with Mac OSX

I was having the same problems, and fenne's instructions worked for me, with the following difference:

autogen.sh would not run for me, but this worked instead:

autoreconf --force --verbose -i

(Either the "i" instead of "install" or the ordering fixed it...)

The CLI version seems to be up and working now!

Offline

Board footer

Powered by FluxBB