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.
To compile GCF on Windows, you will need to ensure that you have either of the following configurations
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
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
In order to use GCF as an SDK (just as you would use Qt), we recommend that you set up the following environment variables.
GCFDIR = C:\VCreateLogic\GCF-2.5.0-SourceQMAKEFEATURES += %GCFDIR%\qmake_prfPATH += %GCFDIR%\bin
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.
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
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.
联系客服