Skip to content

lishunan246/GKC

 
 

Repository files navigation

GKC

General Kind C++

Source Code

  1. Use one of the *.UTF8 locales for Linux system.
  2. The source code files are encoded as UTF8 with BOM.
  3. All constant strings with CharA type should be considered as UTF8 encoding.

Production

Install the necessary softwares in the production machine. Assume the building directory has the same level of directory GKC.

Preparation

Windows

Compiler

Visual Studio Express 2015 for Desktop

Latex

Install MikTex, and use TexWorks. Install other packages through Maintenance UI such as CJK packages. Two patterns, pdfLaTeX+MakeIndex+BibTeX and XeLaTeX+MakeIndex+BibTeX can be used for composing papers, books and slides.

Linux

Compiler
  1. 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
  1. Install libuuid:

sudo apt-get install uuid-dev


1. Install X11:
	```
sudo apt-get install libx11-dev
  1. Set the environment variable LD_LIBRARY_PATH:

    Edit the following file:

sudo vi /etc/environment


	and add the variable:
	```
LD_LIBRARY_PATH=./
Edit the following file:
```

sudo vi /etc/X11/Xsession.options


	and change `use-ssh-agent` to `no-use-ssh-agent`.

##### Latex

1. Install TexLive:
	```
sudo apt-get install texlive-full
  1. 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


1. Install TexStudio:

	Install TexStudio.

	Select the menu `Options->Configure Texstudio->Commands`,
change the item `XeLaTeX` to:
	```
xelatex -synctex=1 -interaction=nonstopmode %.tex
Select the menu `Options->Configure Texstudio->Build`,

change the item Default Compiler to XeLaTeX.

Testing

Windows

  1. CMake:
    • x86 machine:

cmake ../GKC -G "Visual Studio 14"


	* x64 machine:
	```
cmake ../GKC -DUSE_64BITS=1 -G "Visual Studio 14 Win64"
  1. make:

MSBuild ALL_BUILD.vcxproj /t:build /p:Configuration=Debug


1. test:
	```
cd test
ctest -C "Debug"

Linux

  1. 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"
  1. make:

make


1. test:
	```
cd test
ctest

Release

Windows

  1. CMake:
    • x86 machine:

cmake ../GKC -G "Visual Studio 14"


	* x64 machine:
	```
cmake ../GKC -DUSE_64BITS=1 -G "Visual Studio 14 Win64"
  1. make:

MSBuild ALL_BUILD.vcxproj /t:build /p:Configuration=Release


1. 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"


#### Linux

1. 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"


1. make:
	```
make
  1. 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

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


### Linux

sudo sh setup-gkc.sh


## Uninstall

### Windows

Run the following command as administrator:

cscript uninstall-gkc.vbs


### Linux

sudo sh uninstall-gkc.sh

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.2%
  • C 6.6%
  • CMake 1.1%
  • Shell 0.9%
  • Visual Basic .NET 0.7%
  • Batchfile 0.2%
  • Other 0.3%