CreateProcess, The system cannot find the file specified error Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Moonith
In need of some credit
In need of some credit
Posts: 4
Joined: Sat Aug 24, 2019 10:09 am

CreateProcess, The system cannot find the file specified error

Post by Moonith » Sat Aug 24, 2019 10:49 am

I have the same error reported here:
if not exist gcc_mswu mkdir gcc_mswu
process_begin: CreateProcess(NULL, -c "if not exist gcc_mswu mkdir gcc_mswu", ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: [gcc_mswu] Error 2 (ignored)
if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib
process_begin: CreateProcess(NULL, -c "if not exist ..\..\lib\gcc_lib mkdir ..\..\lib\gcc_lib", ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [..\..\lib\gcc_lib] Error 2
When I run

Code: Select all

mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean
or

Code: Select all

mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release
My command prompt is on the end of this post.

Information:
Windows 7 64-bits
wx 3.1.2 path: C:\SDK\wxWidgets\wx312
wx 3.0.4 path: C:\SDK\wxWidgets\wx304
MinGW path: D:\IDE\CodeBlocks\MinGW
user variables path: C:\Users\Kirito13\AppData\Roaming\npm;
user variables WXWIN: C:\SDK\wxWidgets\wx312
sytem variables path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;c:\devkitPro\msys2\usr\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\wamp64\bin\php\php7.2.10;C:\Program Files\dotnet\;D:\IDE\CodeBlocks\MinGW\bin;

I tried:

Add "D:\IDE\CodeBlocks\MinGW\libexec\gcc\mingw32\5.1.0" to system path
Delete and extract again the wxWidgets (I tried both 3.1.2 and 3.0.4)
Compile wxWidgets with Visual Studio 2019 works fine, I can compile without any problem, and run any sample in sample folder
In that wiki:
Alternatively, use MSYS to build wxWidgets, as described in build\msw\install.txt in the wxWidgets source tree
There are no build\msw\install.txt

I'm trying about 2 days, I'm so tired... :cry:
This is my first time here.
I'm not good in English

With clean: (Looks like the command prompt don't show the entire error, because is too large)

Code: Select all

process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ad
v.a del ..\..\lib\gcc_dll\libwxmsw31u_adv.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_adv.a del ..\..\lib\gcc_dll\libwxmsw31u_a
dv.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ad
v.a del ..\..\lib\gcc_dll\libwxmsw31u_adv.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_media_gcc_custom.dll del ..\..\lib\gcc_dll\
wxmsw312u_media_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_medi
a_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_media_gcc_custom.dll", ...) fai
led.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_media.a del ..\..\lib\gcc_dll\libwxmsw31u
_media.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_me
dia.a del ..\..\lib\gcc_dll\libwxmsw31u_media.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_media.a del ..\..\lib\gcc_dll\libwxmsw31u
_media.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_me
dia.a del ..\..\lib\gcc_dll\libwxmsw31u_media.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_html_gcc_custom.dll del ..\..\lib\gcc_dll\w
xmsw312u_html_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_html
_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_html_gcc_custom.dll", ...) faile
d.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_html.a del ..\..\lib\gcc_dll\libwxmsw31u_
html.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ht
ml.a del ..\..\lib\gcc_dll\libwxmsw31u_html.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_html.a del ..\..\lib\gcc_dll\libwxmsw31u_
html.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ht
ml.a del ..\..\lib\gcc_dll\libwxmsw31u_html.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_webview_gcc_custom.dll del ..\..\lib\gcc_dl
l\wxmsw312u_webview_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_webv
iew_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_webview_gcc_custom.dll", ...)
 failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_webview.a del ..\..\lib\gcc_dll\libwxmsw3
1u_webview.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_we
bview.a del ..\..\lib\gcc_dll\libwxmsw31u_webview.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_webview.a del ..\..\lib\gcc_dll\libwxmsw3
1u_webview.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_we
bview.a del ..\..\lib\gcc_dll\libwxmsw31u_webview.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_qa_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw312u_qa_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_qa_g
cc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_qa_gcc_custom.dll", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_qa.a del ..\..\lib\gcc_dll\libwxmsw31u_qa
.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_qa
.a del ..\..\lib\gcc_dll\libwxmsw31u_qa.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_qa.a del ..\..\lib\gcc_dll\libwxmsw31u_qa
.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_qa
.a del ..\..\lib\gcc_dll\libwxmsw31u_qa.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxbase312u_xml_gcc_custom.dll del ..\..\lib\gcc_dll\w
xbase312u_xml_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxbase312u_xml
_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase312u_xml_gcc_custom.dll", ...) faile
d.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase31u_xml.a del ..\..\lib\gcc_dll\libwxbase31u
_xml.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxbase31u_x
ml.a del ..\..\lib\gcc_dll\libwxbase31u_xml.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxbase31u_xml.a del ..\..\lib\gcc_dll\libwxbase31u
_xml.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxbase31u_x
ml.a del ..\..\lib\gcc_dll\libwxbase31u_xml.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_xrc_gcc_custom.dll del ..\..\lib\gcc_dll\wx
msw312u_xrc_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_xrc_
gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_xrc_gcc_custom.dll", ...) failed.

make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_xrc.a del ..\..\lib\gcc_dll\libwxmsw31u_x
rc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_xr
c.a del ..\..\lib\gcc_dll\libwxmsw31u_xrc.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_xrc.a del ..\..\lib\gcc_dll\libwxmsw31u_x
rc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_xr
c.a del ..\..\lib\gcc_dll\libwxmsw31u_xrc.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_aui_gcc_custom.dll del ..\..\lib\gcc_dll\wx
msw312u_aui_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_aui_
gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_aui_gcc_custom.dll", ...) failed.

make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_aui.a del ..\..\lib\gcc_dll\libwxmsw31u_a
ui.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_au
i.a del ..\..\lib\gcc_dll\libwxmsw31u_aui.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_aui.a del ..\..\lib\gcc_dll\libwxmsw31u_a
ui.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_au
i.a del ..\..\lib\gcc_dll\libwxmsw31u_aui.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_ribbon_gcc_custom.dll del ..\..\lib\gcc_dll
\wxmsw312u_ribbon_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_ribb
on_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_ribbon_gcc_custom.dll", ...) f
ailed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_ribbon.a del ..\..\lib\gcc_dll\libwxmsw31
u_ribbon.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ri
bbon.a del ..\..\lib\gcc_dll\libwxmsw31u_ribbon.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_ribbon.a del ..\..\lib\gcc_dll\libwxmsw31
u_ribbon.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ri
bbon.a del ..\..\lib\gcc_dll\libwxmsw31u_ribbon.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_propgrid_gcc_custom.dll del ..\..\lib\gcc_d
ll\wxmsw312u_propgrid_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_prop
grid_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_propgrid_gcc_custom.dll", ..
.) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_propgrid.a del ..\..\lib\gcc_dll\libwxmsw
31u_propgrid.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_pr
opgrid.a del ..\..\lib\gcc_dll\libwxmsw31u_propgrid.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_propgrid.a del ..\..\lib\gcc_dll\libwxmsw
31u_propgrid.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_pr
opgrid.a del ..\..\lib\gcc_dll\libwxmsw31u_propgrid.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_richtext_gcc_custom.dll del ..\..\lib\gcc_d
ll\wxmsw312u_richtext_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_rich
text_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_richtext_gcc_custom.dll", ..
.) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_richtext.a del ..\..\lib\gcc_dll\libwxmsw
31u_richtext.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ri
chtext.a del ..\..\lib\gcc_dll\libwxmsw31u_richtext.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_richtext.a del ..\..\lib\gcc_dll\libwxmsw
31u_richtext.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_ri
chtext.a del ..\..\lib\gcc_dll\libwxmsw31u_richtext.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_stc_gcc_custom.dll del ..\..\lib\gcc_dll\wx
msw312u_stc_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_stc_
gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_stc_gcc_custom.dll", ...) failed.

make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_stc.a del ..\..\lib\gcc_dll\libwxmsw31u_s
tc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_st
c.a del ..\..\lib\gcc_dll\libwxmsw31u_stc.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_stc.a del ..\..\lib\gcc_dll\libwxmsw31u_s
tc.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_st
c.a del ..\..\lib\gcc_dll\libwxmsw31u_stc.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\wxmsw312u_gl_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw312u_gl_gcc_custom.dll
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\wxmsw312u_gl_g
cc_custom.dll del ..\..\lib\gcc_dll\wxmsw312u_gl_gcc_custom.dll", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_gl.a del ..\..\lib\gcc_dll\libwxmsw31u_gl
.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_gl
.a del ..\..\lib\gcc_dll\libwxmsw31u_gl.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
if exist ..\..\lib\gcc_dll\libwxmsw31u_gl.a del ..\..\lib\gcc_dll\libwxmsw31u_gl
.a
process_begin: CreateProcess(NULL, -c "if exist ..\..\lib\gcc_dll\libwxmsw31u_gl
.a del ..\..\lib\gcc_dll\libwxmsw31u_gl.a", ...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
mingw32-make -C ..\..\samples -f makefile.gcc LINK_DLL_FLAGS="-shared" LINK_MODU
LE_FLAGS="-shared" CC="gcc" CXX="g++" CFLAGS="" CXXFLAGS="" CPPFLAGS="" LDFLAGS=
"" CPP="gcc -E" SHARED="1" TOOLKIT_VERSION="" WXUNIV="0" UNICODE="1" BUILD="rele
ase" DEBUG_INFO="default" DEBUG_FLAG="1" MONOLITHIC="0" USE_GUI="1" USE_HTML="1"
 USE_WEBVIEW="1" USE_MEDIA="1" USE_XRC="1" USE_AUI="1" USE_RIBBON="1" USE_PROPGR
ID="1" USE_RICHTEXT="1" USE_STC="1" USE_OPENGL="1" USE_QA="0" USE_EXCEPTIONS="1"
 USE_RTTI="1" USE_THREADS="1" USE_CAIRO="0" OFFICIAL_BUILD="0" VENDOR="custom" W
X_FLAVOUR="" WX_LIB_FLAVOUR="" CFG="" RUNTIME_LIBS="dynamic" GCC_VERSION="3" WIN
DRES="windres --use-temp-file" clean
process_begin: CreateProcess(NULL, -c "mingw32-make -C ..\..\samples -f makefile
.gcc LINK_DLL_FLAGS=\"-shared\" LINK_MODULE_FLAGS=\"-shared\" CC=\"gcc\" CXX=\"g
++\" CFLAGS=\"\" CXXFLAGS=\"\" CPPFLAGS=\"\" LDFLAGS=\"\" CPP=\"gcc -E\" SHARED=
\"1\" TOOLKIT_VERSION=\"\" WXUNIV=\"0\" UNICODE=\"1\" BUILD=\"release\" DEBUG_IN
FO=\"default\" DEBUG_FLAG=\"1\" MONOLITHIC=\"0\" USE_GUI=\"1\" USE_HTML=\"1\" US
E_WEBVIEW=\"1\" USE_MEDIA=\"1\" USE_XRC=\"1\" USE_AUI=\"1\" USE_RIBBON=\"1\" USE
_PROPGRID=\"1\" USE_RICHTEXT=\"1\" USE_STC=\"1\" USE_OPENGL=\"1\" USE_QA=\"0\" U
SE_EXCEPTIONS=\"1\" USE_RTTI=\"1\" USE_THREADS=\"1\" USE_CAIRO=\"0\" OFFICIAL_BU
ILD=\"0\" VENDOR=\"custom\" WX_FLAVOUR=\"\" WX_LIB_FLAVOUR=\"\" CFG=\"\" RUNTIME
_LIBS=\"dynamic\" GCC_VERSION=\"3\" WINDRES=\"windres --use-temp-file\" clean",
...) failed.
make (e=2): The system cannot find the file specified.
makefile.gcc:5182: recipe for target 'clean' failed
mingw32-make: *** [clean] Error 2

C:\SDK\wxWidgets\wx312\build\msw>mingw32-make -f makefile.gcc SHARED=1 UNICODE=1
 BUILD=release clean

Manolo
Can't get richer than this
Can't get richer than this
Posts: 704
Joined: Mon Apr 30, 2012 11:07 pm

Re: CreateProcess, The system cannot find the file specified error

Post by Manolo » Sat Aug 24, 2019 12:44 pm

You do have a path to MSYS2:
sytem variables path:
....;c:\devkitPro\msys2\usr\bin;...
Delete it, restart the computer and try again. And best remove leftovers of previous tries (this is what "clean" at the end of 'ming32-make' is supposed to do).

If you don't plan to build wx many times, and will build your app from Code::Blocks then you don't need a permanent PATH to mingw\bin. ...;
D:\IDE\CodeBlocks\MinGW\bin;

You can remove it too from the system variables path.

When you open a console window you can add the path, which will be active until the window is closed.
C:\SDK\wxWidgets\wx312> PATH=%PATH%;D:\IDE\CodeBlocks\MinGW\bin
C:\SDK\wxWidgets\wx312> mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release
There are no build\msw\install.txt
The right path is
C:\SDK\wxWidgets\wx312\docs\msw\install.txt

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2091
Joined: Sun Jan 03, 2010 5:45 pm

Re: CreateProcess, The system cannot find the file specified error

Post by PB » Sat Aug 24, 2019 1:09 pm

Manolo wrote:
Sat Aug 24, 2019 12:44 pm
The right path is
C:\SDK\wxWidgets\wx312\docs\msw\install.txt
Actually, the docs have been converted from plain text to Mark Down some time ago, so the extension for v3.1.2 is .md and not .txt.

Post Reply