CodeLite配置

1.CodeLite配置wxWidgets 

首先保证codelite + MinGW 能正常工作;

2.Build wxWidgets

参考:http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef#Build_wxWidgets

启动MinGW Shell

cd /D <wxWidgets>\build\msw

Execute the build command. The recommended command to use for MinGW/GCC is:

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1

Or

The recommended command to use for MSVC is:

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

  • Download wxWidgets source from here. We recommend you download the zip version of wxMSW.
  • Extract the archive (after extraction, you might want to move the extracted files to a more straight-forward directory name, like c:\wx\wx288 - sub-directories of this folder will be includesrc, and so forth).
 

Step 2: Build wxWidgets

  • Open the command prompt (Start > Run... > cmd).
  • Go to the build\msw folder of 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

    • Open Settings > 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, if build.cfg is under C:\wx\wx288\lib\gcc_dll\mswud, you'd need to set WXCFG to gcc_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 either debug or release. 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

 

 

 

原文链接: https://www.cnblogs.com/panxihua/archive/2012/06/16/2550128.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    CodeLite配置

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/52877

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月9日 上午4:16
下一篇 2023年2月9日 上午4:17

相关推荐