日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

CodeLite配置

發布時間:2023/12/13 综合教程 35 生活家
生活随笔 收集整理的這篇文章主要介紹了 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配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。