EUA / wxHexEditor

wxHexEditor official GIT repo
http://www.wxhexeditor.org
GNU General Public License v2.0
557 stars 118 forks source link

How do I compile on windows? #164

Open Civans opened 4 years ago

Civans commented 4 years ago

I'm trying to build on windows in codeblocks but it gives me the following errors.

||=== Build: Win32 Release in wxHexEditor (compiler: GNU GCC Compiler) ===| mhash\include\mutils\mincludes.h|34|fatal error: mutils/mhash_config.h: No such file or directory| mhash\include\mutils\mincludes.h|34|fatal error: mutils/mhash_config.h: No such file or directory| C:\wxWidgets-3.0.5\include\wx\platform.h|183|fatal error: wx/setup.h: No such file or directory| C:\wxWidgets-3.0.5\include\wx\platform.h|183|fatal error: wx/setup.h: No such file or directory| ||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Do I need to download a different version of wxWidgets?

EUA commented 4 years ago

Him... I don't use codeblocks from windows for long years. So things might get rusty. I can tell whats wrong on your debug log.

You need to compile mhash and libudis86 first. I believe I put a projects for both of them but not know if they still working. You can compile from command line with make alternatively.

Also you need wxWidgets library installed on your pc depending from your source code. You can use any version > 2.8. Please change project->build options->custom variables->wxdir to your installed wxWidgets path. (You need to download and compile wxWidgets library.)

Civans commented 4 years ago

I attempted to compile from make and it gave me the following error:

C:\Users\????\Desktop\Git Repos\wxHexEditor>mingw32-make
mingw32-make: *** No rule to make target '-lgomp', needed by 'src/HexEditorGui.o
'.  Stop.
EUA commented 4 years ago

Looks like you don't have OpenMP library. Or it's name is little different at mingw32.

Please remove -fopenmp and -lgomp flag lines at top of the Makefile.

OPT_FLAGS += -fopenmp
LIBS += -lgomp

Than that error will be vanished.

abdulbadii commented 4 years ago

The thing is our Mingw64 system is perfect, and ensure we have mintty.exe works, open it: $ pacman -Syu

for such small build we don't need IDE just mintty.exe is fine,

$ cd {our/path/to/clone/}wxHexEditor
$ make

So go on find dependencies it requires one by one by pacman -S

Falen13 commented 4 years ago

How I can build it for Win (VS2019) ?

circulosmeos commented 3 years ago

In case you just want to use last version in Windows, I've transcompiled it here: https://github.com/circulosmeos/wxHexEditor/releases