ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Other Ports > Raspberry Pi Goto page Previous  1, 2, 3  Next
Raspberry Pi
  Author    Thread Reply to topic
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 805
 

"fatal: Not a git repository (or any of the parent directories): .git "

Are you using this or the zip equivalent?
http://prdownloads.sourceforge.net/scummvm/scummvm-1.7.0.tar.gz?download

I would start with getting the code by "git clone" instead and see if that fixes your problem...:
http://wiki.scummvm.org/index.php/Developer_Central#Getting_started

export CXXFLAGS="-Wl,--no-keep-memory" will not help with the issues you indicate as that linker problem manifests as an operating system Out Of Memory error...

 Reply with quote  
Post Fri Nov 28, 2014 2:09 am 
 View user's profile Send private message
Szymon_Zy



Joined: 26 Nov 2014
Posts: 9
 

Compiled properly!

It was MY FAULT! I did export CXXFLAGS and ..... then run screen! Screen run brand new copy of bash, and there were no CXXFLAGS! In main bash CXXFLAGS existed.

I catch up that config.mk does not include "-Wl,--no-keep-memory"

Thanks for help! This git commment is not an error. There is git.ignore.

Anyway the source is clean and proper way to compile it was:
first run screen and
1. make clean
2. export CXXFLAGS="-Wl,--no-keep-memory"
3. ./configure
4. make
5. make install

And it seems to work! scummvm --version shows

code:

ScummVM 1.7.0 (Nov 27 2014 23:41:57)
Features compiled in: Vorbis FLAC MP3 ALSA SEQ TiMidity RGB zLib FreeType2 JPEG PNG




I'm currently playing with my pi remotely so will check at home if it really works!

Update:
Works ok! However, Sfinx is detected as Soltys, so i have to use daily snapshot to play this game. I still have Soltys on floppies (probably box is still somewhere around).
 Reply with quote  
Post Fri Nov 28, 2014 11:32 am 
 View user's profile Send private message
Suboshi



Joined: 26 Mar 2009
Posts: 5
 

I'm working on getting ScummVM going as well on a new Raspberry Pi, I just wanted to check - does your sound work fine with the rebuild of 1.7 and do you go through HDMI or through analog?

I'm trying to use it with sound through HDMI channels. I've verified all other components are working - the various sound tests from command line, hello_audio.bin, other emulators, etc. I have not been able to get it working yet for ScummVM though. I haven't yet recompiled to the newer version but that's probably what I will try next. If anyone has any other tips for forcing sound through HDMI that would be appreciated too Smile

 Reply with quote  
Post Mon Dec 22, 2014 6:04 am 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 805
 

Apart from MIDI music, which is sent to ALSA directly:
https://github.com/scummvm/scummvm/blob/master/backends/midi/alsa.cpp

The rest of the sound is normal digital audio which is sent out using libSDL:
https://github.com/scummvm/scummvm/tree/master/backends/mixer/sdl

I would suggest that your libSDL is not configured to output this to ALSA correctly... or if it is, then you need to configure the correct ALSA output device i.e. HDMI card as the pcm.default. See:
http://elinux.org/R-Pi_Troubleshooting#Sound
http://www.alsa-project.org/main/index.php/Asoundrc

I think you will probably want to set SDL_AUDIODRIVER and AUDIODEV as per here to sort out libSDL for HDMI:
http://www.libsdl.org/release/SDL-1.2.15/docs/html/sdlenvvars.html

Using aplay -L should list the available ALSA cards.

Hope this helps.

 Reply with quote  
Post Mon Dec 22, 2014 7:24 am 
 View user's profile Send private message
Suboshi



Joined: 26 Mar 2009
Posts: 5
 

Thank you very much for the links and details, digitall! That was extremely informative. I didn't actually have to make any changes, but I am glad to learn more about just how that works.

I looked over my settings and they looked good, at least initially, so before I started making any changes to the sound settings I purged the default package (ScummVM 1.4.1) from the system and then downloaded/compiled/installed version 1.7.0. That did fix the sound issues just fine, I tried two different games and both worked great!

I do have one remaining issue, and I'll be happy to start a new thread if you would prefer - I hate to hijack someone else's thread, even an old one Smile But, my only remaining issue now is that the Raspberry Pi locks up whenever I try to "exit" from ScummVM 1.7.0. Whether I try to exit it back to Emulation Station, or perform a device reboot, or even a shutdown -h now to stop it entirely, it will lock up - I am unable to SSH into it or anything until I unplug it and replug it in. Naturally that's not ideal since eventually FSCK is going to find problems. I haven't had a chance yet to look for logs, but if you can point me in the direction of where the most likely ScumMVM logs are (unless it's just the /var/log/ logs) I'll be happy to reproduce the issue and review the logs, and post the details here if nothing stands out to me immediately.

Thanks again for fantastic software!

 Reply with quote  
Post Thu Dec 25, 2014 9:53 am 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 805
 

ScummVM is a normal user application. Nothing it does should be able to crash your operating system or hardware... that would point to an operating system, device driver or hardware stability issue. See here for help debugging this:
http://elinux.org/R-Pi_Troubleshooting

I would suggest that you ensure that you have updated your operating system packages and the RPi bootloader and firmware to the latest versions:
http://www.raspberrypi.org/documentation/raspbian/updating.md

If you have a B+ model with a good USB PSU, then you shouldn't have hardware issues, but earlier models can have problems with USB device power, especially if the PSU is underated and a powered hub such as a Pi Hub are not used.

Apart from this, you can try running ScummVM under a debugger such as gdb over an SSH link and see if this provides any output or backtrace at the point of failure:
http://wiki.scummvm.org/index.php/Debugging_ScummVM

 Reply with quote  
Post Thu Dec 25, 2014 10:41 am 
 View user's profile Send private message
Angelus3K



Joined: 19 Nov 2005
Posts: 73
 

I can confirm ScummVM exits back to Emulation Station normally for me.
Is it possible for you to share your 1.7 build or does it need to be compiled on each Pi itself?

 Reply with quote  
Post Fri Dec 26, 2014 6:56 pm 
 View user's profile Send private message
Suboshi



Joined: 26 Mar 2009
Posts: 5
 

Thanks again for your help! Sorry for the late response - the holidays are of course crazy, especially with having two little kids. Smile

I will check on that suggestion for debugging scummVM over GDB tomorrow, I am usually SSH'd into the Pi B+ anyway while configuring it. That shouldn't be a problem. Are there any other logs that ScummVM generates I should be aware of on these? I checked /var/log/ and didn't see anything that stood out right after I replicated the issue - nothing in /var/log/messages or such.

It probably is something straightforward like a hardware misconfig that ScummVM gets mad about, possibly related to sound or video. I am typically able to exit any of the other emulators just fine - NES, Genesis, etc. from a ROM and back out to the main menu or OS without a problem. It's just ScummVM that is acting strange, but I am sure it is something specific to my system or configuration. I've used Scumm on my Windows machine before and it works just fine there too.

I also replicated the issue simply existing out of a particular game (in this case Quest for Glory III) rather than simply trying to exit out of ScummVM itself. I was trying to keep an eye on logs, but it locked up and killed my SSH session while I exited out, and nothing showed up in the logs afterwards, making me think the syslog daemon locked up simultaneously.

Thanks again for your help, and Happy Holidays to everyone!!

 Reply with quote  
Post Wed Dec 31, 2014 6:09 am 
 View user's profile Send private message
Angelus3K



Joined: 19 Nov 2005
Posts: 73
 

I guess I'll have to try and figure out how to compile myself.

 Reply with quote  
Post Wed Dec 31, 2014 8:27 am 
 View user's profile Send private message
Angelus3K



Joined: 19 Nov 2005
Posts: 73
 

Does anyone have any tips? I'm a Linux noob.

Cloned the ScummVM git
Ran "./configure"
Ran "Make clean"
Ran "Make"

After several hours I got make recipe for target failed and ScummVM === error 1

Any ideas what went wrong? ScummVM 1.4.1 is installed and working but I want the SCI engine.

 Reply with quote  
Post Fri Jan 02, 2015 9:45 am 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 805
 

Angelus3K: Well for a start, you could try reading the previous messages on this thread as the solution was clearly listed:
"One tip, if you want to try building the latest source code version on your RPi, you may need to pass CXXFLAGS="-Wl,--no-keep-memory" to the configure to ensure you don't get an Out Of Memory error while linking... This is a general issue with GCC ld linker on swapless/memory constrained systems. The other solution is to mount a swap device on external HDD."

This is also clearly listed on the unofficial ports page I also linked earlier:
http://wiki.scummvm.org/index.php/Platforms#Unofficial_Platforms

 Reply with quote  
Post Fri Jan 02, 2015 9:59 am 
 View user's profile Send private message
Angelus3K



Joined: 19 Nov 2005
Posts: 73
 

Apologies. I did see that someone else had that issue but was unsure if I had the same problem as I didn't see any out of memory errors but I'll try following the steps you mentioned.

 Reply with quote  
Post Fri Jan 02, 2015 10:04 am 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 805
 

Check /var/log/kern.log. You should see something like:
Jun 4 07:41:59 plumbr kernel: [70667120.897649] Out of memory: Kill process 29957 (java) score 366 or sacrifice child
Jun 4 07:41:59 plumbr kernel: [70667120.897701] Killed process 29957 (java) total-vm:2532680kB, anon-rss:1416

If this was OOM.

 Reply with quote  
Post Fri Jan 02, 2015 10:10 am 
 View user's profile Send private message
Angelus3K



Joined: 19 Nov 2005
Posts: 73
 

Ok I typed

make clean (got a whole screen of jargon)
export CXXFLAGS="-WI,--no-keep-memory" (no messages where shown, is this normal?)
./configure
make

It's now starting to build again. I'll report back later. I'm assuming I might have done the flag export thing wrong as I typed it exactly as above and hit enter but no message were shown I just got the command prompt on the next line.

Sorry if I'm sounding really stupid but is that all I need to do? If someone could provide idiot proof steps on how to export the CXXFLAGS i.e. Exactly what to type.


I've got this far by myself. I can follow instructions but don't understand what is going on.

EDIT: I checked the kern log and YES it was an out of memory error. Hopefully I can this CXXFLAGS thing to work!!

 Reply with quote  
Post Fri Jan 02, 2015 10:14 am 
 View user's profile Send private message
digitall
ScummVM Developer


Joined: 02 Aug 2012
Posts: 805
 

No, that is completely normal and fine.

You are setting an Environment Variable:
https://en.wikipedia.org/wiki/Environment_variable

May I suggest that you should try going through a basic Unix/Linux starter course, so you have a familarity with the basic concepts?
http://www.ee.surrey.ac.uk/Teaching/Unix/

 Reply with quote  
Post Fri Jan 02, 2015 10:24 am 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 
Goto page Previous  1, 2, 3  Next


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge