GithubHelp home page GithubHelp logo

zjubank / gkc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zjugkc/gkc

0.0 2.0 0.0 2.31 MB

General Kind C++

License: BSD 2-Clause "Simplified" License

CMake 1.24% Lex 0.28% C++ 88.21% C 7.39% Shell 1.35% Batchfile 0.31% Objective-C 0.12% Visual Basic 1.11%

gkc's Introduction

GKC

General Kind C++

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 2013

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

g++-4.9

Install libuuid:

sudo apt-get install uuid-dev

Install X11:

sudo apt-get install libx11-dev
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 12"
* x64 machine:
```

cmake ../GKC -DUSE_64BITS=1 -G"Visual Studio 12 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 12"
* x64 machine:
```

cmake ../GKC -DUSE_64BITS=1 -G"Visual Studio 12 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.

#### 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

cscript setup-gkc.vbs


### Linux

sudo sh setup-gkc.sh


## Uninstall

### Windows

cscript uninstall-gkc.vbs


### Linux

sudo sh uninstall-gkc.sh

gkc's People

Contributors

zjugkc avatar

Watchers

bank avatar LanWei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.