wxWidget 2.8.12不工作在代码块 [英] wxWidget 2.8.12 not working in Codeblocks
问题描述
我正在学习使用wxWidget 2.8.12与Codeblocks 12.11。我已按照此网站上的说明安装wxWidgets和代码块:
,我已使用.exe文件
2)我已根据我使用的参考页面编辑了我的用户PATH环境变量
3)我从这个链接下载了wxWidgets安装程序并安装它:
http://sourceforge.net/projects/wxwindows/files/2.8.12/wxMSW-2.8.12-Setup.exe/download?use_mirror=garr
4)我已进入目录 C:\< wxWidgets root> \build\msw
并在命令提示符中输入以下命令:
mingw32-make -f makefile.gcc BUILD = release SHARED = 1 MONOLITHIC = 1 UNICODE = 1 CXXFLAGS = -fno-keep-inline-dllexport
让wxWidgets构建和尝试运行我的演示应用程序我得到错误我在Codeblocks中提到:(
注意未来阅读器:将wxWidgets安装到目录中没有空格的路径名称!否则这将导致麻烦。
请看看下面的链接,我已经put.It将非常有用。我也安装了wxWidget 2.8.12与Codeblocks 12.11使用此链接。
在Windows中使用Code :: Blocks(12.11)设置wxWidgets(2.9.4)
在完成安装wxWidgets2.8.12和CODEBLOCKS 12.11后,请在命令提示符中执行以下步骤。
gcc -v
mingw32-make -v
cd /DC:\wxWidgets-2.8.12\build\msw
mingw32-make -f makefile.gcc clean
mingw32-make - f makefile.gcc BUILD = debug SHARED = 0 MONOLITHIC = 1 UNICODE = 1
mingw32-make -f makefile .gcc BUILD = release SHARED = 0 MONOLITHIC = 1 UNICODE = 1
-
在执行所有上述步骤后仍然存在您在构建选项中缺少一个重要的编译器搜索路径。
-
确保在运行wxWidgets项目向导时选择正确的wxWidgets构建配置。
-
如果重新运行向导不是一个选项,那么打开项目的构建选项并添加$(#wx.lib)\gcc_dll\\
I'm learning to use wxWidget 2.8.12 with Codeblocks 12.11. I have followed the instructions on this site to install wxWidgets and Codeblocks:
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
When I try to create the project and run the demo app I get the error:
fatal error: wx/setup.h: No such file or directory
The following picture will show this better:
I have followed the instructions, but still I get the error...what seems to be the problem? :(
Thnx for any help
P.S.
Here is an overview what I have done:
1) I downloaded Codeblocks including MinGW (codeblocks-12.11mingw-setup.exe) http://www.codeblocks.org/downloads/26#windows and I have installed them using the .exe file
2) I have edited my User PATH environment variable to according to the reference page I have used
3) I have downloaded wxWidgets installer from this link and installed it: http://sourceforge.net/projects/wxwindows/files/2.8.12/wxMSW-2.8.12-Setup.exe/download?use_mirror=garr
4) I have entered the directory C:\<wxWidgets root>\build\msw
and inputted the following command in command prompt:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport
After letting wxWidgets build and trying to run my demo app I get the error I mentioned in Codeblocks :(
NOTICE FUTURE READERS: Install wxWidgets to a directory without whitespace in the path name! Otherwise this will cause trouble
Please have a look at the Below Link which i have put.It will be very useful.I have also installed wxWidget 2.8.12 with Codeblocks 12.11 using This Link.
Setting up wxWidgets(2.9.4) with Code::Blocks(12.11) in Windows
Type These below steps in Command Prompt after you finish installing the wxWidgets2.8.12 and CODEBLOCKS 12.11.
gcc -v
mingw32-make -v
cd /D C:\wxWidgets-2.8.12\build\msw
mingw32-make -f makefile.gcc clean
mingw32-make -f makefile.gcc BUILD=debug SHARED=0 MONOLITHIC=1 UNICODE=1
mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1
If the problem still persists after doing all the above steps then You're missing an important compiler search path in your build options.
Make sure you choose the correct wxWidgets build configuration when running the wxWidgets project wizard.
If re-running the wizard isn't an option, then open your project's build options and add "$(#wx.lib)\gcc_dll\mswu" (assuming a monolithic Unicode DLL build) to the compiler search paths.
这篇关于wxWidget 2.8.12不工作在代码块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!