Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How a Windows Developer can most easily get his software to work well under Wine

Many of my users have been telling me that they'd like to run my software on their Linux machines under Wine.

But I'm a Windows Developer who has practically no experience with Linux.

Now I could spend a month or two installing Linux, learning Linux, installing Wine, learning Wine, and thoroughly ensure my application runs well under Wine. But I am still developing for Windows, so I don't want to take so much time away from development right now.

So what can I do without too much effort to get my program running as well as possible under Wine?


I did find this General help on running applications under Wine.

like image 317
lkessler Avatar asked Jan 07 '09 05:01

lkessler


People also ask

How do I run a program under Wine?

3.1 How to install and run Windows programs Most binary Wine packages will associate Wine with .exe files for you. If that is the case, you should be able to simply double-click on the .exe file in your file manager, just like in Windows. You can also right-click on the file, choose "Run with", and choose "Wine".

Can Wine run any Windows program?

That's it. Wine is now ready to help you install and run Windows applications. Remember, however, that not every application will work. Most will, but if you're looking to get your in-house, proprietary solution up and running, you might hit a few snags.

How can I run Windows programs on Linux?

Windows applications run on Linux through the use of third-party software. This capability does not exist inherently in the Linux kernel or operating system. The simplest and most prevalent software used for running Windows applications on Linux is a program called Wine.


2 Answers

Download VMWare and an Ubuntu virtual machine (Ubuntu is a popular Linux distribution) from the VMWare site. This will provide you with a working Linux O/S inside your Windows environment without needing to install Linux manually.

You can then use the instructions here to install Wine, that Wiki page also provides you with some instructions on how to use it.

If you follow what Adam Rosenfield suggested and just try running your application in Wine unmodified, you will be able to determine quickly whether there are problems. My guess would be that there are some, otherwise your users would not have contacted you about it :)

There are many ways for getting help with debugging applications in Wine, consult the website for options and pick a few ways that suit you. As always, it's best not to rely on a single channel for communication.

Also, if you are more comfortable with developing in Windows, the approach of using a virtual machine will allow you to compile your code as usual in Windows and copy the binary into the virtual machine for testing (Ubuntu supports browsing/mounting Windows shares).

like image 122
seanhodges Avatar answered Sep 22 '22 21:09

seanhodges


As long as you're not doing anything unusual such as playing around with hardware or poking around in undocumented API calls and data structures, you should be able to run your code under Wine with few or no modifications. Wine has a fairly complete implementation of the public Windows APIs, so if your program plays nice and doesn't mess around, it should just work.

like image 36
Adam Rosenfield Avatar answered Sep 22 '22 21:09

Adam Rosenfield