MegaGlest Forum
Archives (read only) => Vanilla Glest => General discussion => Topic started 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?
-
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.
-
So programming tools such as C++, C#, VB.net, Java, etc. will work?
-
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.
-
So then, what can I do that will GUARANTEE to work on a lunix os?
-
So then, what can I do that will GUARANTEE to work on a lunix os?
Use a cross-platform API.
-
Can you provide a link for me? I don't feel like googling :P
-
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).
-
lunix srsly.. I belive it is linux