I think I may have figured out where I went wrong. On my iPhone the export flag command looked like "-WI (Whiskey India) but on my PC it looks like "-Wl (Whiskey lima) so I think I used i instead of l and the uppercase i (I) looks the same as a lowercase l on my phone.

So of all the stupid things to get tripped up on...

So I've typed:
make clean
export CXXFLAGS="-Wl,--no-keep-memory"
./configure
make

And now it's gonna do its thing for 8 hours. So hopefully it will work this time.

Fri Jan 02, 2015 7:02 pm

Angelus3K

Joined: 19 Nov 2005
Posts: 73

Gonna have to give up.

Even when running

make clean
export CXXFLAGS="-Wl,--no-keep-memory"
./configure
make

I'm still getting the out of memory error.

Thankyou for all the advice.

Sat Jan 03, 2015 8:41 am

digitallScummVM Developer

Joined: 02 Aug 2012
Posts: 899

The CXXFLAGS="-Wl,--no-keep-memory" options only reduces the amount of memory the GCC linker requires, so an OOM is still possible with the full set of engines.

If you just want to play the SCI games, then can I suggest:
./configure --disable-all-engines --enable-engines=sci,sci32 && make clean && make

That will built ScummVM with just the SCI and SCI32 engines.

Another option would be to do a dynamic plugins build using:
./configure --enable-plugins --default-dynamic && make clean && make

This avoid the need to link a hug static binary at the end.

Sat Jan 03, 2015 11:27 am

Angelus3K

Joined: 19 Nov 2005
Posts: 73

Thanks I'll give it a try.

Is it worth changing the RAM split from CPU/GPU 256/256 to 384/128 or is virtual memory the issue and not RAM?

Sat Jan 03, 2015 12:37 pm

digitallScummVM Developer

Joined: 02 Aug 2012
Posts: 899

You could try that, but the issue is mainly the lack of Virtual Memory / Swap.

This affects native compilation on many of the embedded device targets as most have limited RAM i.e. 512M or less and use Flash memory which if used as Swap would wear out fairly quickly and fail.

I guess you should also pass that to LDFLAGS and not CXXFLAGS. CXXFLAGS won't be passed to the linker command.

Sat Jan 03, 2015 6:33 pm

Angelus3K

Joined: 19 Nov 2005
Posts: 73

Yea it complies and when it says Linker is when it aborts.

So if I type

export LDFLAGS="-Wl,--no-keep-memory"

That should help?

I'll also try a USB swap drive.

I take it there's nowhere to get a pre-compiled version of 1.7.0 lol!

Sat Jan 03, 2015 7:06 pm

LordHotoScummVM Developer

Joined: 30 Oct 2005
Posts: 1030
Location: Germany

quote:Originally posted by Angelus3KSo if I type

export LDFLAGS="-Wl,--no-keep-memory"

That should help?

It's worth a try, yes.

Sun Jan 04, 2015 4:00 pm

Angelus3K

Joined: 19 Nov 2005
Posts: 73

quote:Originally posted by LordHoto

quote:Originally posted by Angelus3KSo if I type

export LDFLAGS="-Wl,--no-keep-memory"

That should help?

It's worth a try, yes.

Well I don't know what did it or if it was a mixture but I changed the memory split on the RAM to give the CPU as much as possible and ran both export CXXFLAGS and LDFLAGS and set it off overnight.

This morning when I awoke it had compiled!! I ran make install and got an error but it was a permissions error so just ran sudo make install and it seemed to do it's thing ok!

I haven't yet ran ScummVM to check it loads 1.7.0 as I was SSH'd in from my PC and had to leave for work but I will try it tonight and report back!

Mon Jan 05, 2015 11:24 am

Angelus3K

Joined: 19 Nov 2005
Posts: 73

You guys are legends!! It works!!

Thank you to everyone that helped me.

I must have grabbed the latest daily build as it says I have 1.8.0!!! Are there any juicy updates I should know about in this release?

Again, thank you all. If anyone needs any help compiling for Pi in future just give me a shout.

Mon Jan 05, 2015 4:46 pm

Angelus3K

Joined: 19 Nov 2005
Posts: 73

Just to confirm what the other guy was saying. 1.4.1 exits back to Emulation Station fine in RetroPie but the 1.8.0 git build just crashes the Pi when you try to exit back to Emulation Station. Not a huge issue just requires a restart of the Pi.

Sat Jan 10, 2015 6:25 pm

etimm

Joined: 20 Apr 2015
Posts: 1

I have a question. Is there any way to get a touchscreen working with scummvm? I have a 5" 800x400 HDMI LCD from waveshare. The touchscreen works perfect in raspbian, but in scummvm the cursor jumps along the edges of the screen when I press anywhere on the screen.
This results in Indiana Jones walking to the edges instead of where I touched the screen. Is there a way to get it to work properly?