ZFFramework
Loading...
Searching...
No Matches
Qt

Requirement

you must have these settings being prepared:

  • have qmake and proper make in your system path

once prepared, it's recommended to follow Quick setup for quick setup your project files

Manual Setup

if you really want to setup manually:

  1. build necessary libraries of ZFFramework, by one of these methods:
    • tools from ~/tools/release
    • manually build projects under ~/ZF
  2. create your own Qt project (*.pro)
  3. have these lines in your pro file:
    CONFIG(debug, debug|release) {
    DEFINES += DEBUG
    }
  4. specify include path and lib search path in your pro file:
    INCLUDEPATH += path_to_ZFFramework/_release/your_Qt_type/all/include
    LIBS += -Lpath_to_ZFFramework/_release/your_Qt_type/all/lib your_linker_flags -lyour_required_ZF_lib_name
  5. manually add loader routine to your project:
    #include "ZFImpl/sys_Qt/ZFMainEntry_sys_Qt.h"
    int main(int argc, char **argv) {
    ZFImpl_sys_Qt_requireLib(ZF_lib_name_you_require)
    return ZFMainEntry_sys_Qt(argc, argv);
    }
  6. copy all res and libs to your product output or proper location according to your platform
    • for Windows or Linux
      ~/
      YourApp.exe
      QtCore.dll
      ZFCore.dll
      zfres/
    • for MacOS
      YourApp.app/
      Contents/
      Frameworks/
      ZFCore.dylib
      Resources/
      zfres/
  7. create cpp files in your project and follow the Tutorial to code with ZFFramework, enjoy