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. Cross platform for the C++ guy (protable C++ or .NET)

Cross platform for the C++ guy (protable C++ or .NET)

Scheduled Pinned Locked Moved The Lounge
csharpc++linuxdiscussionlearning
12 Posts 8 Posters 0 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.
  • C cgreathouse

    I wanted to get some thoughts on C++ people that build (or are thinking about) cross platform applications. I grew up on Windows but lately been wanted to get into linux. So what would you do if you wanted to build an app that had to run on both windows and linux. Of course you may have to wait for the mono stuff to finish first if you went the .NET route.

    D Offline
    D Offline
    dorkshoe
    wrote on last edited by
    #3

    Check out wxWindows. http://www.wxwindows.org/[^]

    J 1 Reply Last reply
    0
    • C cgreathouse

      I wanted to get some thoughts on C++ people that build (or are thinking about) cross platform applications. I grew up on Windows but lately been wanted to get into linux. So what would you do if you wanted to build an app that had to run on both windows and linux. Of course you may have to wait for the mono stuff to finish first if you went the .NET route.

      R Offline
      R Offline
      Ryan_Roberts
      wrote on last edited by
      #4

      My current baby needs to run on Windows, Linux and FreeBSD, its a distributed telephony app of sorts. I am using boost (http://www.boost.org[^]) for threading and because its generaly really handy. The database template libarary (http://dtemplatelib.sourceforge.net/dtl_introduction.htm[^]) gives me a portable ( and cute, if you like templates ) database layer. I am using gsoap (http://www.cs.fsu.edu/~engelen/soap.html[^]) for IPC, which is a pretty intuative and bloody fast SOAP implementation, once you get used to some of the interface compilers quirks. WxWindows is good for GUI's, although I have only ever used it from Python. I figure its mainly a question of choosing frameworks that target your chosen platforms and not doing stupid things like using CoCreateGUID and figuring you will sort it out later :-O Ryan. Computers allow you to make more mistakes than any other invention, with the possible exception of handguns and tequila.

      1 Reply Last reply
      0
      • D dorkshoe

        Check out wxWindows. http://www.wxwindows.org/[^]

        J Offline
        J Offline
        Jason Hihn
        wrote on last edited by
        #5

        wxWindows is where it's at!!! It does everything you need/want.

        1 Reply Last reply
        0
        • C cgreathouse

          I wanted to get some thoughts on C++ people that build (or are thinking about) cross platform applications. I grew up on Windows but lately been wanted to get into linux. So what would you do if you wanted to build an app that had to run on both windows and linux. Of course you may have to wait for the mono stuff to finish first if you went the .NET route.

          J Offline
          J Offline
          Jim Crafton
          wrote on last edited by
          #6

          Check out the Visual Component Framework by yours truly at http://sourceforge.net/projects/vcf[^] and http://vcf.sourceforge.net/[^] It is now in the process of being ported to linux as we speak. I have also written some articles on CP Using the C++ RTTI/Reflection APIs in the VCF[^] Writing a Scribble application using the Visual Component Framework[^] and several others There is also an IDE being built, that you can download and try out Right Now(tm)! Screen Shots: here[^] Download it: VCF Builder 1.0.3 Alpha[^] It has a BSD License, which means you can pretty much do whatever you want, either for personal/free use or in commercial apps. It is being used in a couple of different commercial applications that I am aware of. Cheers ! ¡El diablo está en mis pantalones! ¡Mire, mire!

          1 Reply Last reply
          0
          • C cgreathouse

            I wanted to get some thoughts on C++ people that build (or are thinking about) cross platform applications. I grew up on Windows but lately been wanted to get into linux. So what would you do if you wanted to build an app that had to run on both windows and linux. Of course you may have to wait for the mono stuff to finish first if you went the .NET route.

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

            Factor out networking and threading into libraries that have one API regardless of the platform. Use STL (http://www.stlport.org[^]) for everything else. Avoid Rogue Wave if you can for new projects. For the front end, you might need to use qt, or gtk though. Regards Barry

            1 Reply Last reply
            0
            • C cgreathouse

              I wanted to get some thoughts on C++ people that build (or are thinking about) cross platform applications. I grew up on Windows but lately been wanted to get into linux. So what would you do if you wanted to build an app that had to run on both windows and linux. Of course you may have to wait for the mono stuff to finish first if you went the .NET route.

              L Offline
              L Offline
              Lunchy
              wrote on last edited by
              #8

              I've been using wxWindows for a while now and I like it. I have yet to compile it on linux yet as..well...I dunno how. :( If anyone know's of any tutorials on how I can compile my app with it in Linux, I'd love to see'em. :) -Lunchy

              J 1 Reply Last reply
              0
              • L Lunchy

                I've been using wxWindows for a while now and I like it. I have yet to compile it on linux yet as..well...I dunno how. :( If anyone know's of any tutorials on how I can compile my app with it in Linux, I'd love to see'em. :) -Lunchy

                J Offline
                J Offline
                Jim Crafton
                wrote on last edited by
                #9

                while I have not compiled wxWIndows on linux, if they have the more traditional build tools, then you will probably need to create a make file. make files suck (IMHO). however if you have a relatively small project it is not too hard. if you have to compile wxWindows itself, the traditional way is to have a file name "configure", which is a shell script in the root directory of the code base you are compiling. You run this first (usually only the very first time you build the code) and it auto generates a file or series of files that get used in the compile phase (usually a file called "config.h" or something similar). the command looks like "./configure" then you run make "make" and then if you have to install it, you log in as super user (assuming you do not have write provileges to the system directories) "su" and enter the password for the root account then "make install" so to sum up: ./configure make su (followed by the root password) make install Creating a makefile is an article all by itself :) ¡El diablo está en mis pantalones! ¡Mire, mire!

                L 1 Reply Last reply
                0
                • J Jim Crafton

                  while I have not compiled wxWIndows on linux, if they have the more traditional build tools, then you will probably need to create a make file. make files suck (IMHO). however if you have a relatively small project it is not too hard. if you have to compile wxWindows itself, the traditional way is to have a file name "configure", which is a shell script in the root directory of the code base you are compiling. You run this first (usually only the very first time you build the code) and it auto generates a file or series of files that get used in the compile phase (usually a file called "config.h" or something similar). the command looks like "./configure" then you run make "make" and then if you have to install it, you log in as super user (assuming you do not have write provileges to the system directories) "su" and enter the password for the root account then "make install" so to sum up: ./configure make su (followed by the root password) make install Creating a makefile is an article all by itself :) ¡El diablo está en mis pantalones! ¡Mire, mire!

                  L Offline
                  L Offline
                  Lunchy
                  wrote on last edited by
                  #10

                  Thanks for the help/reply! I got wxWindows compiled, but my app is where I get lost. It's the makefile I have a problem with. I have an example makefile that I'm gonna try and base mine off of, so we'll see... -Lunchy

                  J 1 Reply Last reply
                  0
                  • L Lunchy

                    Thanks for the help/reply! I got wxWindows compiled, but my app is where I get lost. It's the makefile I have a problem with. I have an example makefile that I'm gonna try and base mine off of, so we'll see... -Lunchy

                    J Offline
                    J Offline
                    Jim Crafton
                    wrote on last edited by
                    #11

                    Well if it helps - I got curious again and tried to make a makefile for the framework I wrote (I normally use a build tool I wrote called xmake, which uses xml and is much simpler to deal with) and surprise surprise I now have a pretty good grip on how to deal with it. Do you think enough people would be interested to make it worth writing an articel on CP about ? If nothing else I can send you the makefile - it is pretty well commented and takes you through most of the features that you will use in make. ¡El diablo está en mis pantalones! ¡Mire, mire!

                    L 1 Reply Last reply
                    0
                    • J Jim Crafton

                      Well if it helps - I got curious again and tried to make a makefile for the framework I wrote (I normally use a build tool I wrote called xmake, which uses xml and is much simpler to deal with) and surprise surprise I now have a pretty good grip on how to deal with it. Do you think enough people would be interested to make it worth writing an articel on CP about ? If nothing else I can send you the makefile - it is pretty well commented and takes you through most of the features that you will use in make. ¡El diablo está en mis pantalones! ¡Mire, mire!

                      L Offline
                      L Offline
                      Lunchy
                      wrote on last edited by
                      #12

                      Hrm, not sure about how much interest there is, as I dunno much of anything :), but it sure can't hurt. :) I got some help on irc tonight, but I'd be glad to have a look at what ya got... if you wanna email it... caseyw@charter.net. Thanks! -Lunchy

                      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