7/21/2008

Rename a windows .exe file to work under linux

How to rename a windows .exe file to work under linux?

Actually I don't think that this is possible. You can't just rename it. If the executable file is a result of a source code that you have compiled then you'd have to "port" the source code to Linux. That is you'd have to rewrite(or modify) the source code so that it's Linux compatible. Part of the reason is that an executable file has in it calls to functions which are found in libraries or header files that are platform(operating system) dependend. For example the DirectX set of graphic library functions are only available on the Windows operationg system. Roughly it would be impossible to run a game like Quake that uses the DirectX library on Linux because linux doesn't have that library.

So, I don't think that this thing could be done in the general case.

0 comments: