Author Topic: [REQUEST TUTORIAL] Windows app to Linux app  (Read 1721 times)

GlestNetwork

  • Guest
[REQUEST TUTORIAL] Windows app to Linux app
« on: 18 October 2010, 22:09:28 »
Hello guys! I know that a lot of you guys here use lunix for your operating system. Does anybody know about to convert a windows app to a lunix app?
« Last Edit: 19 October 2010, 06:37:45 by -Archmage- »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #1 on: 19 October 2010, 00:25:01 »
There's no way to convert a program, but as long as you use cross platform code (meaning, don't use the windows API!) such as an engine like Qt or WXWidgets to draw the windows, it can be compiled on any supporting operating system, thus, when you distribute the code ( ;) ), other people on those specific operating systems (such as Linux, Macs, FreeBSD, etc) can then compile and may upload the binary in their operating system's format, thus allowing you to distribute those binaries as well for ease of use.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

GlestNetwork

  • Guest
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #2 on: 19 October 2010, 00:38:08 »
So programming tools such as C++, C#, VB.net, Java, etc. will work?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #3 on: 19 October 2010, 01:09:18 »
So programming tools such as C++, C#, VB.net, Java, etc. will work?
Those are all languages, and are cross platform. It's only the executable that you compile into that is not, and even that executable can sometimes be shared. For example, all Windows NT executables are compatable with each other, most newish linux executables are (with exceptions), no clue about macs. In addition, it *is* possible to use a windows executable on linux with WINE (an emulator), but that's a big hassle and isn't guaranteed.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

GlestNetwork

  • Guest
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #4 on: 19 October 2010, 03:14:10 »
So then, what can I do that will GUARANTEE to work on a lunix os?

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #5 on: 19 October 2010, 03:21:21 »
So then, what can I do that will GUARANTEE to work on a lunix os?

Use a cross-platform API.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

GlestNetwork

  • Guest
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #6 on: 19 October 2010, 03:58:34 »
Can you provide a link for me? I don't feel like googling  :P

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #7 on: 19 October 2010, 05:47:15 »
Here's three of the 'bigger' (or better known) ones, all for C++.

http://www.wxwidgets.org/
http://qt.nokia.com/
http://www.gtk.org/

Or of course if you are programming in Java, you can just use Swing, which is completely platform neutral,
http://download.oracle.com/javase/tutorial/uiswing/

If you are using a .NET language, you can get GTK#,
http://www.mono-project.com/GtkSharp
(winforms .NET apps will also work on linux, but there are some 'issues' with it, and I would not recommended it).
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Gabbe

  • Guest
Re: [REQUEST TUTORIAL] Windows app to Lunix app
« Reply #8 on: 19 October 2010, 06:25:34 »
lunix srsly.. I belive it is linux

 

anything