General Kind C++
- Use one of the *.UTF8 locales for Linux system.
- The source code files are encoded as UTF8 with BOM.
- All constant strings with CharA type should be considered as UTF8 encoding.
- All constant wide strings and global data with multi-byte types are stored as compiling machine endian in assemblies.
Install the necessary softwares in the production machine.
Assume the building directory has the same level of directory GKC
.
Build Tools for Visual Studio 2017 without ATL, MFC and C++/CLI.
Install MikTex, and use TexWorks. Install other packages through Maintenance UI such as CJK packages.
Two patterns, pdfLaTeX+MakeIndex+BibTeX
and XeLaTeX+MakeIndex+BibTeX
with 'xeCJK' can be used
for composing papers, books and slides.
-
Install g++
g++-4.9
sudo apt-get install build-essential
manual documents
sudo apt-get install glibc-doc sudo apt-get install manpages-posix-dev
-
Install libuuid:
sudo apt-get install uuid-dev
-
Install X11:
sudo apt-get install libx11-dev
-
Edit the following file:
sudo vi /etc/X11/Xsession.options
and change
use-ssh-agent
tono-use-ssh-agent
.
-
Install TexLive:
sudo apt-get install texlive-full
-
Install fonts:
sudo apt-get install ttf-mscorefonts-installer sudo apt-get install xfonts-wqy ttf-wqy-microhei ttf-wqy-zenhei fc-cache fc-list
-
Install TexStudio:
Install TexStudio.
Select the menu
Options->Configure Texstudio->Commands
, change the itemXeLaTeX
to:xelatex -synctex=1 -interaction=nonstopmode %.tex
Select the menu
Options->Configure Texstudio->Build
, change the itemDefault Compiler
toXeLaTeX
.
-
CMake:
-
x86 machine:
cmake ../GKC -G "Visual Studio 15"
-
x64 machine:
cmake ../GKC -DUSE_64BITS=1 -G "Visual Studio 15 Win64"
-
-
make:
MSBuild ALL_BUILD.vcxproj /t:build /p:Configuration=Debug
-
test:
cd test ctest -C "Debug"
-
CMake:
-
x86 machine:
cmake ../GKC -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles"
-
x64 machine:
cmake ../GKC -DCMAKE_BUILD_TYPE=Debug -DUSE_64BITS=1 -G "Unix Makefiles"
-
-
make:
make
-
test:
cd test ctest
-
CMake:
-
x86 machine:
cmake ../GKC -G "Visual Studio 15"
-
x64 machine:
cmake ../GKC -DUSE_64BITS=1 -G "Visual Studio 15 Win64"
-
-
make:
MSBuild ALL_BUILD.vcxproj /t:build /p:Configuration=Release
-
pack:
cpack -D CPACK_GENERATOR="ZIP;TGZ"
Compress the files, setup-gkc.vbs, uninstall-gkc.vbs and GKC-1.0.1-win32.zip (or GKC-1.0.1-win64.zip), into a zip file and redistribute it.
Pack with debug version:
cpack -C "Debug" -D CPACK_GENERATOR="ZIP;TGZ"
-
CMake:
-
x86 machine:
cmake ../GKC -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles"
-
x64 machine:
cmake ../GKC -DCMAKE_BUILD_TYPE=Release -DUSE_64BITS=1 -G "Unix Makefiles"
-
-
make:
make
-
pack:
cpack
Compress the files, setup-gkc.sh, uninstall-gkc.sh, GKC-1.0.1-Linux.sh and GKC-1.0.1-Linux.tar.gz, into a zip file and redistribute it.
Install GKC in the computers on client end or server end for production and running infrastructure.
-
Windows
Run the following command as administrator:
cscript setup-gkc.vbs <-c|-d|-s> [-i Installation-directory] [-l Local-workspace-directory] [-u Unified-workspace-directory]
-
Linux
sudo sh setup-gkc.sh <-c|-d|-s> [-i Installation-directory] [-l Local-workspace-directory] [-u Unified-workspace-directory]
The options are listed as follows:
Options | Notes |
---|---|
-c | This software is installed as client on client end |
-d | This software is installed as development on production machine |
-s | This software is installed as server on server end |
The directories are listed as follows:
Directories | Notes |
---|---|
Installation-directory | Specify the installation directory |
Local-workspace-directory | Specify the directory of local workspace |
Unified-workspace-directory | Specify the directory of unified workspace |
-
Windows
Run the following command as administrator:
cscript uninstall-gkc.vbs [-a]
-
Linux
sudo sh uninstall-gkc.sh [-a]
-a
means the directories for local workspace and unified workspace will be deleted.