Page 1 of 1

How to build wxWidgets-3.1.2 using MinGW-w64?

Posted: Fri May 24, 2019 4:42 am
by spflanze
I am attempting to compile wxWidgets-3.1.2 using MinGW-w64 in Windows 7. I downloaded and installed MinGW-w64 from:
https://sourceforge.net/projects/mingw-w64/
In the installation I set these values:
Version: 8.1.0
Architecture: x86_64
Threads: posix
Exception seh
Build revison: 0
I started up MinGW-w64 by using the Windows Explorer to execute the batch file: mingw-w64.bat in the directory:
\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0.

In the terminal emulator window that opened I executed this command sequence, and got these results:

Code: Select all

C:\>cd C:\wxWidgets-3.1.2\build\msw
C:\wxWidgets-3.1.2\build\msw>where mingw32-make.exe
C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\mingw32
-make.exe
C:\wxWidgets-3.1.2\build\msw>mingw32-make.exe -f makefile.gcc MONOLITHIC=0 USE_X  RC=1 SHARED=1 UNICODE=1 USE_OPENGL=1 BUILD=release
mingw32-make.exe: *** No rule to make target 'USE_X'.  Stop.
What went wrong here? Why do I get this no rule error?

Re: How to build wxWidgets-3.1.2 using MinGW-w64?

Posted: Fri May 24, 2019 5:24 am
by spflanze
The error was due to "USE_X" in the make command line. It did compile after I removed it.