|
List Info
Thread: JEDI-SDL, MacOS X and XCode Tutorial - a first pass
|
|
| JEDI-SDL, MacOS X and XCode Tutorial - a
first pass |

|
2006-11-18 21:57:59 |
|
I tested the new templating system by porting KiCHY's old Oxygene, game
that already ran on Win32 and Linux, which uses the sdlsprite.pas (
Sprite Engine ), and the only source code change I had to make was to
remove the *fullscreen* parameter when the window is created. Everything
else just compiled and ran once I had added the various bits to the project.
Here is a screen-shot...
http://www.pascalgamedevelopment.com/jedi-sdl/images/OxygeneMacOSX.png
Dominique.
dominiqueatsavagesoftware wrote:
> Hi all,
> I have finally managed to iron out all the bugs involved putting together an XCode 2.4.x
> compatible project template that works with JEDI-SDL and FreePascal on MacOS X. A big
> thank-you goes out to Jonas Maebe for pointing me in the right direction. Ok the basic
> instructions are as follows...
>
> -= START TUTORIAL =-
>
> 1. Need 1 cup of MacOS X
>
> 2. An installation of XCode 2.4 which ships with Tiger, but can the latest version can be
> downloaded by registering here - http://developer.apple.com/tools/download/ . Note the
> current version of 2.4.1 and weighs in at 924MB, so I hope you have broadband. This will
> give you a DMG ( Disk Image ) that will self mount. Follow the installation instructions.
>
> 3. Download and install the SDL disk image for MacOS X from - http://www.libsdl.org/
> release/SDL-1.2.11.dmg. Once this disk image has mounted you will find yourself in a
> folder with a Readme.txt a SDL.framework directory and a few other files.
> To Install SDL:
> Copy the SDL.framework to /Library/Frameworks
> You can do the same thing for SDL_image, SDL_mixer, SDL_ttf and SDL_net.
> /Library/Frameworks/ is the location for all private frameworks.
> The standard OS frameworks and located in...
> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
>
> 4. Download and install FreePascal for MacOS X from - http://wiki.lazarus.freepascal.org/
> index.php/Lazarus_Snapshots_Downloads I downloaded a 2.1.1 snapshot about a week
> ago, but note that this branch is under heavy development so is not considered stable.
> You can try using the more stable 2.0.4 release, but I cannot vouch for that. Again this
> should give you a *.dmg files that will mount instelf and in this case launch an installation.
> Follow the instructions and you should have a working FreePascal compiler for MasOS X at
> the end of it.
>
> 5. If the installation above went well you should now have some FreePascal project
> templates located at...
> /Library/Application Support/Apple/Developer Tools/Project Templates/Pascal/
> under which will be "FPC Standard Tool" and "FPC Carbon Application" project templates.
> Now download the JEDI-SDL 2D project template from
> http://www.pascalgamedevelopment.com/files/FPC%20JEDI-SDL%202D.zip
> Unzip the archived "FPC JEDI-SDL 2D" folder at the same level as the previous FPC project
> templates.
>
> 6. Now start up XCode. Select "File->New Project". A New Project wizard should appear
> listing all the project templates available. Scroll down the list until you get to "Pascal".
> Under this node you should see the 2 FPC Project Templates and the JEDI-SDL 2D project
> template. Select "FPC JEDI-SDL 2D" and click "Next". Now enter a Project Name and
> Directory. Note : If the directory does not exist, it will be created. When you happy click
> finish the newly created project will be opened and ready for editing within XCode.
>
> 7. Click the "Build and Go" icon and the compilation process will begin. Once completed
> ( it's a bit slower that Delphi ), you should see JEDI-SDL logo ( thanks Jason ) bouncing
> around a native MacOS X window.
>
> 8. Hack this project around to get your baby working on MacOS X.
>
> -= END TUTORIAL =-
>
> This is the simplest way to get 2D JEDI-SDL and XCode working together. A more indepth
> tutorial of how to create the project from scratch would include a lot of arcane magic and
> work arounds which Jonas has already had the misfortune of experiencing, hence why
> project templates are provided as a starting point when using XCode.
>
> As already mentioned I do have a 3D Project template for XCode as well, but I need to sort
> out the small issue of it failing/crashing on the first OpenGL call before releasing it.
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
--
Dominique Louis
Savage Software Solutions - Software with Byte
http://www.SavageSoftware.com.au/store/
__._,_.___
.
__,_._,___
|
| JEDI-SDL, MacOS X and XCode Tutorial - a
first pass |

|
2006-11-20 19:36:41 |
|
Ok OpenGL is now also working. After looking at the gl.pp unit it was
clear that these units had not been updated to reflect the correct path
to libGL.dylib etc on Darwin. Once that was sorted out the Nehe 8 OpenGL
demo ran without any problems...
http://www.pascalgamedevelopment.com/jedi-sdl/images/Nehe8MacOSX.png
The 3D template project is now available from
http://www.pascalgamedevelopment.com/jedi-sdl/files/FPC%20JEDI-SDL%203D.zip
Now I will go back and read up on how to create a dmg file.
Dominique Louis wrote:
> I tested the new templating system by porting KiCHY's old Oxygene, game
> that already ran on Win32 and Linux, which uses the sdlsprite.pas (
> Sprite Engine ), and the only source code change I had to make was to
> remove the *fullscreen* parameter when the window is created. Everything
> else just compiled and ran once I had added the various bits to the project.
> Here is a screen-shot...
> http://www.pascalgamedevelopment.com/jedi-sdl/images/OxygeneMacOSX.png
>
> Dominique.
>
> dominiqueatsavagesoftware wrote:
>> Hi all,
>> I have finally managed to iron out all the bugs involved putting together an XCode 2.4.x
>> compatible project template that works with JEDI-SDL and FreePascal on MacOS X. A big
>> thank-you goes out to Jonas Maebe for pointing me in the right direction. Ok the basic
>> instructions are as follows...
>>
>> -= START TUTORIAL =-
>>
>> 1. Need 1 cup of MacOS X
>>
>> 2. An installation of XCode 2.4 which ships with Tiger, but can the latest version can be
>> downloaded by registering here - http://developer.apple.com/tools/download/ . Note the
>> current version of 2.4.1 and weighs in at 924MB, so I hope you have broadband. This will
>> give you a DMG ( Disk Image ) that will self mount. Follow the installation instructions.
>>
>> 3. Download and install the SDL disk image for MacOS X from - http://www.libsdl.org/
>> release/SDL-1.2.11.dmg. Once this disk image has mounted you will find yourself in a
>> folder with a Readme.txt a SDL.framework directory and a few other files.
>> To Install SDL:
>> Copy the SDL.framework to /Library/Frameworks
>> You can do the same thing for SDL_image, SDL_mixer, SDL_ttf and SDL_net.
>> /Library/Frameworks/ is the location for all private frameworks.
>> The standard OS frameworks and located in...
>> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
>>
>> 4. Download and install FreePascal for MacOS X from - http://wiki.lazarus.freepascal.org/
>> index.php/Lazarus_Snapshots_Downloads I downloaded a 2.1.1 snapshot about a week
>> ago, but note that this branch is under heavy development so is not considered stable.
>> You can try using the more stable 2.0.4 release, but I cannot vouch for that. Again this
>> should give you a *.dmg files that will mount instelf and in this case launch an installation.
>> Follow the instructions and you should have a working FreePascal compiler for MasOS X at
>> the end of it.
>>
>> 5. If the installation above went well you should now have some FreePascal project
>> templates located at...
>> /Library/Application Support/Apple/Developer Tools/Project Templates/Pascal/
>> under which will be "FPC Standard Tool" and "FPC Carbon Application" project templates.
>> Now download the JEDI-SDL 2D project template from
>> http://www.pascalgamedevelopment.com/files/FPC%20JEDI-SDL%202D.zip
>> Unzip the archived "FPC JEDI-SDL 2D" folder at the same level as the previous FPC project
>> templates.
>>
>> 6. Now start up XCode. Select "File->New Project". A New Project wizard should appear
>> listing all the project templates available. Scroll down the list until you get to "Pascal".
>> Under this node you should see the 2 FPC Project Templates and the JEDI-SDL 2D project
>> template. Select "FPC JEDI-SDL 2D" and click "Next". Now enter a Project Name and
>> Directory. Note : If the directory does not exist, it will be created. When you happy click
>> finish the newly created project will be opened and ready for editing within XCode.
>>
>> 7. Click the "Build and Go" icon and the compilation process will begin. Once completed
>> ( it's a bit slower that Delphi ), you should see JEDI-SDL logo ( thanks Jason ) bouncing
>> around a native MacOS X window.
>>
>> 8. Hack this project around to get your baby working on MacOS X.
>>
>> -= END TUTORIAL =-
>>
>> This is the simplest way to get 2D JEDI-SDL and XCode working together. A more indepth
>> tutorial of how to create the project from scratch would include a lot of arcane magic and
>> work arounds which Jonas has already had the misfortune of experiencing, hence why
>> project templates are provided as a starting point when using XCode.
>>
>> As already mentioned I do have a 3D Project template for XCode as well, but I need to sort
>> out the small issue of it failing/crashing on the first OpenGL call before releasing it.
>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>
--
Dominique Louis
Savage Software Solutions - Software with Byte
http://www.SavageSoftware.com.au/store/
__._,_.___
.
__,_._,___
|
| JEDI-SDL, MacOS X and XCode Tutorial - a
first pass |

|
2006-11-25 14:08:14 |
|
Hi Dominique
I'll try and find a couple of hours tomorrow to see if the stuff works on a
powerpc mac. I'll let you know how I get on.
Just skimming through the below I notice that you mentioned removing the
"fullscreen" parameter. Does that mean the code only works in a window or
that there was a problem in that particular piece of code with a redundant
passing of the parameter? - Just useful to know should my code start
crashing.
simon
--- Dominique Louis < Dominique%40SavageSoftware.com.au">Dominique SavageSoftware.com.au> wrote:
> Ok OpenGL is now also working. After looking at the gl.pp unit it was
> clear that these units had not been updated to reflect the correct path
> to libGL.dylib etc on Darwin. Once that was sorted out the Nehe 8 OpenGL
> demo ran without any problems...
>
> http://www.pascalgamedevelopment.com/jedi-sdl/images/Nehe8MacOSX.png
>
> The 3D template project is now available from
> http://www.pascalgamedevelopment.com/jedi-sdl/files/FPC%20JEDI-SDL%203D.zip
>
> Now I will go back and read up on how to create a dmg file.
>
> Dominique Louis wrote:
> > I tested the new templating system by porting KiCHY's old Oxygene, game
> > that already ran on Win32 and Linux, which uses the sdlsprite.pas (
> > Sprite Engine ), and the only source code change I had to make was to
> > remove the *fullscreen* parameter when the window is created. Everything
> > else just compiled and ran once I had added the various bits to the
> project.
> > Here is a screen-shot...
> > http://www.pascalgamedevelopment.com/jedi-sdl/images/OxygeneMacOSX.png
> >
> > Dominique.
> >
> > dominiqueatsavagesoftware wrote:
> >> Hi all,
> >> I have finally managed to iron out all the bugs involved putting
> together an XCode 2.4.x
> >> compatible project template that works with JEDI-SDL and FreePascal on
> MacOS X. A big
> >> thank-you goes out to Jonas Maebe for pointing me in the right
> direction. Ok the basic
> >> instructions are as follows...
> >>
> >> -= START TUTORIAL =-
> >>
> >> 1. Need 1 cup of MacOS X
> >>
> >> 2. An installation of XCode 2.4 which ships with Tiger, but can the
> latest version can be
> >> downloaded by registering here -
> http://developer.apple.com/tools/download/ . Note the
> >> current version of 2.4.1 and weighs in at 924MB, so I hope you have
> broadband. This will
> >> give you a DMG ( Disk Image ) that will self mount. Follow the
> installation instructions.
> >>
> >> 3. Download and install the SDL disk image for MacOS X from -
> http://www.libsdl.org/
> >> release/SDL-1.2.11.dmg. Once this disk image has mounted you will find
> yourself in a
> >> folder with a Readme.txt a SDL.framework directory and a few other
> files.
> >> To Install SDL:
> >> Copy the SDL.framework to /Library/Frameworks
> >> You can do the same thing for SDL_image, SDL_mixer, SDL_ttf and SDL_net.
>
> >> /Library/Frameworks/ is the location for all private frameworks.
> >> The standard OS frameworks and located in...
> >> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
> >>
> >> 4. Download and install FreePascal for MacOS X from -
> http://wiki.lazarus.freepascal.org/
> >> index.php/Lazarus_Snapshots_Downloads I downloaded a 2.1.1 snapshot
> about a week
> >> ago, but note that this branch is under heavy development so is not
> considered stable.
> >> You can try using the more stable 2.0.4 release, but I cannot vouch for
> that. Again this
> >> should give you a *.dmg files that will mount instelf and in this case
> launch an installation.
> >> Follow the instructions and you should have a working FreePascal
> compiler for MasOS X at
> >> the end of it.
> >>
> >> 5. If the installation above went well you should now have some
> FreePascal project
> >> templates located at...
> >> /Library/Application Support/Apple/Developer Tools/Project
> Templates/Pascal/
> >> under which will be "FPC Standard Tool" and "FPC Carbon Application"
> project templates.
> >> Now download the JEDI-SDL 2D project template from
> >> http://www.pascalgamedevelopment.com/files/FPC%20JEDI-SDL%202D.zip
> >> Unzip the archived "FPC JEDI-SDL 2D" folder at the same level as the
> previous FPC project
> >> templates.
> >>
> >> 6. Now start up XCode. Select "File->New Project". A New Project wizard
> should appear
> >> listing all the project templates available. Scroll down the list until
> you get to "Pascal".
> >> Under this node you should see the 2 FPC Project Templates and the
> JEDI-SDL 2D project
> >> template. Select "FPC JEDI-SDL 2D" and click "Next". Now enter a Project
> Name and
> >> Directory. Note : If the directory does not exist, it will be created.
> When you happy click
> >> finish the newly created project will be opened and ready for editing
> within XCode.
> >>
> >> 7. Click the "Build and Go" icon and the compilation process will begin.
> Once completed
> >> ( it's a bit slower that Delphi ), you should see JEDI-SDL logo ( thanks
> Jason ) bouncing
> >> around a native MacOS X window.
> >>
> >> 8. Hack this project around to get your baby working on MacOS X.
> >>
> >> -= END TUTORIAL =-
> >>
> >> This is the simplest way to get 2D JEDI-SDL and XCode working together.
> A more indepth
> >> tutorial of how to create the project from scratch would include a lot
> of arcane magic and
> >> work arounds which Jonas has already had the misfortune of experiencing,
> hence why
> >> project templates are provided as a starting point when using XCode.
> >>
> >> As already mentioned I do have a 3D Project template for XCode as well,
> but I need to sort
> >> out the small issue of it failing/crashing on the first OpenGL call
> before releasing it.
> >>
> >>
> >>
> >>
> >>
> >> Yahoo! Groups Links
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
>
> --
> Dominique Louis
> Savage Software Solutions - Software with Byte
> http://www.SavageSoftware.com.au/store/
>
__________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
__._,_.___
.
__,_._,___
|
| JEDI-SDL, MacOS X and XCode Tutorial - a
first pass |

|
2006-11-25 20:40:28 |
|
Hi Simon,
That would be great! I am currently in the process of putting
together a MacOS X Disk Image, which includes the full SDL and satelite
units as well as the 2 projects templates mentioned earlier. I hope to
have it finished by tomorrow so that I can get your laptop back to you
late next week or early the week after.
Dominique.
Simon Rushton wrote:
> Hi Dominique
>
> I'll try and find a couple of hours tomorrow to see if the stuff works on a
> powerpc mac. I'll let you know how I get on.
>
> Just skimming through the below I notice that you mentioned removing the
> "fullscreen" parameter. Does that mean the code only works in a window or
> that there was a problem in that particular piece of code with a redundant
> passing of the parameter? - Just useful to know should my code start
> crashing.
>
> simon
>
>
>
> --- Dominique Louis < Dominique%40SavageSoftware.com.au">Dominique SavageSoftware.com.au> wrote:
>
>> Ok OpenGL is now also working. After looking at the gl.pp unit it was
>> clear that these units had not been updated to reflect the correct path
>> to libGL.dylib etc on Darwin. Once that was sorted out the Nehe 8 OpenGL
>> demo ran without any problems...
>>
>> http://www.pascalgamedevelopment.com/jedi-sdl/images/Nehe8MacOSX.png
>>
>> The 3D template project is now available from
>> http://www.pascalgamedevelopment.com/jedi-sdl/files/FPC%20JEDI-SDL%203D.zip
>>
>> Now I will go back and read up on how to create a dmg file.
>>
>> Dominique Louis wrote:
>>> I tested the new templating system by porting KiCHY's old Oxygene, game
>>> that already ran on Win32 and Linux, which uses the sdlsprite.pas (
>>> Sprite Engine ), and the only source code change I had to make was to
>>> remove the *fullscreen* parameter when the window is created. Everything
>>> else just compiled and ran once I had added the various bits to the
>> project.
>>> Here is a screen-shot...
>>> http://www.pascalgamedevelopment.com/jedi-sdl/images/OxygeneMacOSX.png
>>>
>>> Dominique.
>>>
>>> dominiqueatsavagesoftware wrote:
>>>> Hi all,
>>>> I have finally managed to iron out all the bugs involved putting
>> together an XCode 2.4.x
>>>> compatible project template that works with JEDI-SDL and FreePascal on
>> MacOS X. A big
>>>> thank-you goes out to Jonas Maebe for pointing me in the right
>> direction. Ok the basic
>>>> instructions are as follows...
>>>>
>>>> -= START TUTORIAL =-
>>>>
>>>> 1. Need 1 cup of MacOS X
>>>>
>>>> 2. An installation of XCode 2.4 which ships with Tiger, but can the
>> latest version can be
>>>> downloaded by registering here -
>> http://developer.apple.com/tools/download/ . Note the
>>>> current version of 2.4.1 and weighs in at 924MB, so I hope you have
>> broadband. This will
>>>> give you a DMG ( Disk Image ) that will self mount. Follow the
>> installation instructions.
>>>> 3. Download and install the SDL disk image for MacOS X from -
>> http://www.libsdl.org/
>>>> release/SDL-1.2.11.dmg. Once this disk image has mounted you will find
>> yourself in a
>>>> folder with a Readme.txt a SDL.framework directory and a few other
>> files.
>>>> To Install SDL:
>>>> Copy the SDL.framework to /Library/Frameworks
>>>> You can do the same thing for SDL_image, SDL_mixer, SDL_ttf and SDL_net.
>>>> /Library/Frameworks/ is the location for all private frameworks.
>>>> The standard OS frameworks and located in...
>>>> /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
>>>>
>>>> 4. Download and install FreePascal for MacOS X from -
>> http://wiki.lazarus.freepascal.org/
>>>> index.php/Lazarus_Snapshots_Downloads I downloaded a 2.1.1 snapshot
>> about a week
>>>> ago, but note that this branch is under heavy development so is not
>> considered stable.
>>>> You can try using the more stable 2.0.4 release, but I cannot vouch for
>> that. Again this
>>>> should give you a *.dmg files that will mount instelf and in this case
>> launch an installation.
>>>> Follow the instructions and you should have a working FreePascal
>> compiler for MasOS X at
>>>> the end of it.
>>>>
>>>> 5. If the installation above went well you should now have some
>> FreePascal project
>>>> templates located at...
>>>> /Library/Application Support/Apple/Developer Tools/Project
>> Templates/Pascal/
>>>> under which will be "FPC Standard Tool" and "FPC Carbon Application"
>> project templates.
>>>> Now download the JEDI-SDL 2D project template from
>>>> http://www.pascalgamedevelopment.com/files/FPC%20JEDI-SDL%202D.zip
>>>> Unzip the archived "FPC JEDI-SDL 2D" folder at the same level as the
>> previous FPC project
>>>> templates.
>>>>
>>>> 6. Now start up XCode. Select "File->New Project". A New Project wizard
>> should appear
>>>> listing all the project templates available. Scroll down the list until
>> you get to "Pascal".
>>>> Under this node you should see the 2 FPC Project Templates and the
>> JEDI-SDL 2D project
>>>> template. Select "FPC JEDI-SDL 2D" and click "Next". Now enter a Project
>> Name and
>>>> Directory. Note : If the directory does not exist, it will be created.
>> When you happy click
>>>> finish the newly created project will be opened and ready for editing
>> within XCode.
>>>> 7. Click the "Build and Go" icon and the compilation process will begin.
>> Once completed
>>>> ( it's a bit slower that Delphi ), you should see JEDI-SDL logo ( thanks
>> Jason ) bouncing
>>>> around a native MacOS X window.
>>>>
>>>> 8. Hack this project around to get your baby working on MacOS X.
>>>>
>>>> -= END TUTORIAL =-
>>>>
>>>> This is the simplest way to get 2D JEDI-SDL and XCode working together.
>> A more indepth
>>>> tutorial of how to create the project from scratch would include a lot
>> of arcane magic and
>>>> work arounds which Jonas has already had the misfortune of experiencing,
>> hence why
>>>> project templates are provided as a starting point when using XCode.
>>>>
>>>> As already mentioned I do have a 3D Project template for XCode as well,
>> but I need to sort
>>>> out the small issue of it failing/crashing on the first OpenGL call
>> before releasing it.
>>>>
>>>>
>>>& | |