Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Problem with Installation (JEDI-SDL)

  1. #11

    Problem with Installation (JEDI-SDL)

    Personally I think it's a bit over kill to say don't use the headers at all for a couple of function's that needed the declarations tweeking . Dom has applied the patches for the unProject (and others) in the v1.0 branch.

    I would suggest that people try these headers and give us bug reports rather then just saying don't use them. There are as up to date and you can get with support for opengl 1.1 through to 2.0.

    I have personally been using these headers in Windows and Linux and have had no problems at all. All the samples in the v1.0 branch run correctly.

    If there are specific problems with the function definitions , post the problem either here or on the JEDI-SDL mailing list and we'll fix it,or place IFDEF's where needed.
    <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>

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

    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.
    Really? I've been using them all this time and they work just fine.

    EDIT: Ok missed that thread.

    But seriously though... it is overkill. I think it would be best to say that there are compatibility issues with JEDI-SDL v1.0 BETA. But from the looks of it Dom has sorted that out in the svn.

    I mean, I've 2 projects working just fine in OpenGL, mind you they are only using Ortho perspective and I'm really only doing basic hardware stuff. (rotation, blending & scale using textured quads and other primitives)
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #13

    Still not workin...

    Hey guys,

    You havn't heard from me in a while, for the best or for the worst, it does unfortunately not mean I have managed to use OpenGl, but rather that I got so fed up with trying to make it work that I gave up. It had been my best hobby for 2 years, bt this time I got on my nerves.

    Now, over a month later, however, as the competition is due to start soon, I would like to try one more time.

    Here is where I left off:

    I downloaded JEDI-SDL and Lazarus, did everything exactly as Will told me above on both Lazarus and Dev-Pascal. Then I tried compiling the codes from the tutorial I mentioned above (which is simply meant to create and open a window).
    Now here is what happened:
    -With Lazarus, it compiled and ran, but I couldn't see any window, it was running, I could see it in the Task Manager, but I couldnt see the window and therefore couldn't even close it.
    -With Dev-Pascal, it didn't compile because of the error "can't open include file jedi-sdl.inc" in the very first few lines (where I have 'uses gl'); so I looked for that file, made sure I had it in at least 2 places, with addresses towards it in the 'units' and 'include' path directories of the compiler. Still same error.

    If anyone got an idea, PLEASE let me know and hopefully Ill get this to work!
    Thank you.

  4. #14

    Problem with Installation (JEDI-SDL)

    You might want to take a look at my sample that uses Lazarus, SDL, and Lua together. It can run in SDL or OpenGL thru SDL modes (via command line switches), compiles fine for windows, mac, and linux, and comes with full source. It should show you everything you need to know.

    Download here: http://www.eonclash.com/ViewProduct.php?ProductID=23

  5. #15

    Problem with Installation (JEDI-SDL)

    hey j,
    I’ll have a look at that, thanks . Btw, what’s Lua? What does it do?

    hey all,
    yday I worked on the problem I described above, so here’s where Im up to:

    I found out that, even though I had a path to the jedi-sdl.inc file, it needed to be in the same directory as the gl.pas unit that the compiler (Dev-Pascal, nt Lazarus) was trying to use.

    I copied and paste, and the next error (there seems to always be an error!) was ‘'Identifier not found PGLUBYTE', from the glu.pas unit. So I read through that unit and found out it used variables of the type PGLUBYTE but did nt define PGLUBYTE as a type.
    On the internet I found a source code that used PGLUBYTE as a type and had it defined as ‘PGLubyte = ^GLubyte;’, so I wrote that in in the glu.pas unit, and it worked.

    The problem that arose then, was that the compiler couldn’t find four procedures and functions. I don’t have the exact names here, but they all start with ‘wgl…’. I guess it should be referring to a certain unit that defines those, bt I have no idea which it is.

    I tried commenting out the lines containing the errors, and it finally ran! but it only showed a blank window (fully operational) without the things that were meant to be drawn on it (primitives). I believe commenting out those lines did not let it initialise properly…so how do I get the ‘wgl’ procedures?

    To sum it up, in Lazarus, it runs but I can’t see the window, whereas in Dev-Pascal, it can’t find the ‘wgl…’ procedures/functions.

    Any ideas? :?
    Thanks

  6. #16

    Problem with Installation (JEDI-SDL)

    Perhaps you could try using freepascal instead of Dev-Pascal

    cheers,
    Paul.
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  7. #17

    Problem with Installation (JEDI-SDL)

    Quote Originally Posted by IlovePascal
    hey j,
    I’ll have a look at that, thanks . Btw, what’s Lua? What does it do?
    Lua is a scripting engine developed in Ansi C. In my example I use the DLL version and link it out to show off one way to integrate it into a pascal game. You can pretty much ignore it if you want, as the more important things are the SDL parts for you.

    BTW: Its a Lazarus project, so install lazarus and double click the .lpr file.

  8. #18

    Problem with Installation (JEDI-SDL)

    1. The wgl* functions are defined in windows.pas
    2. PGLubyte is defined in gl.pas which is included by glu.pas, so I dont understand why you get error about missing identifier.
    3. Window not showing. Not enough data . Post some code and we will take a look.

    4. I will repeat my suggestion to put JEDI_SDL units you use, in one directory. Just for testing.

    5. As others suggested try Lazarus instead of dev-Pascal.

    Good Luck :!:

  9. #19

    Problem with Installation (JEDI-SDL)

    Quote Originally Posted by paul_nicholls
    Perhaps you could try using freepascal instead of Dev-Pascal
    well, I did download freepascal, but it came up with 12 errors for this same code! lol. Also I don't really like its interface, Dev-Pascal and Lazarus are so much better! Does freepascal actually have any advantage on the other two?

    [quote="jdarling"]Lua is a scripting engine developed in Ansi C. In my example I use the DLL version and ]

    About Lazarus, yea I already have it. As I said, the same code gave different errors with Dev-Pascal and with Lazarus...
    As for your example, I went through the whole thing, I looked at the help you had online as well, but even though it looks pretty simple (but not many comments within the code!), I guess Im still too much of a beginner to understand more than half of it. So I think using ur example wouldn't be the right thing for me cos if I wouldn't be able to modify it the way I want.

    Quote Originally Posted by grudzio
    1. The wgl* functions are defined in windows.pas
    Well maybe that's my problem! I found it quite intresting to see that there is no such file in my entire hd! I made a search and the closest I found was windows.ppw and windows.ow. I had a look through those and didn't find those procedures.
    However, I made a search for one of the wgl procedures and found them in Func.inc. I added the path on the compiler and I made a folder with only the units I needed, like you suggested and put a copy of Func.inc in it.
    It still says it can't find the procedures...

    Quote Originally Posted by grudzio
    3. Window not showing. Not enough data . Post some code and we will take a look.
    Well, you can get the code from here http://www.friends-of-fpc.org/tutori...gl/source10.pp and hopefully help me out!

    Quote Originally Posted by grudzio
    Good Luck :!:
    Thanks lol im gonna need it! Even more now tht the competition is starting!

    All help is still very welcome!
    Cheers

  10. #20

    Problem with Installation (JEDI-SDL)

    You should use Lazarus. It comes with latest version of FPC while dev-Pascal comes with an old one. So there will be no problems with missing headers.

    I have managed to compile and run your example. The compilation errors
    were cause by the line
    Code:
    msg &#58; MSG;		// Windows messages
    The name of the variable is same as its type, so change it to something diferent. (In all places this variable is used ).

    The application window will not show up when run from Lazarus IDE. Why - no idea. But when run from outside of the IDE it works perfectly.

Page 2 of 3 FirstFirst 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
  •