Raspberry pi

Apr 7, 2019, 7:25 am
#1
Joined: Mar 31, 2019
Occupation: Salt miner
Location: Europe
Posts: 5
Hi!

I'm trying to compile IVAN and run it on my raspberry pi.
But the game freezes during the loading of the map when the pentagram spins behind the frog.

Any idea why?
Did anyone else try to run it on a RPi?
Apr 7, 2019, 8:54 pm
#2
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
Awesome project!

It might have something to do with the ARM chipset being functionally different somewhere. Possibly need to modify the source code to make it fully compatible. Not an impossible task, but I personally wouldn't know where to begin.

What operating system are you running on your RPi? What compiler toolchain are you using to build for RPi?

Are you compiling the GitHub source? That has quite a few additional dependencies Try compiling IVAN CVS instead first to see if that works: https://attnam.com/projects/official/IVAN-CVS
IVAN CVS uses SDL1.2, so use the 'libsdl1.2-dev' library on e.g. Raspbian.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Apr 14, 2019, 2:47 pm
#3
Joined: Mar 31, 2019
Occupation: Salt miner
Location: Europe
Posts: 5
What operating system are you running on your RPi?
Retropie, which is Raspbian underneath.

What compiler toolchain are you using to build for RPi?
I would guess the default one. How can I check?

Are you compiling the GitHub source? That has quite a few additional dependencies
Yes, I realize that now. I saw the INSTALL. I will try compiling the CVS and see if it works. If it does, I will make sure to double check I have all the requirements listed on github and try again.

Thanks!
Apr 14, 2019, 2:58 pm
#4
Joined: Mar 31, 2019
Occupation: Salt miner
Location: Europe
Posts: 5
CVS installation works fine.
What is the difference between that one and the one on github?
Apr 22, 2019, 10:06 pm
#5
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
daniel wrote
CVS installation works fine.
What is the difference between that one and the one on github?

That's good that the CVS compiles and runs on RPi.

The github version has quite a few more dependencies than before. New things like libpng, zlib, plus a couple of home baked things like xbrz scaling, fantasyname generator, music and sound, and possibly some other things I have failed to mention. It's not guaranteed that the additional libraries and bespoke stuff will work with the RPi compiler toolchain, or even if it compiles the application may not be compatible with either the chipset architecture or device drivers.

One cool thing to do would be to clone the git repository and progressively work backwards (or forwards) to find the last version of IVAN that compiles and runs on RPi. That should give an indication of what new features definitely break the game on RPi.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Apr 24, 2019, 2:00 pm
#6
Joined: Mar 31, 2019
Occupation: Salt miner
Location: Europe
Posts: 5
Thanks.
Seems like the CVS version is dated in 2009, so I would assume it is missing a lot of features.
I might do it in case I have the time to spare.
Could be interesting. I'll let you know if I make any progress.
Apr 24, 2019, 2:12 pm
#7
Joined: Dec 2, 2007
Location: New Attnam
Interests: bananas
Posts: 2,299
Instead of working backwards, attack it like a binary search

Try a commit from 2014 - halfway between 2009 and 2019
If it works, you know it broke between 2014 and 2019, so next try one from 2017
Otherwise, you know it broke between 2009 and 2014, so try one from 2012
Rinse and repeat

Each time you will split the timeline in half and you'll end up finding the problem much faster
Apr 25, 2019, 3:24 pm
#8
Joined: Mar 31, 2019
Occupation: Salt miner
Location: Europe
Posts: 5
> binary search
Of course.
But, that assumes that every commit builds and runs.
I haven't had the time to explore the history yet. If there are release tags or something similar that would guarantee to build, those could be used as reference points.
I don't think I will have the time in the near future anyway, so don't expect an update soon.
Jump to