Hi
I like to compile Hyperion in kali linux but it seems command not found?
How can I get the path and compile it?

/usr/share/windows-binaries/Hyperion-1.0# ls
Examples Fasm FasmAES-1.0 license.txt Makefile Obj readme.txt Src
root@kali:/usr/share/windows-binaries/Hyperion-1.0# i586-mingw32msvc-g++ Src/Crypter/*.cpp -o hyperion.exe

bash: i586-mingw32msvc-g++: command not found

I appriciate your help

Dani AI

Generated

Two separate problems are visible in the thread: the build toolchain for producing Windows binaries, and the Windows runtime dependencies when running the produced EXE under Wine. correctly pointed toward installing a proper compiler toolchain; for cross-compiling from a Debian-derived system the recommended route is a MinGW cross-toolchain rather than the native Linux GCC alone.

Prefer the modern mingw-w64 toolchain and pick the correct target triplet for the intended Windows architecture. Example compile patterns (pick the 64‑ or 32‑bit variant as appropriate):

# 64-bit target
x86_64-w64-mingw32-g++ -O2 -static-libgcc -static-libstdc++ -o hyperion.exe Src/Crypter/*.cpp

# 32-bit target
i686-w64-mingw32-g++ -O2 -static-libgcc -static-libstdc++ -o hyperion32.exe Src/Crypter/*.cpp

The two key points in those examples: 1) use the triplet-named cross-compiler supplied by mingw-w64, and 2) the -static-libgcc -static-libstdc++ flags embed the GCC/libstdc++ runtimes so the EXE does not require separate runtime DLLs at launch under Wine.

If static linking is not desired or fails (some libraries cannot be statically linked), bundle the matching MinGW runtime DLLs shipped with the cross-toolchain into the same directory as the EXE or place them into Wine’s virtual Windows system folder. The runtime build variant must match the compiler’s exception model (sjlj / seh / dw2), otherwise the program will still fail to load.

Useful verification and debug points: confirm which cross-compiler binary is on PATH, check the produced EXE’s PE type and architecture with file, and run Wine with DLL-load debugging enabled to see exactly which libraries are missing. Finally, ensure this work is pursued for legitimate, ethical development or analysis purposes.

Recommended Answers

All 5 Replies

You need to install the GNU compiler suite for your system. That will include gcc, g++, and such. You may also need to install make and cmake.

Thanks I istalled now apt-get install gcc-mingw32
But when I ran I got those error?

root@kali:/usr/share/windows-binaries/Hyperion-1.0# wine hyperion.exe /root/Desktop/a.exe /root/Desktop/ab.exe
err:module:import_dll Library libgcc_s_sjlj-1.dll (which is needed by L"Z:\usr\share\windows-binaries\Hyperion-1.0\hyperion.exe") not found
err:module:import_dll Library libstdc++-6.dll (which is needed by L"Z:\usr\share\windows-binaries\Hyperion-1.0\hyperion.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\usr\share\windows-binaries\Hyperion-1.0\hyperion.exe" failed, status c0000135

Why did you install Ming under Wine? That is a Windows version of the Gnu compiler. If you are running Linux, you need to install the native GCC suite.

Hi

The reasen is to compile windows cource code under linux(cross compile it).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.