Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. C++ Linux programming...

C++ Linux programming...

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studioc++linuxquestion
30 Posts 15 Posters 35 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Braulio Dez

    Hi, Where to start with Linux programming, I would like to so something windowed (like the apps and that stuff that we can do with Visual Studio), but... no idea what's going on now on Linux... I've heard that there is an IDE quite similar to Visual Studio IDE, but I've heard as well, that if you program a thing for KDE, then may it won't work for another linux windows environment and... :-( Well... can you tell me some point to start ?, Thanks Braulio Ps.: I've heard as well that some people is making the .net stuff for linux ???

    B Offline
    B Offline
    Barry Lapthorn
    wrote on last edited by
    #11

    QT or GTK for window libraries, KDevelop for the IDE Mono or dotgnu for .net type thing. B.

    B 1 Reply Last reply
    0
    • D Daniel Turini

      .S.Rod. wrote: the WINE WIN32 emulator Wine Is Not an Emulator They're quite good at behaving like a native Win32 API and you'd gain nothing going native, because WINE has a neglictible overhead. lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik

      D Offline
      D Offline
      Davy Mitchell
      wrote on last edited by
      #12

      I've seen screenshots of WINE running IE and IE updating itself via MS Windows Update. Clever stuff - often goes wrong on Windows :) Davy Weblog, Ramblings and more... www.latedecember.com

      1 Reply Last reply
      0
      • B Braulio Dez

        Hi, Where to start with Linux programming, I would like to so something windowed (like the apps and that stuff that we can do with Visual Studio), but... no idea what's going on now on Linux... I've heard that there is an IDE quite similar to Visual Studio IDE, but I've heard as well, that if you program a thing for KDE, then may it won't work for another linux windows environment and... :-( Well... can you tell me some point to start ?, Thanks Braulio Ps.: I've heard as well that some people is making the .net stuff for linux ???

        T Offline
        T Offline
        thawes
        wrote on last edited by
        #13

        _Where to start with Linux programming, I would like to so something windowed (like the apps and that stuff that we can do with Visual Studio), but... no idea what's going on now on Linux...

        I've heard that there is an IDE quite similar to Visual Studio IDE, but I've heard as well, that if you program a thing for KDE, then may it won't work for another linux windows environment and..._

        I learned C++ on Linux and Solaris. Only in the last couple of years have I been using MSVC. Although I have grown to like MSVC, I do not consider it a good replacement for a solid shell environment (on *NIX).

        Let me clear one thing up, the Linux windowing environment (the X Windows System) is not tied to the operating system. In fact, I currently develop my programs on Linux and re-compile them on Solaris without changing any code (so long as I have a KDE development environment running on Solaris). You can run programs developed in Kdevelop in any X Windows environment on the same platform. I run such programs in Solaris' CDE environment.

        Kdevelop is not as advanced as MSVC. It is getting there, and is probably the best available for now. Some other contenders to watch for:

        KDEStudio Gold (http://www.thekompany.com)
        Is similar to Kdevelop but is a commercial product with better "intellisense-like" behaviour than Kdevelop's.

        Anjuta (http://www.anjuta.org)
        Is Gnome-based. Good product but still no stable release.

        Kylix 3
        This is Borland's free C++ Builder and Delphi for Linux. What is nice about these IDE's is that they produce project files and code that can be immediately used with the Windows versions of their products without modification. Excellent cross-platform product.

        Mono for Linux (http://www.go-mono.org) is still under heavy development. There are no Visual Studio .Net - like IDE's for this, but Microsoft's own products are said to work with it.

        B 1 Reply Last reply
        0
        • M markkuk

          KDE progrms will run on other desktop environments if the necessary libraries are available. If you write your program using the Qt library, it can be ported to Windows and Mac systems. Or you can develop your Qt program on Windows with Visual Studio IDE and then recompile it on Linux.

          B Offline
          B Offline
          Braulio Dez
          wrote on last edited by
          #14

          Thanks, Where can I find a good quickstart tutorial about that ? Thanks, greetings Braulio

          L M 2 Replies Last reply
          0
          • B Barry Lapthorn

            QT or GTK for window libraries, KDevelop for the IDE Mono or dotgnu for .net type thing. B.

            B Offline
            B Offline
            Braulio Dez
            wrote on last edited by
            #15

            Thanks, any good link to a quick start tutorial ? Thanks greetings Braulio

            B 1 Reply Last reply
            0
            • T thawes

              _Where to start with Linux programming, I would like to so something windowed (like the apps and that stuff that we can do with Visual Studio), but... no idea what's going on now on Linux...

              I've heard that there is an IDE quite similar to Visual Studio IDE, but I've heard as well, that if you program a thing for KDE, then may it won't work for another linux windows environment and..._

              I learned C++ on Linux and Solaris. Only in the last couple of years have I been using MSVC. Although I have grown to like MSVC, I do not consider it a good replacement for a solid shell environment (on *NIX).

              Let me clear one thing up, the Linux windowing environment (the X Windows System) is not tied to the operating system. In fact, I currently develop my programs on Linux and re-compile them on Solaris without changing any code (so long as I have a KDE development environment running on Solaris). You can run programs developed in Kdevelop in any X Windows environment on the same platform. I run such programs in Solaris' CDE environment.

              Kdevelop is not as advanced as MSVC. It is getting there, and is probably the best available for now. Some other contenders to watch for:

              KDEStudio Gold (http://www.thekompany.com)
              Is similar to Kdevelop but is a commercial product with better "intellisense-like" behaviour than Kdevelop's.

              Anjuta (http://www.anjuta.org)
              Is Gnome-based. Good product but still no stable release.

              Kylix 3
              This is Borland's free C++ Builder and Delphi for Linux. What is nice about these IDE's is that they produce project files and code that can be immediately used with the Windows versions of their products without modification. Excellent cross-platform product.

              Mono for Linux (http://www.go-mono.org) is still under heavy development. There are no Visual Studio .Net - like IDE's for this, but Microsoft's own products are said to work with it.

              B Offline
              B Offline
              Braulio Dez
              wrote on last edited by
              #16

              Thanks for the info ! So KDevelop now is the point to start ( or that Kylix then is really free ??? cool !). Do you know where can I find a quick start tutorial for KDevelop and Qt? programming. Thanks Braulio

              B 1 Reply Last reply
              0
              • B Braulio Dez

                Thanks, any good link to a quick start tutorial ? Thanks greetings Braulio

                B Offline
                B Offline
                Barry Lapthorn
                wrote on last edited by
                #17

                Try http://www.gtk.org/[^] - there is a tutorial section. I don't think there's much for mono and the like, but then, it's .net, so why not look here :) B.

                1 Reply Last reply
                0
                • B Braulio Dez

                  Thanks, Where can I find a good quickstart tutorial about that ? Thanks, greetings Braulio

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #18

                  www.trolltech.com My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers

                  1 Reply Last reply
                  0
                  • B Braulio Dez

                    Thanks for the info ! So KDevelop now is the point to start ( or that Kylix then is really free ??? cool !). Do you know where can I find a quick start tutorial for KDevelop and Qt? programming. Thanks Braulio

                    B Offline
                    B Offline
                    Barry Lapthorn
                    wrote on last edited by
                    #19

                    http://www.trolltech.com/products/qt/[^] There are some licensing issues with Qt. I think there are some tutorials at that website, otherwise google will help. ;) B.

                    1 Reply Last reply
                    0
                    • B Braulio Dez

                      Hi, Where to start with Linux programming, I would like to so something windowed (like the apps and that stuff that we can do with Visual Studio), but... no idea what's going on now on Linux... I've heard that there is an IDE quite similar to Visual Studio IDE, but I've heard as well, that if you program a thing for KDE, then may it won't work for another linux windows environment and... :-( Well... can you tell me some point to start ?, Thanks Braulio Ps.: I've heard as well that some people is making the .net stuff for linux ???

                      F Offline
                      F Offline
                      F Braem
                      wrote on last edited by
                      #20

                      Consider using wxWindows. wxWindows is a portable C++ GUI framework which you can use on Windows, Linux, Mac, ... You can develop your program in Visual Studio and port the code to another platform, build it and run it. wxWindows classes are similar to MFC classes, so it's easy to get started.

                      1 Reply Last reply
                      0
                      • B Braulio Dez

                        Hi, Where to start with Linux programming, I would like to so something windowed (like the apps and that stuff that we can do with Visual Studio), but... no idea what's going on now on Linux... I've heard that there is an IDE quite similar to Visual Studio IDE, but I've heard as well, that if you program a thing for KDE, then may it won't work for another linux windows environment and... :-( Well... can you tell me some point to start ?, Thanks Braulio Ps.: I've heard as well that some people is making the .net stuff for linux ???

                        J Offline
                        J Offline
                        Joao Vaz
                        wrote on last edited by
                        #21

                        You have Kdevelop [^] , it's getting better with the age and kylix 3, the open version is free :-D , it produces native linux execs , but it's a pain in the butt to make it work correctly on a non linux supported linux distribution , for instance they only support RedHat 7.2 ... now the fun part is if you want to make it work correctly on RedHat 8.0 for instance , let's for a ride ;) Step 1: After you downloaded and registered with Borland , you get the kylix files and the reg file ... Now the fun begins ... Step 2: Do not install it with the default "sh setup.sh" if you install as root, the rpm manager has a bug on redhat(and on others latest distributions also) , so do a install without it like this: "sh setup.sh -m" , the steps of instalation are equal and the instalation works . Step 3: If you don't downloaded the Kylix open update 2 from borland , do it, it resolves a serious bug with locales (resources,etc...) Step 4: Now that you thought that the fun was over , it starts all over again , you must upgrade the linux kernel !!!! The damn dialogs on Kylix are always freezing ... Step 5: Go to ftp.kernel.org/pu/linux/[^] and download the latest stable linux kernel - 2.4.19 Kernel upgrade : 1. Download the kernel tarball to home directory ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.19.tar.gz 2. log to superuser "su - root" 3. copy the downloaded kernel tarball to /usr/src/ "cp linux-2.4.19.tar.gz /usr/src/" 4. change to the directory you copied the kernel to "cd /usr/src/" 5. uncompress the kernel tarball "gzip -cd linux-2.4.19.tar.gz | tar xfv -" 6. delete the symbolic link and create it again to the 2.4.19 kernel "rm linux-2.4" "ln -s linux-2.4.19 linux-2.4" 7. change directory to linux-2.4 "cd /usr/src/linux-2.4" 8. make sure you have no stale .o files and dependencies lying around "make mrproper" Workaround about a bug in the visual kernel config (xconfig) !!!!!! This one also bited me hard ... linux-2.4.18-14 is the kernel used by RedHat 8 9. "cp /usr/src/linux-2.4.18-14/configs/kernel-linux-2.14.18-i386.config .config" -> this will create a local .

                        D B 2 Replies Last reply
                        0
                        • C carrie

                          good old MOTIF, that the way to go I think. It might look pretty bad but as far as I know as long as you have X-Windows, you can run the apps. There is a freebie version of MOTIF out somewhere, I used to have to use it at university, one whole year of it. excuse the bad grammar, birthday today and quite drunk already :D

                          D Offline
                          D Offline
                          dandy72
                          wrote on last edited by
                          #22

                          I used Motif when I was in college, and a few years ago rescued the whole Motif reference book series (more or less 8 books, roughly 8000 pages worth) that was headed for the dumpster (still shrinkwrapped!) So is this stuff still worth hanging on to, in the somewhat unlikely event that I might someday write something for Linux? My understanding is that using Motif buys you independence both from Gnome and KDE. Is this right? (This is probably getting dangerously close to a "What is Motif, and what is its place in 2002?" FAQ)...

                          1 Reply Last reply
                          0
                          • D dandy72

                            :wtf: Nice. Whatever happened to "Next/Next/Next/Finish"?

                            J Offline
                            J Offline
                            Joao Vaz
                            wrote on last edited by
                            #23

                            Daniel Desormeaux wrote: Whatever happened to "Next/Next/Next/Finish"? Yeah! Since I currently work in a *nix environment I'm getting used to it :omg: , I losing some bad habits from the Windows world :laugh: Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

                            D 1 Reply Last reply
                            0
                            • J Joao Vaz

                              You have Kdevelop [^] , it's getting better with the age and kylix 3, the open version is free :-D , it produces native linux execs , but it's a pain in the butt to make it work correctly on a non linux supported linux distribution , for instance they only support RedHat 7.2 ... now the fun part is if you want to make it work correctly on RedHat 8.0 for instance , let's for a ride ;) Step 1: After you downloaded and registered with Borland , you get the kylix files and the reg file ... Now the fun begins ... Step 2: Do not install it with the default "sh setup.sh" if you install as root, the rpm manager has a bug on redhat(and on others latest distributions also) , so do a install without it like this: "sh setup.sh -m" , the steps of instalation are equal and the instalation works . Step 3: If you don't downloaded the Kylix open update 2 from borland , do it, it resolves a serious bug with locales (resources,etc...) Step 4: Now that you thought that the fun was over , it starts all over again , you must upgrade the linux kernel !!!! The damn dialogs on Kylix are always freezing ... Step 5: Go to ftp.kernel.org/pu/linux/[^] and download the latest stable linux kernel - 2.4.19 Kernel upgrade : 1. Download the kernel tarball to home directory ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.19.tar.gz 2. log to superuser "su - root" 3. copy the downloaded kernel tarball to /usr/src/ "cp linux-2.4.19.tar.gz /usr/src/" 4. change to the directory you copied the kernel to "cd /usr/src/" 5. uncompress the kernel tarball "gzip -cd linux-2.4.19.tar.gz | tar xfv -" 6. delete the symbolic link and create it again to the 2.4.19 kernel "rm linux-2.4" "ln -s linux-2.4.19 linux-2.4" 7. change directory to linux-2.4 "cd /usr/src/linux-2.4" 8. make sure you have no stale .o files and dependencies lying around "make mrproper" Workaround about a bug in the visual kernel config (xconfig) !!!!!! This one also bited me hard ... linux-2.4.18-14 is the kernel used by RedHat 8 9. "cp /usr/src/linux-2.4.18-14/configs/kernel-linux-2.14.18-i386.config .config" -> this will create a local .

                              D Offline
                              D Offline
                              dandy72
                              wrote on last edited by
                              #24

                              :wtf: Nice. Whatever happened to "Next/Next/Next/Finish"?

                              J 1 Reply Last reply
                              0
                              • J Joao Vaz

                                Daniel Desormeaux wrote: Whatever happened to "Next/Next/Next/Finish"? Yeah! Since I currently work in a *nix environment I'm getting used to it :omg: , I losing some bad habits from the Windows world :laugh: Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

                                D Offline
                                D Offline
                                dandy72
                                wrote on last edited by
                                #25

                                IMHO that's one of the reasons I don't see Linux taking over the desktop anytime soon--the current attitude is, "oh well, you get used to it" and the Linux zealots don't have much of an incentive to improve anything beyond that. If they want Linux to take over the desktop (or even simply make inroads), they *need* to achieve the "Next/Next/Next/Finish" usability level--they need to start by putting this higher on their priority list... My two cents anyway...

                                J 1 Reply Last reply
                                0
                                • D dandy72

                                  IMHO that's one of the reasons I don't see Linux taking over the desktop anytime soon--the current attitude is, "oh well, you get used to it" and the Linux zealots don't have much of an incentive to improve anything beyond that. If they want Linux to take over the desktop (or even simply make inroads), they *need* to achieve the "Next/Next/Next/Finish" usability level--they need to start by putting this higher on their priority list... My two cents anyway...

                                  J Offline
                                  J Offline
                                  Joao Vaz
                                  wrote on last edited by
                                  #26

                                  Daniel Desormeaux wrote: they *need* to achieve the "Next/Next/Next/Finish" usability level--they need to start by putting this higher on their priority list... They are trying , but it will be a very,very long run , the kind of problems on linux that can happen are way more that n*log2n problems than on windows ... X| X| X| Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

                                  1 Reply Last reply
                                  0
                                  • J Joao Vaz

                                    You have Kdevelop [^] , it's getting better with the age and kylix 3, the open version is free :-D , it produces native linux execs , but it's a pain in the butt to make it work correctly on a non linux supported linux distribution , for instance they only support RedHat 7.2 ... now the fun part is if you want to make it work correctly on RedHat 8.0 for instance , let's for a ride ;) Step 1: After you downloaded and registered with Borland , you get the kylix files and the reg file ... Now the fun begins ... Step 2: Do not install it with the default "sh setup.sh" if you install as root, the rpm manager has a bug on redhat(and on others latest distributions also) , so do a install without it like this: "sh setup.sh -m" , the steps of instalation are equal and the instalation works . Step 3: If you don't downloaded the Kylix open update 2 from borland , do it, it resolves a serious bug with locales (resources,etc...) Step 4: Now that you thought that the fun was over , it starts all over again , you must upgrade the linux kernel !!!! The damn dialogs on Kylix are always freezing ... Step 5: Go to ftp.kernel.org/pu/linux/[^] and download the latest stable linux kernel - 2.4.19 Kernel upgrade : 1. Download the kernel tarball to home directory ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.19.tar.gz 2. log to superuser "su - root" 3. copy the downloaded kernel tarball to /usr/src/ "cp linux-2.4.19.tar.gz /usr/src/" 4. change to the directory you copied the kernel to "cd /usr/src/" 5. uncompress the kernel tarball "gzip -cd linux-2.4.19.tar.gz | tar xfv -" 6. delete the symbolic link and create it again to the 2.4.19 kernel "rm linux-2.4" "ln -s linux-2.4.19 linux-2.4" 7. change directory to linux-2.4 "cd /usr/src/linux-2.4" 8. make sure you have no stale .o files and dependencies lying around "make mrproper" Workaround about a bug in the visual kernel config (xconfig) !!!!!! This one also bited me hard ... linux-2.4.18-14 is the kernel used by RedHat 8 9. "cp /usr/src/linux-2.4.18-14/configs/kernel-linux-2.14.18-i386.config .config" -> this will create a local .

                                    B Offline
                                    B Offline
                                    Braulio Dez
                                    wrote on last edited by
                                    #27

                                    Hi Joao ! That was the thing I was afraid of... I had a similar experience one time trying to download some Apache JSP stuff, and make it work in a Mandrake version :-( So... It seems that with KDevelop it can happen the same ?, problems to install it, problems to make work your app on any linux machine :-( Greetings Braulio

                                    J T 2 Replies Last reply
                                    0
                                    • B Braulio Dez

                                      Hi Joao ! That was the thing I was afraid of... I had a similar experience one time trying to download some Apache JSP stuff, and make it work in a Mandrake version :-( So... It seems that with KDevelop it can happen the same ?, problems to install it, problems to make work your app on any linux machine :-( Greetings Braulio

                                      J Offline
                                      J Offline
                                      Joao Vaz
                                      wrote on last edited by
                                      #28

                                      Braulio Díez wrote: So... It seems that with KDevelop it can happen the same ?, problems to install it, problems to make work your app on any linux machine Well, the problem is minor, since all the latest distributions already have KDE 3 with Kdevelop from the origin, so it's painfullness :-D Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9 Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

                                      1 Reply Last reply
                                      0
                                      • B Braulio Dez

                                        Thanks, Where can I find a good quickstart tutorial about that ? Thanks, greetings Braulio

                                        M Offline
                                        M Offline
                                        markkuk
                                        wrote on last edited by
                                        #29

                                        How to Learn Qt

                                        1 Reply Last reply
                                        0
                                        • B Braulio Dez

                                          Hi Joao ! That was the thing I was afraid of... I had a similar experience one time trying to download some Apache JSP stuff, and make it work in a Mandrake version :-( So... It seems that with KDevelop it can happen the same ?, problems to install it, problems to make work your app on any linux machine :-( Greetings Braulio

                                          T Offline
                                          T Offline
                                          thawes
                                          wrote on last edited by
                                          #30

                                          Not very likely that you will have any problems with Kdevelop. It ships with almost every Linux distribution.

                                          As far as Kylix 3 is concerned, I have had no trouble installing it on SuSE 8.0 and on Debian.

                                          I highly recommend using the Debian distribution. It doesn't have a graphical installation tool, and some of the system is not as automated as either RedHat, Mandrake, nor SuSE... BUT, it has the best system update mechanism, consists of over 10,000 packages (including Apache JSP, Kdevelop, and Anjuta), have the least trouble using new third party software with (I run Win4Lin and Kylix 3). Once I setup a Debian system, there is no maintenance for me to do... none. I run a Debian workstation here at work that I have not had to reboot (even after weekly automated upgrades to the system) for anything.

                                          There is a price to pay for this god-like efficiency, though. You install Linux, you become a UNIX system administrator instantly, without training, without previous experience to draw from, and your only help comes from either the "install support" that ships with the product or the internet. Nevertheless, this can be a good experience if you prepare yourself for it, and dump all notions that your new Linux system is going to be just like Windows.

                                          As far as Quickstarts on programming KDE / QT, there is material for that that installs with Kdevelop. You can read and search the docs within the IDE.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups