Linux version

Adomas J.
2005-11-30
2013-04-23
  • Adomas J.
    Adomas J.
    2005-11-30

    It would be nice to have a native port to Linux for Mega Mario :)

     
    • what SDL library needs to be loaded for linux users?

       
    • You need

      SDL
      SDL_image
      SDL_mixer
      SDL_ttf

      installed!

       
    • hey. when I do the make install following the directions in linux.txt I get the following output. note that this is just a small portion, but it trails down the console through out the whole process.

      rc/bonus.cpp:234: error: ‘SURFACE’ was not declared in this scope
      src/bonus.cpp:234: error: ‘LoadIMG’ was not declared in this scope
      src/bonus.cpp: In member function ‘void cGlidder::update()’:
      src/bonus.cpp:271: error: ‘rect’ was not declared in this scope
      src/bonus.cpp:273: error: ‘SURFACE’ was not declared in this scope
      src/bonus.cpp:273: error: ‘screen’ was not declared in this scope
      src/bonus.cpp:273: error: ‘SDL_UpperBlit’ was not declared in this scope
      src/bonus.cpp: In member function ‘void cScore::update()’:
      src/bonus.cpp:316: error: ‘screen’ was not declared in this scope
      src/bonus.cpp:316: error: ‘StringColor’ cannot be used as a function
      src/SDL_gfxPrimitives_font.h: At global scope:
      src/SDL_gfxPrimitives_font.h:8: warning: ‘gfxPrimitivesFontdata’ defined but not used

      I believe I have all the sdl libraries installed.

      I am using something called libsdl 1.2
      I dont know if the dev packages have to be installed or not, but I can't install them because I always get unresolvable dependancies error.

      I am using Ubuntu Edgy 5.10 AMD64

       
    • I just got an email from João Pinto and he created an ubuntu install package.
      I think this will help you. available over www.megamario.de

       
    • If you try to compile in linux after installing SDL and have problems, remember that you need more than SDL, you need SDL dev! The SDL development packages include the necessary header files.

       
    • Bill Blake
      Bill Blake
      2009-03-20

      # These files missing from MegaMario_v1.6_full.zip; copied from 1.5 release to build OK (put in src_game):

      spiny.cpp
      turtle.cpp
      unixutils.c
      unixutils.h

      # Source directory name changed from src to src_game; makefile patch needed (change src to src_game):

      ###########################

      --- megamario-1.6/Makefile.orig 2009-03-20 00:19:54.000000000 -0400
      +++ megamario-1.6/Makefile      2009-03-20 00:10:36.000000000 -0400
      @@ -4,12 +4,12 @@
      CXXFLAGS= $(CFLAGS)
      LDFLAGS = -lSDL -lSDL_mixer -lSDL_ttf -lSDL_image -lGL
      DEFINES = -DDATADIR=\"$(DATADIR)/\"
      -OBJS    = src/bonus.o src/gamepad.o src/killerblume.o src/player.o \ -  src/bowser.o      src/global.o    src/levels.o      src/spiny.o  \ -  src/enemy.o       src/goomba.o    src/main.o        src/turtle.o \ -  src/firecircle.o  src/goombabig.o src/menu.o        src/SDL_gfxPrimitives.o \

      -  src/flybrett.o    src/opengl.o    src/iniparser.o   src/unixutils.o \ -  src/functions.o   src/keyinput.o  src/particle.o
      +OBJS    = src_game/bonus.o src_game/gamepad.o src_game/killerblume.o src_game/p
      layer.o \ +  src_game/bowser.o      src_game/global.o    src_game/levels.o      src_game/s
      piny.o  \ +  src_game/enemy.o       src_game/goomba.o    src_game/main.o        src_game/t
      urtle.o \ +  src_game/firecircle.o  src_game/goombabig.o src_game/menu.o        src_game/S
      DL_gfxPrimitives.o \ +  src_game/flybrett.o    src_game/opengl.o    src_game/iniparser.o   src_game/u
      nixutils.o \ +  src_game/functions.o   src_game/keyinput.o  src_game/particle.o
      TARGET  = megamario

      $(TARGET): $(OBJS)
      @@ -37,4 +37,4 @@
              done

      clean:
      -       rm -f $(OBJS) $(TARGET) *~ src/*~
      +       rm -f $(OBJS) $(TARGET) *~ src_game/*~

      ###########################

      Built OK and tested on Yellow Dog Linux 6.1 / Playstation 3.  :-)

      high quality mp3's play back as mostly static for me ... endian issue?  midi music OK.

      Thanks,

      billb
      http://forums.ps3bodega.com