1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice

Release Simsu

Discussion in 'Software Releases' started by Magic Sam, Sep 11, 2016.

  1. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi all :)

    I have "ported" (a simple compilation, that's it) Graeme Gott's Simsu to the Pandora !
    [​IMG]

    Grab it here while it's hot !
    TODO:

    - Make widescreen mode fit the Pandora resolution ?
    - Make the PND lighter (60MB+ for a sudoku game...)

    Cheers, Magic Sam
     
    Last edited: Sep 12, 2016
    Tags:
    Eight Bit, el joker and levi like this.
  2. jeeks

    jeeks Very Active Member

    Joined:
    Mar 19, 2013
    Messages:
    242
    Location:
    Germany
    hi :3

    do i need any additional things to start this? for some reason, it won't start :(
     
  3. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi @jeeks :)

    Thanks for your report !

    Could you please post the content of your /tmp/pndrun_simsu-magicsam.out here, for debugging purposes ?

    Cheers, Magic Sam
     
  4. jeeks

    jeeks Very Active Member

    Joined:
    Mar 19, 2013
    Messages:
    242
    Location:
    Germany
    okay, here it is :)

    Code:
    =======================================================================================
    PND             : /media/mmcblk1p1/pandora/menu/simsu-magicsam.pnd
    PND_FSTYPE      : Squashfs
    APPDATADIR      : /media/mmcblk1p1/pandora/appdata/simsu-magicsam
    APPDD_FSTYPE    : vfat
    PND_CPUSPEED    : <unset>
    EXENAME         : run.sh
    ARGUMENTS       : <unset>
    =======================================================================================
    [ START ]--- Mount the PND ----------
    Mounting : mount -t squashfs -o ro "/dev/loop0" "/mnt/utmp/simsu-magicsam"
    Mounting the Union FS : mount -t aufs -o exec,noplink,dirs="/media/mmcblk1p1/pandora/appdata/simsu-magicsam=rw+nolwh":"/mnt/pnd/simsu-magicsam=rr" none "/mnt/utmp/simsu-magicsam"
    [SUCCESS]--- Mount the PND ----------
    [ START ]--- Starting the application ( run.sh  ) ----------
    simsu: symbol lookup error: /mnt/utmp/simsu-magicsam/lib/libIMGegl.so: undefined symbol: PVRSRVCreateRecursiveMutex
    [ FAILED]--- Starting the application ( run.sh  ) ----------
    [ START ]--- Restoring the frame buffer status ----------
    [SUCCESS]--- Restoring the frame buffer status ----------
    [ START ]--- Restoring nub mode ----------
    [SUCCESS]--- Restoring nub mode ----------
    [ START ]--- uMount the PND ----------
    [ START ]--- Waiting the Union to be available ----------
    [SUCCESS]--- Waiting the Union to be available ----------
    rmdir: failed to remove `/mnt/utmp/simsu-magicsam': Device or resource busy
    [ START ]--- Waiting the PND mount dir to be free ----------
    [SUCCESS]--- Waiting the PND mount dir to be free ----------
    cleanup done
    [SUCCESS]--- uMount the PND ----------
    =======================================================================================
    Return code is : 3
    
     
  5. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    @jeeks : thanks :)

    What is your SGX driver version ? I'm running SGX driver 4.10 (on a Rebirth unit), and I don't have such an issue...

    Cheers, Magic Sam
     
  6. jeeks

    jeeks Very Active Member

    Joined:
    Mar 19, 2013
    Messages:
    242
    Location:
    Germany
    @Magic Sam where do i find the version number?
     
  7. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,640
    Location:
    France, near Lyon
    @Magic Sam : you should not put that lib in the PND. Thoses are system libs and should stay in the firmware (they may also be dependant on the Model, plus they are dependant on the version driver).

    There is a script in codeblocks, called "copy_libs.sh" that can copy libs without copiying those from the firmware. Cd to your lib folder and use copy_libs.sh PATH/TO/PROGRAM to copy needed dependancie (it's based on analysing ldd, so it will not do miracles with everything that do dlopen things).
     
  8. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    @ptitSeb : thanks for your help ! I know about copy_libs.sh, and I normally always use it. I don't know why I did differently for simsu...:$

    The lib directory looks like this:
    Which libraries should I remove in your opinion ?

    Cheers, Magic Sam
     
  9. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,640
    Location:
    France, near Lyon
    I think those one should be removed:
    Code:
    libGLESv2.so
    libIMGegl.so
    libdl.so.2
    librt.so.1
    

    Also, to save some space, but it's not mandatory, you can remove thoses:
    Code:
    gstreamer-0.10  (yes, the entire folder)
    libgstapp-0.10.so.0
    libgstaudio-0.10.so.0
    libgstbase-0.10.so.0
    libgstinterfaces-0.10.so.0
    libgstpbutils-0.10.so.0
    libgstphotography-0.10.so.23
    libgstreamer-0.10.so.0
    libgstvideo-0.10.so.0
    
    The version in the firmware will probably be enough
     
  10. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    @jeeks and @ptitSeb : thanks for your help guys :)

    Could you please try the following PND ?

    http://sviscapi.chaosnet.org/simsu-magicsam.pnd

    N.B: scp should be complete in ~10 minutes, please wait some time before attempting to download that file.

    The file is ready to be downloaded now !
    I removed some unnecessary / conflicting libs from that package. If everything works correctly, I'll push it to the Repo :)

    Cheers, Magic Sam
     
    Last edited: Sep 16, 2016
  11. jeeks

    jeeks Very Active Member

    Joined:
    Mar 19, 2013
    Messages:
    242
    Location:
    Germany
    @Magic Sam works fine now! thanks! :D
    sorry for the delayed answer, filezilla and my sd card reader both trolled me and corrupted the file a few times :mad: then it worked and i played a few rounds :$
     
  12. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi all :)

    Build #2 is on the Repo !
    Cheers, Magic Sam
     
    jeeks likes this.
  13. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi all :)

    Build #3 is on the Repo:

    http://repo.openpandora.org/?page=detail&app=simsu-magicsam
    Cheers, Magic Sam
    --- Double Post Merged, Aug 7, 2017, Original Post Date: Aug 7, 2017 ---
    Hi again,

    @ptitSeb : I'm sorry to bother you with this, but I just noticed the following errors in the pndrun.out:
    Should I add "export XDG_RUNTIME_DIR=/mnt/utmp/simsu-magicsam" to the runscript ? And regarding this WSEGL thing, do you think an "export LIBGL_FB=1" would help ?

    Cheers, Magic Sam
     
  14. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi all,

    I did some tests this morning in the train, and exporting XDG_RUNTIME_DIR solved the issue:
    I'll update this package ASAP (tonight ? )

    Cheers, Magic Sam
     
    Last edited: Aug 8, 2017
  15. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    7,640
    Location:
    France, near Lyon
    @Magic Sam : The WSEGL error is because Qt tries to use GLES2 acceleration bucannot because you use an SGX driver were X11 windowed mode is not supported (4.4+). The game is just 2D, so GL acceleration is not mandatory...
    LIBGL_FB will have no effect as Qt is built against GLES2, not GL.
     
    Magic Sam likes this.
  16. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi all :)

    Build #4 is on the Repo:

    http://repo.openpandora.org/?page=detail&app=simsu-magicsam
    EDIT: it looks like other Qt packages exhibit the same issue. @ptitSeb: I think Otter browser does create a runtime-yourusername in /tmp. Could you please double check on your end ?

    EDIT 2: @canseco : so does QMMP...

    Cheers, Magic Sam
     
    Last edited: Aug 8, 2017
  17. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    7,902
    Location:
    Somewhere off the coast of the EU
    /tmp is a ramdisk, so nothing written there persists a reboot, and it isn't a problem. Unless you mean ~/tmp, in which case I've not got one of those despite using QMMP since my last reflash, I think.

    So, I tried this out. Works well, though it'd be nicer if it actually fit on the screen with the standard xfce environment. I don't do QT so I don't know how easy it would be to e.g. move the buttons over the the right, or shrink the grid.

    Edit: Hmm, your screenshots in the FP suggest I can do that already somehow. Should that be made default? In the mean time, I'll have a look at the options.
     
    Magic Sam likes this.
  18. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi all !

    @levi : thanks for the explanation :)

    @ptitSeb and @canseco : sorry for the noise + useless latest build...

    EDIT : @levi : go to Settings > Widescreen layout + maximize window. I'll make it a default in the next build :)

    Cheers, Magic Sam
     
    Last edited: Aug 10, 2017
    canseco likes this.
  19. levi

    levi Still fresh, damnit!

    Joined:
    Oct 6, 2008
    Messages:
    7,902
    Location:
    Somewhere off the coast of the EU
    Thanks, I've found widescreen setting now (and it can be set in the config by adding Widescreen=true to the [general] section). Unfortunately, it still doesn't quite fit my Pandora's screen with the highlight button being cropped by the system panel, and the 9 button being entirely obscured, but at least now pen and pencil are unobscured, and the play area remains uncropped, so if you use the the d-pad and keyboard to set squares this is much better.

    And this will fit without trouble on the higher resolution pyra screen, if you bring it to that format. So there's limited benefit in making it fit the Pandora perfectly these days, I suspect.
     
  20. Magic Sam

    Magic Sam Forever Homebrew

    Joined:
    Aug 10, 2007
    Messages:
    1,879
    Location:
    Ankh-Morpork
    Hi all :)

    Build #5 in on the Repo (still uploading):

    http://repo.openpandora.org/?page=detail&app=simsu-magicsam

    New in build #5

    - Removed previous useless changes
    - Provided a default configuration file with widescreen mode ON (you still have to maximize the window though)
    - Replaced initial seed from my configuration file with a "random enough large number" (nanoseconds, i.e `date +%N`)

    Cheers, Magic Sam
     
    Last edited: Aug 20, 2017
    canseco likes this.

Share This Page

Loading...