如何为便携式 CodeBlock 构建 wxWidget?
我是新手,所以请耐心等待。
每个教程都告诉我转到 build\msw 目录并开始运行 makefile 命令:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
问题是 mingw32-make.exe 不在该目录中。我是否只需将 CodeBlocks\MinGW\bin 文件夹中的所有内容复制到该目录?
I'm new at this, so please bear with me.
Every tutorial tells me to go to the build\msw directory and start running the makefile command:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
The problem is that mingw32-make.exe is not in that directory. Do I just copy everything from my CodeBlocks\MinGW\bin folder to that directory?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不!使编译器工具链可从任何位置访问的正确方法是设置系统的环境
PATH
变量。通常,您不必自行设置; MinGW 可能在安装过程中为您完成了此操作。您可以通过查看“PATH”变量来验证这一点。另外,如果您查看安装 MinGW 的根目录,您应该会找到一个批处理脚本“mingwvars.bat”。如果您打开一个新的“cmd”终端并运行该批处理脚本,它将使得该终端会话可以访问工具链。
No! The right way to make the compiler tool-chain accessible from any location is to set the system's environment
PATH
variable.Usually, you don't have to set this yourself; it's likely MinGW did this for you during installation. You can verify this by looking at your 'PATH' variable. Also, if you look in the root directory of where you installed MinGW you should find a batch script 'mingwvars.bat'. If you open a new 'cmd' terminal and run that batch script it will make the tool-chains accessible for that terminal session.