init.mdef not found

Help
Jack Frost
2011-08-21
2013-05-20
  • Jack Frost
    Jack Frost
    2011-08-21

    After resolving initial compilation issues, when I try to run cubosphere I get:

    > ./cubosphere 
    Using config dir: /home/sp00n/.cubosphere
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: Permission denied
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    STARTING in basedir: .
    SDL_Init returns: 0
    no joystick found
    WARNING: file /usr/local/share/cubosphere/menudefs/init.mdef not found
    ERROR  -> cannot open /usr/local/share/cubosphere/menudefs/init.mdef: No such file or directory
    

    I probably shouldn't have done this, but because I saw permission denied errors, I tried running as root:

    > sudo ./cubosphere 
    root's password:                                                                                                            
    Using config dir: /root/.cubosphere                                                                                         
    STARTING in basedir: .
    SDL_Init returns: 0
    no joystick found                                                                                                           
    WARNING: file /usr/local/share/cubosphere/menudefs/init.mdef not found
    ERROR  -> cannot open /usr/local/share/cubosphere/menudefs/init.mdef: No such file or directory
    

    Any way I can get this to run?

     
  • Exosphere
    Exosphere
    2011-08-22

    Hi,

    as it seems, it is some problem with your sound driver.
    You could try to run (at least for testing purposes)  Cubosphere with

    cubosphere -nosound

    This will not initialize the sound.

    For the second error you should check, if the folder

    /usr/local/share/cubosphere

    exists and if it contains any files. If not so, you might not have run

    sudo make install

    or something like that. To fix this issue, you will at least have to copy the content of the downloaded data/-Directory to /usr/local/share/cubosphere/

    Best regards,
    Chriddo

     
  • Jack Frost
    Jack Frost
    2011-08-22

    I don't know why I didn't look closer at that output.  I hadn't run make install, just compiled it.  I didn't realize I couldn't run it from the main directory.  I ran sudo make install and it runs now.  However I now get two other errors:

    > ./cubosphere 
    Using config dir: /home/sp00n/.cubosphere
    STARTING in basedir: .
    SDL_Init returns: 0
    no joystick found
    Cubosphere - Beta 0.1 - starting
    ###############################################
     Copyright (C) 2009-2011 by the Cubosphere Team
    
     This program comes with ABSOLUTELY NO WARRANTY; for details see readme.
     This is free software, and you are welcome to redistribute it under certain
     conditions; see readme for details. 
    ###############################################
     >config loaded
     >scores loaded
    >OpenGL Initialized
      >GLSL should be supported
    Max. Texture Size set to 1024
    Sound init with Freq(22050), Bits(16), Stereo(2), Buffer(1024) 
    ... 
    ... 
    Channels are 16
    ok
    Initializing Sound returns 1
    Unable to load music file /usr/local/share/cubosphere/music/Ziggurat.mp3 : Module format not recognized
    Entering Main Menu
    

    The sound works, but I don't hear any music track.  (My sound is otherwise working fine).

    Also it outputs "segmentation fault" when I quit:

    Entering Main Menu
    Leaving Cubosphere
    Thanks for playing!
    Segmentation fault
    

    Cool game though!  Kinda reminds me of the bonus stage from Sonic 3 if anyone remembers those.

     
  • Exosphere
    Exosphere
    2011-08-22

    Hi,

    as far as I know, the  "Module format not recognized" errors are related to a missing SMPEG installation, which is an extension for SDL_Sound. Without it, SDL_Sound can't load mp3 files.

    Thanks for reporting the segfault error. It is a common error on many systems and I think, I already know how to fix it. I hope I get it  fixed in the next Beta release.

    Regards and have fun with Cubo