打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
GCF: GCF Installation
userphoto

2013.04.24

关注

GCF Installation

The best way to install GCF is from its source code. You can either download the source code of GCF from its website (http://www.vcreatelogic.com/products/gcf) or by checking out a copy of the code from its SVN server (https:/svn2.hosted-projects.com/vcreatelogic/GCF2/tags/GCF/2.5.0/)

Once you have a copy of GCF source code on your computer, you can compile it just like any other Qt library and/or application. In the following sections we explain how GCF can be compiled on Windows and Linux platforms.

Setting up GCF on Windows

To compile GCF on Windows, you will need to ensure that you have either of the following configurations

  • Qt 4.7.0+ with Visual Studio 2008
  • Qt 4.7.0+ with MinGW

Compiling GCF on Windows using Visual Studio 2008

Launch the Visual Studio command prompt and execute the following commands after changing into the GCF source code directory.

C:\VCreateLogic\GCF-2.5.0-Source> qmake -recursive "CONFIG += debug_and_release build_all"C:\VCreateLogic\GCF-2.5.0-Source> nmake

Compiling GCF on Windows using MinGW

Launch the Qt Command Prompt that was installed while setting up Qt for MinGW on your computer. Execute the following commands after changing into the GCF source code directory.

C:\VCreateLogic\GCF-2.5.0-Source> qmake -recursive "CONFIG += debug_and_release build_all"C:\VCreateLogic\GCF-2.5.0-Source> ming32-make

Post Compile Setup for Windows

In order to use GCF as an SDK (just as you would use Qt), we recommend that you set up the following environment variables.

Note:
We assume that you have compiled GCF in C:-2.5.0-Source folder.
GCFDIR = C:\VCreateLogic\GCF-2.5.0-SourceQMAKEFEATURES += %GCFDIR%\qmake_prfPATH += %GCFDIR%\bin
Note:
By '+=' we mean, create the environment variable if it did not already exist or append the value to the existing environment variable.

Once the environment variables are setup, we recommend that you log out and log back in. Once the above is done, you can now make use of Qt Creator and/or any other IDE to begin programming with GCF. You can now proceed with Getting started with GCF.

Setting up GCF on Linux

To compile GCF on Linux, start terminal and change into the GCF directory. Then execute the following commands

~/GCF-2.5.0-Source# qmake -recursive "CONFIG += debug_and_release build_all"~/GCF-2.5.0-Source# make -j2

Post Compile Setup for Linux

After the compiliation is done, we recommend that you a few environment variables in order to be able to use GCF as an SDK. To set the environment variables, you will need to edit the ~/.bashrc file and append the following lines at the end of that file.

export GCFDIR=~/GCF-2.5.0-Sourceexport PATH=$GCFDIR/bin:$PATHexport LD_LIBRARY_PATH=$GCFDIR/bin:$GCFDIR/lib:$LD_LIBRARY_PATHexport QMAKEFEATURES=$GCFDIR/qmake_prf

After appending the above lines, save the file. It is recommended that you log out and log in once in order to ensure that the settings are committed and used by the Linux system. You can now make use of Qt Creator and/or any other IDE to begin programming with GCF. You can now proceed with Getting started with GCF.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Qt configure 参数不完全说明
Qt Configure Options | Qt 5.4
ubuntu10.10建立QT开发环境图文详解
compile QT for freescale
QT资料
Qt/Embedded移植详解
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服