Results 1 to 7 of 7

Thread: HELP:Cross-Platform

  1. #1

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    HELP:Cross-Platform

    Hey guys,
    What are the powerful developer tools where you can write Cross-Platform applications?
    I've read about Mono and Python but I am not able to read all of the features because of lack of time.

    Thanks,

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: HELP:Cross-Platform

    Are you looking for run-time portability or compile-time portability?

    Run-time portability is generally only achieved using a JIT compiler (Java, .NET etc.) or a scripting environment; whereas compile-time portability can be achieved in languages such as C/C++ which allow conditional compilation using pre-processor instructions (and are not tied to one platform, such as VB).

    Cross-platform C++ applications are usually built against conditionally compiled libraries, so that the application logic is abstracted from the runtime environment.

  3. #3

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: HELP:Cross-Platform

    I think it is runtime portability.

  4. #4

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: HELP:Cross-Platform

    Is it possible to write an application from 1 platform then can be installed to other platforms.
    e.g. I created an application in MS Windows, is it possible to deploy it in Linux or MacOS?

  5. #5
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: HELP:Cross-Platform

    Quote Originally Posted by eSPiYa
    Is it possible to write an application from 1 platform then can be installed to other platforms.
    e.g. I created an application in MS Windows, is it possible to deploy it in Linux or MacOS?
    As stated above, it depends on the language you're using to write it.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: HELP:Cross-Platform

    Well, run-time portability means you can use the same binary/script file on any supported platform. A .NET binary is run-time portable because you can run it either on Windows with the .NET Framework or Linux/Mac with Mono. A script file would be similar but it requires the script interpreter for that language on that platform. PHP applications are run-time portable because the same PHP files are used on any platform with a PHP interpreter installed.

    Compile-time portability means you have one set of source code, but it can be compiled to target any of the supported platforms. You will need the platform-specific binary to run the application.

    So your question in post #4 could be answered by either of those depending on whether you want to issue separate platform-specific binaries or not.

    Remember even with a .NET application you still have to be careful not to use any platform-specific code like Registry access that won't work on Mono. Generally speaking if you target the Mono compiler then the apps will run on the Windows framework with fewer problems since Mono has a narrower scope and not so much platform-specific stuff (if any).

    Likewise you can write the app in C++ using platform abstraction libraries (like wxWidgets for GUI development) and can compile it for Windows or Linux/Mac.

    It basically is all dependent on how abstract your code is and that you're careful to use concepts that are applicable on any platform.
    Last edited by penagate; Oct 18th, 2006 at 11:05 PM.

  7. #7

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: HELP:Cross-Platform

    Thanks a lot for your help guys.
    I already tried mono last night.
    I created a simple form w/ the wx.NET.dll then deployed it in MacOSX.
    I still got some errors but I know it is possible.

    Maybe I'll use it in some of my future projects (I need this for the 3DGames that we are planning to develop).

    Thanks,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width