Thread: Port app from Windows to Linux

  1. #1
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058

    Port app from Windows to Linux

    First of all, I have almost no experience in the Linux environment. With that said, I have a few questions:

    I have a Windows back end server running as an NT service. This server sends an updated Access MDB file to any/all clients requesting an updated MDB file. Thus, is there an equivalent of a Windows NT service in Linux? Also, is there any way to programmatically create and update Access MDB files in Linux? If not, can you recommend another approach to creating/updating any type of database in Linux?

    Also, I use the Windows registry quite extensively for storing and retrieving data. Is there a Linux equivalent the the "registry"?

    The front end client is a Windows GUI that I will port to Linux. I plan to use wxWidgets for the port. Can anybody offer any suggestions, tips etc. to make life a little easier for me as I do the port?



    Thanx for any assistance offered.

    Bob
    Last edited by BobS0327; 02-05-2006 at 12:43 PM. Reason: Additional question

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >>If not, can you recommend another approach to creating/updating any type of database in Linux?

    PostgreSQL is a good OSS Database that ships with many linux distros. You could try that.
    www.postgresql.org/

    >>I plan to use wxWidgets for the port. Can anybody offer any suggestions, tips etc. to make life a little easier for me as I do the port?

    Which windowing environment are you targeting? It would be a lot easier to build a GUI with something like GLADE
    http://glade.gnome.org/


    I don't really know anything about windows NT services so I can't really try to draw a comparison there. I'm not sure about Access db operations either.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    I'll have to check out Glade. I originally was going to start with KDE but I just can't get it running on my P2 box with a Debian distro. So, I installed XFCE4 which runs fine. I was under the impression that most Linux distros came with KDE and gnome. I just don't understand why KDE won't fire up.

    But anyway, a Window NT service allows a background application to run 24/7 whether or not someone is logged into the system. Normally, this service would not have any interaction with the desktop.

    I guess I'll probably have to use a PostgreSQL database for my original "registry" data.

    Also, my app has be run on as many "flavors" of Unix as possible. So, I have to choose a database and desktop environment that is common to most Linux distros. As I said before, it's my impression that KDE and gnome are common to most distros. Thus Glade looks promising.

    Thanx

  4. #4
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    according to one of wxwidgets development team, wxwidgets is a code / build once, run anywhere.

    so using wxwidgets would automatically port your app to all 30 odd operating systems wxwidgets supports.

    I've been fighting debian for the last 13 hours to get a gui installed myself, for some reason it keeps throwing errors.
    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.

  5. #5
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Thus, is there an equivalent of a Windows NT service in Linux?
    Daemon

  6. #6
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    I've been fighting debian for the last 13 hours to get a gui installed myself, for some reason it keeps throwing errors
    I know the feeling. This is my first Linux install on an old P2 box. Fortunately, everything went smooth except the GUI desktop.

    I'm still having problems with it. But I think its user problems because I have almost no Linux experience.

    BTW, can you recommend a good basic text editor for Linux? Something that can be learned in about 5 minutes. Just basic new, open and save text files. I'm not particularly thrilled about using vi or Emacs. Bottom line, is I want to start writing code ASAP not learn about the functionality of a text editor.

    Also, looks like a daemon is the answer to my back end service.

    Thanx

    Bob

  7. #7
    Sr. Software Engineer filker0's Avatar
    Join Date
    Sep 2005
    Location
    West Virginia
    Posts
    235
    Quote Originally Posted by BobS0327
    BTW, can you recommend a good basic text editor for Linux? Something that can be learned in about 5 minutes. Just basic new, open and save text files.
    I'd suggest nano; You'll probably want to run it with the "-w" command line switch, as this disables auto-wrap, which you generally don't want enabled when programming.
    Code:
    > man nano
    should get you enough information to get started.
    Insert obnoxious but pithy remark here

  8. #8
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    Thanx for all the info. It's been a great help.

  9. #9
    Amazingly beautiful user.
    Join Date
    Jul 2005
    Location
    If you knew I'd have to kill you
    Posts
    254
    If your graphical, and have any luck installing KDE eventually, give Kate a try. Its a nice editor.
    Programming Your Mom. http://www.dandongs.com/

  10. #10
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Quote Originally Posted by Jaqui
    according to one of wxwidgets development team, wxwidgets is a code / build once, run anywhere.
    I was looking into wxWidgets for a while, and the above isn't true. To build once run anywhere you need a RTE to interpret, and wxWidgets doesn't have a RTE, you have to compile your application on each platform you want it to run on. You will have seperate binaries for each. Their *nix ones generally run on almost all flavors of *nix (none of my friends had any issues running my apps).

  11. #11
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Wraithan,

    I don't doubt that the person that told me that wasn't clear, since his comment was:
    " Build once, run anywhere"

    To me, build is compile, to him it seems to be code.

    how can a *x app run on a windows os, the binary format is completely different, so it's an impossibility to compile an executable once and run it on any os, without sucking resources into an rte.

    for doing cross platform development, it's probably one of the easiest widget sets available to work with.
    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.

  12. #12
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    I'd be a real "happy camper" if wxWidgets works without any major problems on all Linux distros and gui desktops available.

    The only downside from my perspective is that I'll have to convert my existing C code into C++ code to keep the Linux/wxWidgets project consistent. IMO, mixing C and C++ is just downright ugly.

  13. #13
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Quote Originally Posted by BobS0327
    The only downside from my perspective is that I'll have to convert my existing C code into C++ code to keep the Linux/wxWidgets project consistent. IMO, mixing C and C++ is just downright ugly.
    Not just ugly, it can create conflicts during the build process, since the compile is working differently with each language. Specially if you call the C++ compiler directly instead of using the automatic language detection in the gcc call.
    [ use gcc, and it will determin which compiler is required for which bit of code, use g++ and the c code could choke the compiler. ]
    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. Build linux on windows
    By baash05 in forum Linux Programming
    Replies: 6
    Last Post: 02-19-2008, 10:12 PM
  2. windows game programming on Linux?
    By 124 in forum Linux Programming
    Replies: 18
    Last Post: 03-23-2006, 05:14 PM
  3. Windows -> Linux
    By misplaced in forum C++ Programming
    Replies: 6
    Last Post: 12-19-2004, 11:27 AM
  4. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 11:36 AM
  5. Linux / Windows
    By MethodMan in forum Linux Programming
    Replies: 19
    Last Post: 07-09-2002, 02:58 PM