How to activate programs on windows from Linux machine
According to the documentation of winexe:
--interactive=0|1
Desktop interaction: 0 - disallow, 1 - allow.
If you allow use also --system switch (Win > requirement).
Vista do not support this option.
So --interactive=1 --system
should do the trick.
Is it possible to write a C program on Windows for Linux
Yes, if you setup WSL2, you should be able to develop C like you did on your VirtualBox machine. If decide to use Ubuntu, running sudo apt-get install build-essential
should give you everything you need to compile and run C programs.
Develop on Windows and running on linux machines
First, install Linux in a virtual PC like VirtualBox or VirtualPC or something from vmware.
Then configure Eclipse for remote development. That allows you to run tools (like the debugger, the compiler suite, etc) on Linux from your Windows desktop inside of Eclipse. You edit the files just like you're used to, you debug as if the app was running local on Windows, etc. Eclipse will do the plumbing.
Deploy Qt to Windows on a Linux machine
Yes, it's of course possible.
You have to cross-compile Qt using the MinGW compiler, targeting Windows.
You'll have to patch and build windeployqt yourself. By default, windeployqt is looking for
g++.exe
in the path. Of course this makes no sense on a linux build host, so you'd have to tweak it so that it finds the correct compiler and runtime libraries.You can then build your application using the cross-targeted Qt build, and deploy all the necessary artifacts into some
deploy
folder using windeployqt.To package the deployed build, you can run
nsis
orwix
on Linux as well, to obtain a Windows installer. You can even sign the executable files (required these days for Windows), there's an open source tool calledosslsigncode
- it works on most platforms and doesn't require Windows.
It'll take a bit of time for you to figure it all out. It's certainly easiest to just build on Windows and not mess with it. But if you insist on building on Linux - you certainly can.
Developing Windows applications on Linux?
Check Qt too. It's a very rich cross-platform framework.
As for installers I'd highly recommend WiX.
For testing it will be much better to use some kind of virtualization like Sun Microsystems's VirtualBox. I believe you could use a trial version of Windows or Windows 7 RC, which is free to use until March 2010.
How to debug remote program running on linux from windows
- Install an X-Windows server on your windows machine, there are quite a few alternatives (e.g. cygwin/X).
- SSH to the linux machine with X forwarding enabled, or setup your X server to accept connections from your linux machine and manually setup the DISPLAY on the linux machine.
- Install and run e.g.
ddd
on the linux machine - it'll display on your windows machine - debug
Related Topics
How to Get Curl to Not Show the Progress Bar
How to Use Sed to Remove the Last N Lines of a File
How to Include a Pipe | in My Linux Find -Exec Command
Opening a .Tar.Gz File with a Single Command
How to Stop a Running R Command in Linux Other Than with Ctrl + C
How to Force Linking with a Static Library When a Shared Library of Same Name Is Present
How to Find the Processor/Chip Architecture on Linux
G++ Searches /Lib/../Lib/, Then /Lib/
Bash Output Stream Write to a File
How to Pack Multiple Library Archives (.A) into One Archive File
Difference Between Printf and Echo in Bash
Where Is the Linux Isr Entry Point
How to Cut an Existing Variable and Assign to a New Variable in Bash
Get Filesystem Mount Point in Kernel Module
How to Remove All Lines from a Text File Starting at First Empty Line