Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Problem with Installation (JEDI-SDL)

  1. #1

    Problem with Installation (JEDI-SDL)

    Hey, Iv recently downloaded JEDI-SDL from http://sourceforge.net/projects/jedi-sdl/, I unzipped it and when I read the Readme file, it says
    Once you have extracted the zip file, simply double click on the "JEDISDLWin32Installer.exe" to have the correct paths added to your respective IDEs.
    However, I could not find such file. The only one there is fpc-install.sh, which I dont know how to use. What am I supposed to do?

    Cheers

  2. #2

    Problem with Installation (JEDI-SDL)

    You have to add path to JEDI_SDL manually in your IDE. If you use FPC from command line use -Fu switch.

    JEDI_SDL is a big package and its source is distributed in lots of subdirectories. My advice is to copy files you need to separate directory and add this directory to your IDE paths.

    For a simple SDL+OpenGL app you will only need following files:
    sdl.pas, jedi_sdl.inc, moduleloader.pas - sdl headers
    gl.pas, glu.pas, glext.pas (glx.pas) - opengl headers

  3. #3

    Problem with Installation (JEDI-SDL)

    Thanks Grudzio!

    It did work, as it stoped saying it couldnt find the right units, but unfortunately now it says there are mistakes in the unit...! lol
    Im downloading the new version of Freepascal because I think my one might be too old so its not doing its work properly!

    Cheers

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

    Problem with Installation (JEDI-SDL)

    Toss up some version numbers here man. We can help you more that way.

    I've not used FPC for my JEDI-SDL stuff, but I can help you get setup on the latest release of Lazarus, if that interests you...

    Oh and please be sure to put the required DLL files into either the same folder as the project or somewhere in the system's 'Path'.

    Not that I'd ever forget to do that, right Dom? [size=9px](inside-joke )[/size]
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    Problem with Installation (JEDI-SDL)

    Quote Originally Posted by WILL
    Toss up some version numbers here man. We can help you more that way.
    Great!

    Ok, here is the history:

    I used Dev-Pascal 1.9.2 in Freepascal mode (in options you can choose Freepascal or GNU Pascal) when I downloaded JEDI-SDL v1.0.
    As I tried to follow the tutorial on http://www.friends-of-fpc.org/tutori...ogl/index.html, the compiler said "Cannot find unit GLU", so Grudzio told me to copy certain files from the JEDI package into the Pascal directory.
    I copied both folders SDL and OpenGL into C:\Dev-Pascal\Units (I renamed OpenGL to OGL so it wouldnt clash with the one already there) and added the two paths in the Dev-Pascal options page.
    When I compiled the code for tutorial10, I got the messages
    jedi-sdl.inc: illegal compiler directive $THREADING
    and twice: glu.pas: identifier not found PGLUBYTE
    and the compiler didnt like the wgl procedures (wglmakecurrent(...), wgldeletecontext(...), and a few others)!

    I was told to download Freepascal, so I did (v.2.0.4), but I find it a pain because it's freaking DOS! I tried compiling and it came up with even more errors!

    What do I do, now

    Quote Originally Posted by WILL
    I can help you get setup on the latest release of Lazarus, if that interests you...
    If that would solve the problem, yes please!

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

    Problem with Installation (JEDI-SDL)

    Ok I'll tell you my exact setup. I use Lazarus, JEDI-SDL (and OpenGL via the JEDI-SDL library) on Windows XP. Thats it! All I really need for cross-platform development.

    To mimic the 'WILL flavor' of game development do the following:

    1) Lazarus Installation: Go to the Project Lazarus site and download Lazarus 0.9.20!

    a. [size=9px](In Windows)[/size] Install to C:\Lazarus as the FPC compiler doesn't support paths with spaces for some reason.

    b. Run it to make sure everything worked fine. If you used all the defaults you should be good to go right out of the box.

    2) JEDI-SDL Installation: Go to the JEDI-SDL project at SourceForge and download JEDI-SDL 1.0 BETA!

    a. Once you've finished downloading, extract the JEDI-SDLv1.0 folder into the location you want to store all your libraries. On my setup I have a folder in My Documents called Pascal Projects and my copy of JEDI-SDL resides there. Either way, just REMEMBER this path, you'll need it in the setup.

    3) Lazarus/JEDI-SDL Setup: Start up Lazarus if you don't already have it open. Create a new project for the purposes of demonstration.

    NOTE: Unfortunately I've not found a way to setup a universal path for all libraries used in Laz so far... Perhaps they'll put this in for 1.0.

    a. In the main menu go to Project -> Compiler Options... and if the Paths tab is not already open go into it now.

    b. In the 'Other Unit Files (-Fu)' field put in the following, substituting my path for the one that you use for your own copy of JEDI-SDL. [size=9px](I recommend using the '...' button. )[/size]

    Code:
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDL\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\OpenGL\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\fmod\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\ODE\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDL_Image\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDL_Mixer\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDL_Net\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDL_Sound\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDL_ttf\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDLFilter\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDLMonoFonts\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDLSpriteEngine\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SFont\Pas\
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\smpeg\Pas\
    c. Now to be able to find the include file put this into the 'Include Files (-Fi)' field substituting the same as you did before:

    Code:
    C:\Documents and Settings\WILL\My Documents\Pascal Projects\JEDI-SDLv1.0\SDL\Pas\
    d. Now in any project you wish to use SDL in simply add 'sdl' to your uses clause as thus:

    [pascal]uses
    sdl;[/pascal]


    Ta-da! You're done!

    [size=9px]It might also give you some insights to setup for FPC/JEDI-SDL alone, as the parameters shown in the fields are FPC parameters.[/size]
    Jason McMillen
    Pascal Game Development
    Co-Founder





  7. #7

    Problem with Installation (JEDI-SDL)

    Perfect! That's what I call simple and straight forward!
    Thank you sooooo much! :thumbup:

  8. #8

    Problem with Installation (JEDI-SDL)

    DO NOT USE THE OPENGL UNITS SHIPPED WITH JEDI-SDL!!

    They are incompatible with Free Pascal. Use the ones that come with FPC itself.

  9. #9

    Problem with Installation (JEDI-SDL)

    Quote Originally Posted by dmantione
    DO NOT USE THE OPENGL UNITS SHIPPED WITH JEDI-SDL!!

    They are incompatible with Free Pascal. Use the ones that come with FPC itself.
    :?: :?: :?: :?:

    The opengl units in the 1.0 branch of JEDI-SDL have been tested under FreePascal and Delphi on Windows,Linux and MacOS.

    We have even tested the Opengl 2.0 support on Windows and Linux and they work without any problems.

    If you are talking about the 0.5 release headers then,yes they are out of date. We would recomend that developers get the latest from cvs and use those. v1.0 will be released soon , Dom has been working very hard to make that happen.
    <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>

  10. #10

Page 1 of 3 123 LastLast

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
  •