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

Thread: Mac Development Question - is free pascal viable?

  1. #1

    Mac Development Question - is free pascal viable?

    Hi there,

    I am think about converting a program to run on the Mac, OSX for PPC and Intel.

    My main background is using delphi and the app is in Delphi using DirectX.

    Now I have heard about free pascal.


    My question is Free Pascal on the Mac a viable option? Or am I going to run into lots hardship with dependencies and libraries not working etc?

    Does Free pascal have an IDE like Delphi does - is possible to do RAD development or is it more like turbo pascal?

    I figure I could convert the DX stuff to OpenGL.

    I know you will say - RTFM but I tried look at the free pascal site and I don't think it is very clear. And I figure someone may be able tell me what I wish to know in a few sentences.

    For a mainly Pascal programmer what would other alternatives be for developing on the Mac? C#?
    The views expressed on this programme are bloody good ones. - Fred Dagg

  2. #2

    Mac Development Question - is free pascal viable?

    Free Pascal on the Mac can be considered mature, you should have no problems with libraries etc. It integrates in the Xcode IDE, so you can do comfortable development. It also comes with a large amount of API interfaces units.

    Lazarus is a different story, while useable, it needs X11 to run. While it can produce Carbon executables, Carbon support is beta quality at the moment. However, you only need to worry about this if you have VCL code.

  3. #3

    Mac Development Question - is free pascal viable?

    FreePascal is certainly viable on Mac OS X.. Have a look at these 2 threads where I posted about the stuff I did on Mac OS X using FreePascal...

    http://www.idevgames.com/forum/showthread.php?t=13163

    http://www.idevgames.com/forum/showthread.php?t=13138

    You other alternatives are Objective C/C++ or possibly Java.

    One thing to keep in mind is that the Mono ( the Free version of C# ) team, have started a project called Mono.Xna ( uses OpenGL instead of Direct3D ), which would make XNA essentially cross-platform from Xbox 360 to Mac OS X and all the other platforms that Mono runs on. So all you would need to do is code to the XNA api and just recompile for for each platform that you plan to deploy to. This also means that you could use Chrome to target all these platforms as well.
    <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 =-

  4. #4

    Mac Development Question - is free pascal viable?

    Phew! Ok, thanks guys, that was way quick response. Looks like I have some reading to do. I will see how the next few months go with the commercial aspects of my application before deciding to do a mac port. Then I will need to decide if I can do it myself or we find someone else to do it

    cheers

    R

    Update: Just read your posts Savage looks really exciting.
    The views expressed on this programme are bloody good ones. - Fred Dagg

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

    Mac Development Question - is free pascal viable?

    It shouldn't be too much of a challenge if what I've been reading about what Dom and the CBC[size=8px](Cerebral Bicycle Company)[/size] boys have been doing with their stuff lately.

    Both Crash Block and Guns Reloaded were ported over before. As well as many JEDI-SDL demos.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #6

    Mac Development Question - is free pascal viable?

    Yes, if you use JEDI-SDL, it is very easy to get Mac and Linux versions. If are a bit carefull about file name cases etc., it is just recompile and go.

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

    Mac Development Question - is free pascal viable?

    And if you wanted to do 3D, it's my understanding that JEDI-SDL has OpenGL 2.0 headers that work well with FPC. At least they have not let me down any...
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #8

    Mac Development Question - is free pascal viable?

    Just so I am clear.

    RAD is only possible with Lazarus? Otherwise all buttons and other visual components must be created at run time. Is that correct? So Free Pascal is more like Turbo Pascal?

    Is it feasible to work on the PC first to prove the concept using SDL and then to take it across to the Mac? I don't really want to buy a Mac only to find I am unable to complete the Mac version myself.

    Just to giev a wee bit of back ground my application is not a game it is an motivation application with a screen saver component which I use directx for and other functions that change wall papers, pop up task bar balloons and export images and text to mobile phones etc
    The views expressed on this programme are bloody good ones. - Fred Dagg

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

    Mac Development Question - is free pascal viable?

    Lets put it this way... Delphi is really 2 different products in one.

    1) The Delphi Compiler that compiles Object Pascal code.

    and

    2) The Delphi IDE that designs the forums and has a whole VCL library that you can use to leverage the visual components of a windowed environment such as Win32.

    Lazarus is much the same way. Only instead of having it's own built-in compiler it uses Free Pascal instead. So everything Lazarus or LCL is the visual stuff. And Free Pascal is the core of all of that.

    I'd liken FPC more to what GCC is than Turbo Pascal though... Thats kind of the same as trying to compare GCC to Turbo C.

    But for the short answer; to do RAD you need the visual IDE so that means Lazarus.


    Also note that there is no DirectX for the Mac so it would probably be best to stick with a more cross-platform API like OpenGL or SDL depending on what you're needs are.

    You should also know that the more deep you delve into OS specific features, ie. screensavers, control panels, settings, etc... the more OS specific code you will need. So that means more IFDEFs throughout your code. It's not necessarily bad or improper, but most experienced developers stay away from OS-specific because it creates a lot more work for you.

    Imagine having 3 sets of code each for a different OS. Now you have to test each one separately. So try to do as little of this as possible at all times. Even when it's necessary.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  10. #10

    Mac Development Question - is free pascal viable?

    Note that Lazarus works on Mac, so if you want to do RAD development, feel free to do so, you can recompile your Lazarus apps for Mac with the push of a button. However, I'm just trying to prevent false expectations; Lazarus for Mac is still being worked on.

    However, while doing game development, you aren't using Delphi's RAD facilities either. I'd say game development is both feasible and compfortable under Mac.

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
  •  
Comodo SSL