我是使用Codelite进行编程的新手,我使用wxCrafter创建了一些简单的框架,但Codelight将无法安装(是的,我安装了mingw,在控制台程序上工作)。 我考虑过,我的框架出错了,我决定创建一个新项目而不改变任何东西,只是构建项目。我得到了相同的错误代码:
C:\Windows\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ Test - Debug ]----------"
Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.
Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.
Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.
mingw32-make.exe[1]: Entering directory 'C:/Users/Stephan Lachnit/Documents/CodeLite/Gravitation_Simulator/Test'
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
mingw32-make.exe[1]: *** [Debug/main.cpp.o.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
Test.mk:99: recipe for target 'Debug/main.cpp.o.d' failed
mingw32-make.exe[1]: *** [Debug/MainFrame.cpp.o.d] Error 1
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
mingw32-make.exe[1]: *** [Debug/wxcrafter.cpp.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
Test.mk:107: recipe for target 'Debug/MainFrame.cpp.o.d' failed
Test.mk:115: recipe for target 'Debug/wxcrafter.cpp.o.d' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Stephan Lachnit/Documents/CodeLite/Gravitation_Simulator/Test'
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====`
答案 0 :(得分:1)
问题不在于MinGW。
您需要设置环境变量WXCFG
和WXWIN
您可以在CodeLite中执行此操作:Settings->Environment variales
例如,如果您在C:\src\wxWidgets
您应该在CodeLite中向环境变量部分添加2个条目,如下所示:
WXCFG=gcc_dll\mswu
WXWIN=C:\src\wxWidgets
这应该为你解决这些警告。
叶兰