Results 1 to 7 of 7

Thread: Freepascal/JEDI-SDL cross-platform rules!

  1. #1

    Freepascal/JEDI-SDL cross-platform rules!

    I've just ported my runtime game engine to Linux and OS X with Freepascal + JEDI-SDL and it worked with a minimum of trouble!

    Screenshots of my engine running on Windows, Mac OS X, Ubuntu Linux:




    The combination of Freepascal+JEDI-SDL+VMWare makes cross-platfom development really possible for a single developer with a single PC
    A big "thank you" to the FP/JEDI-SDL team!
    ZGameEditor - Develop 64kb games for Windows.
    Thrust for Vectrex - ROM-file and 6809 source code.

  2. #2

    Freepascal/JEDI-SDL cross-platform rules!

    Hey, this looks great. Which IDE did you use on Mac OS X? Lazarus or XCode? or was it all command line?
    <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 =-

  3. #3

    Freepascal/JEDI-SDL cross-platform rules!

    It is all command line. When I wanted to make code changes I did it on my windows machine and then transfered the file to the target platform and recompiled from a terminal window. For no other reason than I didn't want to learn new keyboard shortcuts in a text editor . XCode integration seemed to work quite well when I took a quick look at it.
    ZGameEditor - Develop 64kb games for Windows.
    Thrust for Vectrex - ROM-file and 6809 source code.

  4. #4

    Freepascal/JEDI-SDL cross-platform rules!

    Could you provide some more background info?

    E.g. is having a pascal source using opengl and sdl enough for recompiling on linux and/or osx or do the sourcefiles stil need to be edited for other platforms?

    Also is your osx ppc or x86 based or doesn't that matter?
    http://3das.noeska.com - create adventure games without programming

  5. #5

    Freepascal/JEDI-SDL cross-platform rules!

    I wanted to try this once too but my Ubuntu doesn't know how to use ATI compatible drivers, and so no hardware acceleration. Tried about everything different forums and sites suggested.

  6. #6

    Freepascal/JEDI-SDL cross-platform rules!

    Quote Originally Posted by noeska
    Could you provide some more background info?

    E.g. is having a pascal source using opengl and sdl enough for recompiling on linux and/or osx or do the sourcefiles stil need to be edited for other platforms?

    Also is your osx ppc or x86 based or doesn't that matter?
    This is a good guide:

    http://wiki.freepascal.org/index.php/FPC_and_SDL

    My code runs on x86, I haven't tried compiling for PowerPC. Freepascal have separate installations for x86 and ppc. JEDI-SDL should work with both I think.

    The only thing I needed to change in my source files was a reference to the "\"-path separator in filenames (which is "/" on Linux/OS X). Otherwise it compiled without changes. Even a tiny bit of assembler code that I have works because it is all intel-platforms. Of course I have used no Windows specific units in my code.
    ZGameEditor - Develop 64kb games for Windows.
    Thrust for Vectrex - ROM-file and 6809 source code.

  7. #7
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Freepascal/JEDI-SDL cross-platform rules!

    The "/" path separator sould work for Windows as well. It's the more 'cross-platform' way to denote your game's relative paths.

    JEDI-SDL is probably one of the most flexible libraries for cross-platform game development in Pascal. Save maybe some of the OpenAL/OpenGL headers around.

    Great compilation image btw!
    Jason McMillen
    Pascal Game Development
    Co-Founder





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
  •