You are not logged in.

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



#1 2015-08-23 08:40:46

Renoa
Member
Registered: 2015-08-23
Posts: 6

Questions about compiling DeSmuME on Ubuntu

I was following a guide about compiling the latest source of DeSmuME for Ubuntu, here: https://gist.github.com/chrisyco/1470676

And I've got questions concerning about what the guide meant by: "Read the output carefully. If anything says "no", check you've installed it, and installed the right one. Then try again."

I've got at least 4 lines that says no when I tried ./configure:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-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 how to create a pax tar archive... gnutar
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for gcc... gcc
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 dependency style of gcc... gcc3
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 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 perl >= 5.8.1... 5.20.2
checking for XML::Parser... ok
checking for gzopen in -lz... yes
checking for zzip_open in -lzzip... yes
checking whether zzip use void * as second parameter... yes
checking for sdl-config... /usr/bin/sdl-config
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for main in -ldl... yes
checking for main in -lGL... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GTK... yes
checking for GTHREAD... yes
checking for update-desktop-database... /usr/bin/update-desktop-database
checking for LUA... no
checking for LUA... yes
checking for ALSA... yes
checking for LIBAGG... yes
checking for LIBSOUNDTOUCH... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating src/cli/Makefile
config.status: creating src/cli/doc/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/gdbstub/Makefile
config.status: creating autopackage/default.apspec
config.status: executing depfiles commands
config.status: executing po/stamp-it commands

Exactly what does this mean?

I tried compiling it with no errors occurred, and I was able to run it using 'desmume --cpu-mode=1' on terminal, but I'm bothered by the following lines:

Failed to set format: Invalid argument
Microphone init failed.

I'm a bit of a newbie on Ubuntu and Linux and general, so please understand.

Also, the emulator runs kind of slow on Ubuntu, I tested Glory of Heracles, at the start it runs finely about 59 - 62 fps and drops around 42-48 fps on the world map and other cutscenes, I also tried using OpenGL as the render engine and put frameskip on 1, 2 and 3, but the fps still drops. It's not like that on the Windows port though.

Last edited by Renoa (2015-08-23 08:45:33)

Offline

#2 2015-08-23 15:57:51

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,169

Re: Questions about compiling DeSmuME on Ubuntu

Build logs and console output are full of chatter. Stop being bothered by the following lines.

Offline

#3 2015-08-23 16:53:48

Renoa
Member
Registered: 2015-08-23
Posts: 6

Re: Questions about compiling DeSmuME on Ubuntu

Ah... I see, guess I got worried about these lines too much. Thank you for the answer.

About the performance issue, is there anyway I can fix or improve the speed at least on par with the Windows port?

Offline

#4 2015-08-24 00:15:49

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 6,169

Re: Questions about compiling DeSmuME on Ubuntu

dunno. theres not many options on the linux port. make sure youve got the jit/dynarec enabled, try changing the 3d renderer

Offline

#5 2015-08-24 19:02:39

Renoa
Member
Registered: 2015-08-23
Posts: 6

Re: Questions about compiling DeSmuME on Ubuntu

Is dynarec/jit enabled via using '--cpu-mode=1', yes?

I already tried changing 3d renderers, and even setting the frameskip 1 up to 3. But fps drops at between 42 to 48.

On a side note, the Windows port runs smooth using Wine.

EDIT:
Tried compiling from svn, runs smoothly on 60 fps, can have a few slight and short hiccups sometimes ( drops on 55 or 58 fps) but otherwise, runs pretty great.

Last edited by Renoa (2015-08-26 05:41:33)

Offline

Board footer

Powered by FluxBB