You are not logged in.

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



#1 2009-01-04 15:55:55

SalentinoTL
Member
Registered: 2009-01-04
Posts: 1

error compiling 0.9 on xubuntu 8.10

Hi,
i've tried to compile it on my sistem and this is what i get:

nico@nico-desktop:~/Sorgenti/desmume-0.9$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 whether byte ordering is bigendian... no
checking for pkg-config... no
checking whether NLS is requested... yes
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for gzopen in -lz... no
checking for zzip_open in -lzzip... no
checking for sdl-config... no
checking for sdl11-config... no
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... no
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/cli/Makefile
config.status: creating src/cli/doc/Makefile
config.status: creating src/cocoa/Makefile
config.status: creating src/gtk/Makefile
config.status: creating src/gtk/doc/Makefile
config.status: creating src/gtk-glade/Makefile
config.status: creating src/gtk-glade/doc/Makefile
config.status: creating src/windows/Makefile
config.status: creating src/gdbstub/Makefile
config.status: creating autopackage/default.apspec
config.status: executing depfiles commands
config.status: executing po/stamp-it commands
grep: po/Makefile.in: No such file or directory
config.status: error: po/Makefile.in.in was not created by intltoolize.


It seem to be a intltool problem, i've also tried to installa the previous version (0.40.4-0ubuntu1) but it not solve

HELP

Offline

#2 2009-01-08 11:39:14

johnboy68
Member
Registered: 2009-01-08
Posts: 2

Re: error compiling 0.9 on xubuntu 8.10

I had a similar problem in Debian.

I created a file in the /po directory called Makefile.in and "touched" it.  It got rid of the "grep: po/Makefile.in: No such file or directory" message.

I still had the error at the end but was still able to "make" and "make install" and run desmume.

It still doesn't run as well as the Windows version.  I can run some of my games well in Windows but not in Linux.

HTH

Offline

#3 2009-01-20 16:53:34

dm242
Member
Registered: 2009-01-20
Posts: 1

Re: error compiling 0.9 on xubuntu 8.10

I have the same problem in my ubuntu 8.10, you can solved this?

Offline

#4 2009-01-21 07:57:44

guillaume
Administrator
Registered: 2007-03-17
Posts: 32

Re: error compiling 0.9 on xubuntu 8.10

Usually the problem comes from missing dependencies. You should try to install (those are debian/ubuntu package names, ymmv):
- libsdl1.2-dev
- libglade2-dev
- libgtkglext1-dev

About initial post in the thread... you should install the c++ compiler as well.

Now I should fix our configure script so it reports about those missing dependencies (at least the C++ one...)

Offline

#5 2009-01-21 18:22:37

James Paige
Member
Registered: 2009-01-21
Posts: 4

Re: error compiling 0.9 on xubuntu 8.10

I am trying to compile (from subversion) on Ubuntu 8.10. ./compile works fine for me. I have all of the above-mentioned -dev packages installed already. When I run make I get:

../libdesmume.a(MMU.o): In function `MMU_DeInit()':
/home/james/src/misc/desmume/desmume/src/MMU.cpp:400: undefined reference to `addonsClose()'
../libdesmume.a(MMU.o): In function `MMU_clearMem()':
/home/james/src/misc/desmume/desmume/src/MMU.cpp:514: undefined reference to `addonsReset()'
../libdesmume.a(MMU.o): In function `MMU_Init()':
/home/james/src/misc/desmume/desmume/src/MMU.cpp:385: undefined reference to `addonsInit()'
/home/james/src/misc/desmume/desmume/src/MMU.cpp:386: undefined reference to `Mic_Init()'
../libdesmume.a(MMU.o): In function `_MMU_ARM7_write16':
/home/james/src/misc/desmume/desmume/src/MMU.cpp:3237: undefined reference to `Mic_ReadSample()'
../libdesmume.a(MMU.o): In function `MMU_DeInit()':
/home/james/src/misc/desmume/desmume/src/MMU.cpp:401: undefined reference to `Mic_DeInit()'
../libdesmume.a(MMU.o): In function `MMU_clearMem()':
/home/james/src/misc/desmume/desmume/src/MMU.cpp:515: undefined reference to `Mic_Reset()'
../libdesmume.a(NDSSystem.o): In function `NDS_Reset()':
/home/james/src/misc/desmume/desmume/src/NDSSystem.cpp:618: undefined reference to `cheatsSearchClose()'
../libdesmume.a(NDSSystem.o): In function `NDS_LoadROM(char const*, int, unsigned long, char const*)':
/home/james/src/misc/desmume/desmume/src/NDSSystem.cpp:460: undefined reference to `cheatsInit(char*)'
../libdesmume.a(NDSSystem.o): In function `unsigned long NDS_exec<true>(long)':
/home/james/src/misc/desmume/desmume/src/NDSSystem.cpp:1158: undefined reference to `cheatsProcess()'
../libdesmume.a(NDSSystem.o): In function `unsigned long NDS_exec<false>(long)':
/home/james/src/misc/desmume/desmume/src/NDSSystem.cpp:1158: undefined reference to `cheatsProcess()'
collect2: ld returned 1 exit status
make[3]: *** [desmume-glade] Error 1
make[3]: Leaving directory `/home/james/src/misc/desmume/desmume/src/gtk-glade'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/james/src/misc/desmume/desmume/src/gtk-glade'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/james/src/misc/desmume/desmume/src'
make: *** [all-recursive] Error 1

Offline

#6 2009-01-21 20:49:58

guillaume
Administrator
Registered: 2007-03-17
Posts: 32

Re: error compiling 0.9 on xubuntu 8.10

Which revision are you using?

Is it a clean copy or an update? If it's an update, try to run ./autogen.sh again.

Offline

#7 2009-01-21 21:02:47

James Paige
Member
Registered: 2009-01-21
Posts: 4

Re: error compiling 0.9 on xubuntu 8.10

guillaume wrote:

Which revision are you using?

Is it a clean copy or an update? If it's an update, try to run ./autogen.sh again.

Aha! Thanks. That fixed it.

I was using r1500 of the trunk, and it was indeed an update.

(Now I can't really get any games to work, but I am pretty sure that is the fault of my video card, and not the fault of desmume)

Offline

#8 2009-01-21 21:08:42

guillaume
Administrator
Registered: 2007-03-17
Posts: 32

Re: error compiling 0.9 on xubuntu 8.10

If you're running Linux and if for some reason 3D doesn't works for you, you may want to give a try to osmesa version:

make distclean
./configure --enable-osmesa
make

You'll need osmesa package to test that.

Offline

#9 2009-01-22 17:12:49

James Paige
Member
Registered: 2009-01-21
Posts: 4

Re: error compiling 0.9 on xubuntu 8.10

Hmm... Okay, I installed libosmesa6-dev and tried to compile again, but now when I try to run ./configure --enable-osmesa I get

grep: po/Makefile.in: No such file or directory
config.status: error: po/Makefile.in.in was not created by intltoolize.

EDIT: and I tried the workaround suggested above by johnboy68 and that did not make any difference.

EDIT: Okay, I did some research, and discovered that this "config.status: error: po/Makefile.in.in was not created by intltoolize." is happening because Ubuntu 8.10 install intltool 0.40.5, which is more strict about the input you give it than intltool 0.40.4 and older. Your config files for building desume have a bug in the internationalization. Older intltool versions ignore it, but newer intltool versions crash out.

I found some more details about the subject here: http://bugs.gentoo.org/show_bug.cgi?id=240958

EDIT: here is how I worked around the problem. I manually edited my configure script, and commented out the following lines:

#    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" ; then
#       { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by i$
#echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
#   { (exit 1); exit 1; }; }
#    fi

Then I did touch po/Makefile.in as suggested by johnboy68, and then I was able to run configure again. I ran with --enable-osmesa and yes, indeed, it did work. I can now play all the games that I was previously unable to play. it does seem a little on the slow side, but not unbearably so.

Last edited by James Paige (2009-01-23 17:30:41)

Offline

#10 2009-01-26 18:25:09

Loïc
Member
Registered: 2009-01-26
Posts: 2

Re: error compiling 0.9 on xubuntu 8.10

I've updated the Jaunty i386 and amd64 Desmume 0.9 packages. The Jaunty ones should hopefully be in the repositories soon, but Intrepid/Hardy/etc ones need to be backported.

I'll try to see if they can be hosted on the project page (by MP, i couldn't find a contact email address), but I'm not sure who to contact. Basically it's easy to get packages for all versions, even Debian, I just have to know what people want.

In the meantime, Ubuntu 7.10 (Gutsy), 8.04 (Hardy), 8.10 (Intrepid) and 9.04 (Jaunty) packages for i386/amd64 arch (and for Gutsy, Hardy & Intrepid also lpia) are available on my ppa at https://launchpad.net/~loic-martin3/+archive

The packages are signed, you can add the key from a terminal with either :

wget 'http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x47DF62490A617C5BED85C30E7AAA116D78822001' -O- | sudo apt-key add -

or preferably:

gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-key 78822001 && gpg -a --export 78822001 | sudo apt-key add -

Last edited by Loïc (2009-01-27 23:10:22)

Offline

Board footer

Powered by FluxBB