wxHexEditor icon indicating copy to clipboard operation
wxHexEditor copied to clipboard

How do I compile on windows?

Open Civans opened this issue 4 years ago • 6 comments

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?

Civans avatar Jul 01 '20 23:07 Civans

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.)

EUA avatar Jul 03 '20 13:07 EUA

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.

Civans avatar Jul 04 '20 15:07 Civans

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.

EUA avatar Jul 05 '20 22:07 EUA

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

abdulbadii avatar Jul 22 '20 03:07 abdulbadii

How I can build it for Win (VS2019) ?

Falen13 avatar Sep 18 '20 17:09 Falen13

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

circulosmeos avatar Mar 22 '21 19:03 circulosmeos