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:
- build necessary libraries of ZFFramework, by one of these methods:
- tools from ~/tools/release
- manually build projects under ~/ZF
- create your own Qt project (*.pro)
- have these lines in your pro file:
CONFIG(debug, debug|release) {
DEFINES += DEBUG
}
- 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
- 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);
}
- 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/
- create cpp files in your project and follow the Tutorial to code with ZFFramework, enjoy