MegaGlest Forum

Archives (read only) => Vanilla Glest => General discussion => Topic started by: GlestNetwork on 18 October 2010, 22:09:28

Title: [REQUEST TUTORIAL] Windows app to Linux app
Post by: GlestNetwork 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?
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: Omega 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.
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: GlestNetwork on 19 October 2010, 00:38:08
So programming tools such as C++, C#, VB.net, Java, etc. will work?
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: Omega 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.
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: GlestNetwork on 19 October 2010, 03:14:10
So then, what can I do that will GUARANTEE to work on a lunix os?
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: silnarm 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.
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: GlestNetwork on 19 October 2010, 03:58:34
Can you provide a link for me? I don't feel like googling  :P
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: silnarm 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).
Title: Re: [REQUEST TUTORIAL] Windows app to Lunix app
Post by: Gabbe on 19 October 2010, 06:25:34
lunix srsly.. I belive it is linux