Results 1 to 8 of 8

Thread: Compiling on Rasperry Pi

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    So, part two:
    The demo then ran fine, a bit jumpy, but that is to be expected from a £20 computer with little processing power! The exscn3d program, the one with all the spinning cubes would run at around 20 fps - is that due to the low processing power on the RPi, or is it just that allegro is not very fast at 3d? All your examples compiled and ran fine then, except:
    exrotscl wouldn't open and gave the error message 'Could not load inkblot.tga'
    exxfade gave error message 'Error loading image file 'allegro.pcx''
    However, exscn3d, which uses allegro.pcx, ran fine.
    I then copied the contents of the lib directory into a new directory called allegro.pas in /usr/lib/fpc/2.6.0/units/arm-linux , which is where fpc is installed if you use apt-get. From then everything worked and I just needed to add -ap to compile.

  2. #2
    Quote Originally Posted by 3Shrike3 View Post
    I installed allegro with a sudo apt-get install allegro . I then downloaded the allegro.pas file and extracted it to my folder. For some reason the fix.sh script did not work, so I had to manually add target.os,
    May be your Linux doesn't has /bin/sh .

    Quote Originally Posted by 3Shrike3 View Post
    The demo then ran fine, a bit jumpy, but that is to be expected from a £20 computer with little processing power!
    The demo game is very simple, but I didn't optimised it a lot. I'm sure it can run faster, but it needs a profile (AFAIK FPC and GNU profiler don't work together) and better tilemap+sprite rendering.

    Quote Originally Posted by 3Shrike3 View Post
    The exscn3d program, the one with all the spinning cubes would run at around 20 fps - is that due to the low processing power on the RPi, or is it just that allegro is not very fast at 3d?
    As documentation says:
    Quote Originally Posted by Allegro.pas doumentation
    It is not, and never will be, a fully fledged 3d library (the goal is to supply generic support routines, not shrink-wrapped graphics code :-) but these functions may be useful for developing your own 3d code.
    Anyway, it has one of the fastest software based 3D renderer I've seen. It will never beat OpenGL, but beats Mesa in some cases.

    Quote Originally Posted by 3Shrike3 View Post
    All your examples compiled and ran fine then, except:
    exrotscl wouldn't open and gave the error message 'Could not load inkblot.tga'
    exxfade gave error message 'Error loading image file 'allegro.pcx''
    However, exscn3d, which uses allegro.pcx, ran fine.
    I don't understand why exscn3d runs but exxfade fails. I'll see if I can find an explanation.

    Anyway, most of examples runs. That's really cool. I should tell everybody.
    No signature provided yet.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •