DerSaxxe / PBSokoban

A sokoban game for PocketBook ereader
6 stars 2 forks source link

Nine years later… #1

Open Skeeve opened 3 years ago

Skeeve commented 3 years ago

Hi. I'm unable to compile this :( are there any instructions available?

What's the base requirements for a machine to be able to compile sokoban?

DerSaxxe commented 3 years ago

Oh... 9 years ago I had a PocketBook 622 reader. And I never tried it again to compile sokoban for newer PocketBook devices. But you need the SDK from http://pocketbook-free.sourceforge.net/en/index.shtml

I compiled it just now with the following steps at Linux for PocketBook Pro:

  1. Download and extract Linux SDK 2.0.6 for PocketBook Pro to a new directory (e.g. /home/user/pocketbook)
  2. Create a new directory there (e.g. /home/user/pocketbook/projects)
  3. Go to this directory and run "git clone https://github.com/SIRSteiner/PBSokoban.git"
  4. Go to the PBSokoban directory (/home/user/pocketbook/projects/PBSokoban)
  5. Run ./makearm.sh

That's it.

Skeeve commented 3 years ago

Unfortunately that doesn't seem to work. I fear it's a 64bit vs. 32bit issue.

root@f4a3ac7fb752:/pocketbook/projects/PBSokoban# ./makearm.sh 
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build for ARM Release
-- Configuring done
-- Generating done
-- Build files have been written to: /pocketbook/projects/PBSokoban
[ 25%] Generating images/images.c
Error: canot stat /pocketbook/projects/PBSokoban/images/box30.bmp

CMakeFiles/PBSokoban.app.dir/build.make:61: recipe for target 'images/images.c' failed
make[2]: *** [images/images.c] Error 1
make[2]: *** Deleting file 'images/images.c'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/PBSokoban.app.dir/all' failed
make[1]: *** [CMakeFiles/PBSokoban.app.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
root@f4a3ac7fb752:/pocketbook/projects/PBSokoban# 
Skeeve commented 3 years ago

And when I replace pbres with a newer version, that part works, just to fail with:

[ 50%] Building C object CMakeFiles/PBSokoban.app.dir/src/PSokoban.c.o
cc1: error: /pocketbook/projects/PBSokoban/src: Value too large for defined data type
cc1: error: /pocketbook/projects/PBSokoban/src/PSokoban.c: Value too large for defined data type
CMakeFiles/PBSokoban.app.dir/build.make:66: recipe for target 'CMakeFiles/PBSokoban.app.dir/src/PSokoban.c.o' failed
make[2]: *** [CMakeFiles/PBSokoban.app.dir/src/PSokoban.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/PBSokoban.app.dir/all' failed
make[1]: *** [CMakeFiles/PBSokoban.app.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
root@f4a3ac7fb752:/pocketbook/projects/PBSokoban# 
DerSaxxe commented 3 years ago

I don't know if I can help you because I am not the "original" developer. But I want to try helping. At first I want to know which SDK did you use?

Skeeve commented 3 years ago

I tried to use the one offered on http://pocketbook-free.sourceforge.net, but that failed.

So I tried this one: https://github.com/pocketbook/SDK_6.3.0

As I had some success now with that one compiling "sh_ivtool" by writing my own cmake file, I will try that approach now for pbSokoban and tell my progress here.

Thanks for your support.

diegopau commented 5 months ago

@Skeeve did you ever have any luck with compiling this? I think it would also work in my Pocketbook InkPad Color 3 if it is able to compile with SDK_6.3.0. Now there is an even newer SDK https://github.com/pocketbook/SDK_6.3.0/releases/tag/6.8

Skeeve commented 5 months ago

To be honest, @diegopau, I can't remember. In fact: I completely forgot about this. I only know that I never ever compiled Sokoban for the Pocketbook.

Last thing for Pocketbook I did was preparing a GO SDK. But It's missing any graphical output.

Skeeve commented 5 months ago

P.S. I just saw issue https://github.com/pocketbook/SDK_6.3.0/issues/4 It links to a dockerimage which might be useful for you.

diegopau commented 5 months ago

@Skeeve Thank you for the quick reply. I will take a look to the Docker image!