zoukankan      html  css  js  c++  java
  • 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

     

     

  • 相关阅读:
    hdu 1213 (How Many Tables)(简单的并查集,纯模板)
    Android 开发 -------- 自己定义View 画 五子棋
    POJ 2472 106 miles to Chicago
    android application
    Effective C++:条款39:明智而审慎地使用private继承
    云计算统一办公运营平台服务能力设计方案
    LCA 近期公共祖先 小结
    MFC exe使用C++ dll中的std::string 崩溃
    函数调用堆栈图
    【cocos2d-js官方文档】二十、moduleConfig.json
  • 原文地址:https://www.cnblogs.com/panxihua/p/2550128.html
Copyright © 2011-2022 走看看