Thread: Best Programming Language Under Linux.

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    6

    Best Programming Language Under Linux.

    Guys im 0 i terms of GUI creation when programming under Linux, i used to program under windows, but started to get into Linux as i got more into web programing. What do you guys recommend for a programming language? Should i do C/C++ but then i dont know anything about GUI under linux, i heard about Gnome or KDE, i have no idea what they are for and the difference.

    I'm also thinking of java, thinking of escaping the burden of learning how to create GUI's too since i already know Java. But then i really dont like programming in Java even under windows. I really prefer C/C++.

    Guys do you have any usefull tutorial for beginner under Linux? for GUI programming?

    Thanks in advance,
    Jan

  2. #2
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Depending on what type of gui you are talking about, a window manager and desktop environment [ GNOME, KDE ] or application window.
    gtk/gdk, QT, WXwidgets......
    gtk and the rest are the eqivalent of MFC in windows.

    tldp.org has a collection of howto and manuals on linux, unfortunately a lot of them are outdated.
    They would give you background info on the subjects.

    Most tutorials are going to be tool specific, so if you are working with QT, it would be completely different than working with gtk/gdk
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    Yeah i making a GUI for an application. What is it that most of you guys use? Isnt there a win32 api version in Linux for GUI creation?

    Do i really have to use gtk, wxwidget. Sorry i'm, really 0 right now. I have completely know idea how linux programming works

  4. #4
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    So for WXwidgets, i see its also supports windows platform. If i created a program using C++/WXwidgets under windows will it also run under linux or is it just for GUIs? So it wont run?

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    If i use wxWidgets for my GUI under windows or Linux, and i try to run the program to a freshly installed Linux or Windows system will the program run or will it require to install something on the machine for it to work?

  6. #6
    Registered User
    Join Date
    Jun 2006
    Posts
    6
    I just looked at wxwidgets, it reminds me of MFC. I did not like the coding.

    What is GTK?

    What is the linux version of pure win32 programming on windows with GUI?

  7. #7
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>What is GTK?

    It's a c gui toolkit, broadly speaking. gtkmm is a c++ wrapper for it.

    >>What is the linux version of pure win32 programming on windows with GUI?<<

    xlib but there are no widgets(controls) unless you count xtintrinsics; you'd have to build them all yourself which is why you'd be strongly advised to use a gui toolkit instead.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  8. #8
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Wxwidgets apps, if being distributed as a binary, will run on the platform they were compiled for.

    to build for multiple operating systems you will need to have the wxwidgets toolkit on each os you want to support, and compile to executable on that os.

    GTK/GDK, also available for windows.

    QT, also available for windows. [ and is the foundation for Borland's C++ Builder VCL widgets, so is used by Delphi ]

    open up the package manager in your distribution, and search for widgets in it, you will find a lot more options than the few I listed.

    There are benefits and drawbacks for each one, and you will have to pick the one that best suits your needs and preferences.
    QT, on windows, is commercial only, so using the gpl version on linux will not allow you to have commercial application on windows.
    [ Trolltech, the makers of QT actually restrict their gpl version to open source only use. ]

    while I personally don't like the GTK/GDK widget look, this happens to be the one set that is free, yet allows for full commercial use, most deny commercial use of the widgets explicitly.
    The GNU=GPL does not disallow commercial use, only requires that is be open source.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  9. #9
    Registered User
    Join Date
    Dec 2003
    Posts
    167
    QT, on windows, is commercial only, so using the gpl version on linux will not allow you to have commercial application on windows.
    Trolltech, the makers of QT actually restrict their gpl version to open source only use. ]
    QT OpenSource edition is available for windows.
    silk.odyssey

  10. #10
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    true, in the last year they did make a gnu-gpl release for windows, and any apps created with it have to be open source, under the gnu-gpl, that is trolltech's stipulation to all open source versions they have.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  11. #11
    Just kidding.... fnoyan's Avatar
    Join Date
    Jun 2003
    Location
    Still in the egg
    Posts
    275
    Janux
    > I just looked at wxwidgets, it reminds me of MFC. I did not like the coding.
    Anyway, you have to write code! The windows that you will create will not come from sky!

    > What is GTK?
    Try to read this before asking http://www.gtk.org/faq/#AEN81

    >What is the linux version of pure win32 programming on windows with GUI?
    There is no Linux version of pure Win32 programming. Under Windows the windowing functions are part of the OS API. Under UNIX, the API is provided by thidr party softwares (liek GTK, Qt).

    You may want ot have a look Glade/KDevelop if you are looking for a GUI designer.

  12. #12
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>There is no Linux version of pure Win32 programming.<<

    Actually, xlib bears a superficial resemblance to win32api(windowing, event/message loops,primitive 2d drawing capabilities, font apis etc) although it's clearly not as extensive. All of the widgets sets of those other gui libraries already mentioned are ultimately built from it.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  13. #13
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Isn't programming with xlib generally used for developing tools like GDM, Sawfish and KDM?
    you know, the display manager that interfaces directly with X11.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. WIN32 API and Linux... *shudder
    By parad0x13 in forum C++ Programming
    Replies: 4
    Last Post: 07-24-2008, 07:27 PM
  3. Replies: 8
    Last Post: 03-10-2008, 12:08 PM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  5. Linux? Windows Xp?
    By VooDoo in forum Linux Programming
    Replies: 15
    Last Post: 07-31-2002, 08:18 AM