Thread: Easy cross platform dev

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    2

    Easy cross platform dev

    Which is the easiest one at the moment eg CodeBlocks, CodeLite, U++ etc?

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Java.

  3. #3
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Do you mean IDE? CodeBlocks and CodeLite are IDEs. IDEs don't have an influence on the cross platform-ness of your code.

    If you want a library that supports a lot of platforms, then I recommend QT.

  4. #4
    Registered User
    Join Date
    Jan 2011
    Posts
    2
    I am hoping to make cross platform apps which include guis. The compiler should handle the cross platformness of the executables created. As I understand it codeblocks, and codelite include compilers as does U++ meaning they are cross platform frameworks which center around an ide. Not sure about Qt aren't they owned by that finnish phone company Nokia?

    CommonTater mentioned Java, so I might include the runtime revolution live code platform which is said to be significantly faster than any c++ cross platform development.

  5. #5
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    For C++, the most cross-platform solution for GUI development will perhaps be described as:

    - WxWidgets, for the GUI framework
    - GCC for compiler collection
    - Any IDE supporting GCC

    This setup gives you the ability to code for Windows, Linux, MacOS and many Unix flavors, with full support for the GUI native widgets. Necessarily, if you avoid compiler extensions, you can pretty much choose any compiler since your code will compile across your target platforms. However GCC ubiquity makes it an excellent candidate for cross compiling, since you can take advantage of these extensions and still guarantee cross-compilation.
    Last edited by Mario F.; 01-30-2011 at 08:44 AM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  6. #6
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Yeah. Qt is owned by Nokia, but they offer it under the LGPL license. You can create proprietary apps with it.

    It has a good GUI library, and you can use it alone, if you want. But, it also has a bunch of other libraries. For example, it has a cross platform thread library.

    I second Mario on the GCC recommendation. There's a GCC target for almost anything.

  7. #7
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I didn't know Nokia made changes to the licensing schema of Qt. That indeed makes it a much more attractive option now.

    One of the advantages Qt has over WxWidgets for C++ programmers, is that it allows full use of the STL containers. WxWidgets uses its own template classes as part of their portability strategy and hooks its functional classes to these implementations. They are by no means, bad implementations of traditional STL classes. But they do remove from the programmer optimum access to the STL. For you to use STL with WxWidgets, you'll eventually need to cast and this is obviously disadvantageous. Qt, if I'm not mistaken, allows both use of the STL and its own container classes, whichever fits your needs.

    This is been one of the few gripes I had with WxWidgets over the years (that and the macro-based event handler). Seeing that Qt licensing has changed to a less abusive schema, it becomes a very interesting option indeed that makes me not so willing to suggest WxWidgets over Qt, as I've always done in the past.

    One note also the fact there is going to be significant changes as Qt integration with Gnome is becoming a primary development target of this framework. The recent decision to include Qt on the next release of Ubuntu along with the desire to develop solid Gnome bindings for Qt, sure indicates that Qt ubiquity in the Linux platform may become a reality (...if they don't take 10 years to make it viable, as sometimes seems to be the case with linux development)
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MinGW Linking GUI Program
    By Tonto in forum Tech Board
    Replies: 19
    Last Post: 08-23-2006, 03:28 PM
  2. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  3. Cross Platform Compatible 64Bit And 8Bit Integer
    By Geolingo in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2005, 04:35 AM
  4. cross platform game programming
    By xddxogm3 in forum Game Programming
    Replies: 13
    Last Post: 08-22-2004, 09:40 AM
  5. Cross Compiling with Linux and Turbo C
    By ozgulker in forum Linux Programming
    Replies: 0
    Last Post: 11-18-2002, 03:07 PM