Results 1 to 7 of 7

Thread: Problems to configure Ubuntu Linux + FPC + JEDI-SDL

  1. #1

    Problems to configure Ubuntu Linux + FPC + JEDI-SDL

    System: Athon AMD 1800 with Ubuntu 7.10 512 RAM, GeForce 2 MX
    IDE: none
    Library: JEDI-SDL

    Sorry to bother you guys with such a simple question... but I swear I tried it many many times with no success... :-( The instructions to configure SDL with FPC are really clear, but it just dont work... I´m sure I´m just doing something stupid, but can anyone give me a clue?

    I´m using Ubuntu 7.10 and installed FPC from the apt-get repository. I download JEDI-SDL and unziped it to /home/marcio/JEDI-SDL/

    Them I edit the /etc/fpc.cfg file and add this:

    -Fi/home/marcio/JEDI-SDL/SDL/Pas

    -Fu/home/marcio/JEDI-SDL/SDL/Pas
    -Fu/home/marcio/JEDI-SDL/SDL_Mixer/Pas
    -Fu/home/marcio/JEDI-SDL/SDL_Image/Pas
    -Fu/home/marcio/JEDI-SDL/SDL_Net/Pas
    -Fu/home/marcio/JEDI-SDL/SDL_ttf/Pas
    -Fu/home/marcio/JEDI-SDL/smpeg/Pas
    -Fu/home/marcio/JEDI-SDL/SFont/Pas
    -Fu/home/marcio/JEDI-SDL/SDL_Sound/Pas
    -Fu/home/marcio/JEDI-SDL/SDLMonoFonts/Pas
    -Fu/home/marcio/JEDI-SDL/SDLSpriteEngine/Pas
    -Fu/home/marcio/JEDI-SDL/SDLFilter/Pas
    -Fu/home/marcio/JEDI-SDL/ODE/Pas

    And the path /home/marcio/JEDI-SDL/ is correct and contains all those subdirectorys.

    Them I tried to compile some demos using:
    fpc -Sd name.dpr

    But the FPC returns an error saying he could not find the sdl unit.

    Them I removed the FPC from apt-get and installed the oficial version (downloading the tar file and running the install.sh script). Same problem.......

    Am I missing something?? Please help! I swear I´ll write a bunch of cool open source games with it

    Thanks a lot,
    Marcio

  2. #2

    Problems to configure Ubuntu Linux + FPC + JEDI-SDL

    Hi

    First of there is no need to add each path seperately.

    you just need

    -Fi/home/marcio/JEDI-SDL/*/Pas

    -Fu/home/marcio/JEDI-SDL/*/Pas

    second you're better of using the -Mdelphi rather that -Sd.

    After that just double check the directory paths, keep an eye out for case sensitivity, I think this zip file was called JEDI-SDLv1.0 so it may have extracted to JEDI-SDLv1.0.

    I also believe there is a fpc_install.sh shell script to install the library, it might be worth giving that a try?
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  3. #3

    Problems to configure Ubuntu Linux + FPC + JEDI-SDL

    Thanks. I´m sure the path was right. But I´ll try again as soon as I get home.

    The install script did not work. Said something like "unexpected fi". I removed the "fi" line, and got the same error on another line. Removed the another line and got an error saying "expected fi" in the end of the script.. hehehe

    I´ll try the -Mdelphi and the *. Thanks a lot for the reply.

  4. #4

    Problems to configure Ubuntu Linux + FPC + JEDI-SDL

    Stay away from the shell script for now as I never finished writing it as I did not have the required knowledge to do it properly. Hence why you got so many errors.

    Hmm, it seems a post I sent last week about directory location was lost.

    you may want to try
    -Fi~/marcio/JEDI-SDL/*/Pas

    -Fu~/marcio/JEDI-SDL/*/Pas

    just to be sure that it's picking up the "home" dir correctly.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  5. #5

    Problems to configure Ubuntu Linux + FPC + JEDI-SDL

    It´s working fine under linux now! But the file sdl.pas was missing from the .zip file.... I downloaded it from the internet and put it at /SDL/Pas and everything worked fine (both windows and linux)

    Thanks.

  6. #6

    Problems to configure Ubuntu Linux + FPC + JEDI-SDL

    I just noticed that too. The latest version of missing sdl.pas.
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  7. #7

    Problems to configure Ubuntu Linux + FPC + JEDI-SDL

    I noticed this last night as well so a new Release Candidate has not been uploaded which contains the missing sdl.pas as well as fastevents.pas a new unit that mason wheeler ported.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

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
  •