CodeLite配置
1.CodeLite配置wxWidgets
首先保證codelite + MinGW 能正常工作;
2.Build wxWidgets
參考:http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
啟動MinGW Shell
cd /D <wxWidgets>\build\msw
Execute the build command. The recommended command to use forMinGW/GCCis:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
Or
The recommended command to use forMSVCis:
nmake -f makefile.vc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
MinGW下存在文件 c:\MinGW\include\sys\utime.h
wxWidgets 下存在文件 C:\wxWidgets\include\wx\app.h
環境變量設置如下:
c:\CodeLite;c:\MinGW\bin;c:\wxWidgets\lib\gcc_dll;
在C++文件中聲明下列兩個頭文件。
#include "sys\utime.h" //正常,能工作。
#include "wx\app.h" //不正常,錯誤如下:22: wx\app.h: No such file or directory
codelite 中對Tags setting->including files 進行了設置。 可以直接在IDE中打開utime.h和app.h文件。
問題是編譯時通不過。
另:在codelite 中對 Environment Variables 的設置如下:
CodeLiteDir=C:\CodeLite
WXCFG=gcc_dll\mswud
WXWIN=C:\wxWidgets\include
參考:http://www.codelite.org/WxWidgets/GettingReadyForWxWidgetsDevelopmentUnderWindows
如下步驟:
Step 1: Download wxWidgets
DownloadwxWidgets source fromhere. We recommend you download the zip version of wxMSW.
Extractthe archive (after extraction, you might want to move the extracted files to a more straight-forward directory name, likec:\wx\wx288- sub-directories of this folder will beinclude,src, and so forth).
Step 2: Build wxWidgets
Open thecommand prompt(Start > Run... > cmd).
Go to thebuild\msw folderof your wxWidgets directory, e.g.C:\wx\wx288\build\msw.
You can now build the library using, for example:
mingw32-make -f makefile.gcc UNICODE=1 SHARED=1 MONOLITHIC=1 BUILD=debug
Notice the various parameters passed to make program. A list of important parameters are available here:wxWidgets Build Parameters.
Step 3: Configure CodeLite
OpenSettings > Environment Variables
Add the following variables:
WXWIN- this points to your main wxWidgets directory, e.g.C:\wx\wx288
WXCFG- this points to the path containing the configuration file for the current build.
For example, ifbuild.cfgis underC:\wx\wx288\lib\gcc_dll\mswud, you'd need to set WXCFG togcc_dll\mswud.
2.CodeLite配置QT
3.CodeLite配置MinGW
Various build options are available when building the wxWidgets libraries. Here are a few important ones:
| 
 Parameter  | 
 Description  | 
| 
 UNICODE=1  | 
 wxWidgets libraries prior to version 3 (which is yet to be released) can be built in either ANSI or UNICODE mode.CodeLite requires a unicode build.  | 
| 
 SHARED=1  | 
 Will build the library as a DLL. When specified, your application will only work if the wx DLL is installed on the computer and under a directory that is a part of the path environment variable. If this option is not specified the libraries will be attached to your executable, resulting in a larger file.  | 
| 
 MONOLITHIC=1  | 
 Can only be used in combination with SHARED=1. Will package the whole wxWidgets library into a single file, instead of several.  | 
| 
 BUILD=  | 
 Options are eitherdebugorrelease. Debug builds are larger in size, but enable debugging of the wxWidgets code.  | 
| 
 USE_XRC=1 USE_RTTI=1 USE_OPENGL=1  | 
 These flags are examples of sub-components of the library that you might want to be included in the build.  | 
Additional Resources
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
總結
以上是生活随笔為你收集整理的CodeLite配置的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: 批量下载哨兵(Sentinel)数据
 - 下一篇: 利用matlab提取中心线