TreeFrog Framework开发环境搭建 (C++ web framework, based on Qt)
来源:互联网 发布:nginx 子域名映射端口 编辑:程序博客网 时间:2024/06/05 11:18
参考地址:http://treefrogframework.github.io/treefrog-framework/user-guide/ch/install/
安装
首先,我们需要先安装好Qt库.对于Windows和Mac OS X,从Qt 网站 下载并安装它.对于Linux,你可以安装一个发布的包.如果是Ubuntu:安装Qt库和开发工具
$ sudo apt-get install -y qt5-default qt5-qmake libqt5sql5-mysql libqt5sql5-psqllibqt5sql5-odbc libqt5sql5-sqlite libqt5core5a libqt5qml5 libqt5xml5 qtbase5-devqtdeclarative5-dev qtbase5-dev-tools gcc g++ make
现在安装数据库客户端库:
$ sudo apt-get install -y libmysqlclient-dev libpq5 libodbc1
安装说明
- 解压已 下载的文件.以下命令应用到版本’x.x.x’.请对于的替换.
$ tar xvfz treefrog-x.x.x.tar.gz
- 运行build命令.对于Windows:请为发行(releae)和调试(debugging)*创建两种不同类型的二进制文件.打开Qt命令行窗口,然后使用以下命令Build.配置批处理文件(configure.bat)应该执行两次.
> cd treefrog-x.x.x> configure --enable-debug> cd src> mingw32-make install> cd ..\tools> mingw32-make install> cd ..> configure> cd src> mingw32-make install> cd ..\tools> mingw32-make install
在基于UNIX的操作系统Linux和Mac OS X:在命令行输入以下命令:
$ cd treefrog-x.x.x$ ./configure$ cd src$ make$ sudo make install$ cd ../tools$ make$ sudo make install
说明:
为了调试Treefrog框架本身,请使用configure选项.现在请执行命令:
./configure --enable-debug
下一条命令更新动态链接器运行时绑定(仅在Linux).
$ sudo ldconfig
3.创建Treefrog命令行窗口的快捷方式(仅在Windows).在你想要的文件夹下点击右键,选择”新建”然后点击”快捷方式”.设置链接目标如下:
C:\Windows\System32\cmd.exe /K C:\TreeFrog\x.x.x\bin\tfenv.bat
(‘x.x.x’表示当前使用的版本)
设置快捷方式的名字为’Treefrog命令行窗口’.
配置选项
通过定义各自选项,可以进行环境的客户化设定.在Windows上使用选项”configure option”:
> configure --helpUsage: configure [OPTION]... [VAR=VALUE]...Configuration:-h, --help display this help and exit--enable-debug compile with debugging information--enable-gui-mod compile and link with QtGui module--enable-mongo compile with MongoDB driver libraryInstallation directories:--prefix=PREFIX install files in PREFIX [C:\TreeFrog\x.x.x]
在Linux和类UNIX OS上使用选项:
$ ./configure --helpUsage: ./configure [OPTION]... [VAR=VALUE]...Configuration:-h, --help display this help and exit--enable-debug compile with debugging information--enable-gui-mod compile and link with QtGui module--enable-mongo compile with MongoDB driver libraryInstallation directories:--prefix=PREFIX install files in PREFIX [/usr]Fine tuning of the installation directories:--bindir=DIR user executables [/usr/bin]--libdir=DIR object code libraries [/usr/lib]--includedir=DIR C header files [/usr/include/treefrog]--datadir=DIR read-only architecture-independent data [/usr/share/treefrog]
在Max OS X上使用选项:
$ ./configure --helpUsage: ./configure [OPTION]...[VAR=VALUE]...Configuration:-h, --help display this help and exit--enable-debug compile with debugging information--enable-gui-mod compile and link with QtGui module--enable-mongo compile with MongoDB driver libraryFine tuning of the installation directories:--framework=PREFIX install framework files in PREFIX [/Library/Frameworks]--bindir=DIR user executables [/usr/bin]--datadir=DIR read-only architecture-independent data [/usr/share/treefrog
阅读全文
0 0
- TreeFrog Framework(C++ web framework, based on Qt)开发环境搭建
- TreeFrog Framework开发环境搭建 (C++ web framework, based on Qt)
- TreeFrog (C++ Web Framework)开发入门之使用Qt编译
- TreeFrog (C++ Web Framework)开发之源码分析
- TreeFrog (C++ Web Framework)开发之http文件服务器
- TreeFrog (C++ Web Framework)开发之源码分析
- 搭建Framework开发环境
- TreeFrog Framework 开发入门之HelloWorld
- yii framework开发环境搭建
- zend framework开发环境搭建-windows
- redhat 6.2 搭建zend framework 开发环境
- zend framework环境搭建
- zend framework环境搭建
- 搭建spring-framework环境
- Robot Framework环境搭建
- robot framework环境搭建
- robot framework环境搭建
- robot framework环境搭建
- hql查询语句
- easyui的dialog刷新href。。。
- 2017年Linux运维人员必会开源运维工具和体系
- 三维重建面试6:绑架问题/SensorFusion/IMU+CV-小尺度SLAM
- Redis 持久化之RDB(二)
- TreeFrog Framework开发环境搭建 (C++ web framework, based on Qt)
- div右下角弹出框,可以关闭
- ubuntu 之 安装TFTP server
- Spring MVC 自学杂记(七) -- 去掉静态资源的拦截
- Fisher r-z变换,z-score标准化与常用标准化
- 零基础学TensorFlow(一):virtualenv及TensorFlow环境搭建
- Python笔记1——list,tuple,dict,set,不可变对象
- hadoop demo 倒排索引
- 自适应直方图均衡——adapthisteq