Running .exe file in ubuntu 22.04lts

Nothing_is_wrong

New Member
Joined
Oct 21, 2024
Messages
3
Reaction score
0
Credits
28
How to run a c coded .exe file as a app , like i have written down few c code run those .exe files in ubuntu 22.04 lts , ?
 


Just don't do it. as already explained an .exe is for WINDOZE. Please do not pollute your linux install with wine and other WINDOZE things... recompile the code for linux please. At least you know it will work right.
 
@tahsin, first install wine.
Code:
sudo apt install wine


You can call a exe-file e.g.:
Code:
wine start /unix /home/yourpath/WinExe/Poker/Poker.exe

(necessary DLLs and all data-files must be also in the path)

wine settings :

Code:
WINEPREFIX=${HOME}/wine-test wine winecfg

I did test winecfg, got an error, second time it works.
 
Just don't do it. as already explained an .exe is for WINDOZE. Please do not pollute your linux install with wine and other WINDOZE things... recompile the code for linux please. At least you know it will work right.
if i write any code in linux in vs code , and i wanr to see the programme running without using vs code you can say as a normal application how to run it then?
 
if i write any code in linux in vs code , and i wanr to see the programme running without using vs code you can say as a normal application how to run it then?
Well if you use VS Code, there's gotta be a plugin so you can just hit Ctrl +F5 (make sure it's for linux elf format). Elseif you can't find it, you need to make the output eXecutable and then run as you would a script: chmod +x myapp && ./myapp
So it maybe be an idea to writea script to build and then run your app in the CLI. With this script you can assign it a shortcut key or dock/desktop shortcut. That was my workflow as I only started recently with VS Code. Yes, good old text editors with nothing fancy. But having an IDE for bigger projects helps a lot. I digress. If you're compiling for Windows, I suggest a Windows environment. It makes life a lot easier to set up a VM with file sharing and develop the Windows build there as you will need to unit testing a lot. Alternatively, if you are using common libraries and not doing anything graphical, there are web-based IDEs.
 

Members online


Top