# GKC **Repository Path**: zjugkc/GKC ## Basic Information - **Project Name**: GKC - **Description**: General Kind C++ - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2024-02-16 - **Last Updated**: 2026-04-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GKC General Kind C++ ## Source Code 1. Use one of the *.UTF8 locales for Linux system. 1. The source code files are encoded as UTF8 with BOM. 1. All constant strings with CharA type should be considered as UTF8 encoding. 1. All constant wide strings and global data with multi-byte types are stored as compiling machine endian in assemblies. ## Production Install the necessary softwares in the production machine. Assume the building directory has the same level of directory `GKC`. ### Preparation #### Windows ##### Compiler Build Tools for Visual Studio 2026 without ATL, MFC and C++/CLI. Programs must link to CRT library dynamically. #### Linux ##### Compiler 1. Install g++ g++ (latest version) ``` sudo apt-get install build-essential ``` manual documents ``` sudo apt-get install glibc-doc sudo apt-get install manpages-posix-dev ``` 1. Install libwayland: ``` sudo apt-get install libwayland-dev wayland-protocols libxkbcommon-dev ``` documents ``` sudo apt-get install libwayland-doc ``` Programs must link to CRT library dynamically. ### Testing #### Windows 1. CMake: * x86 machine: ``` cmake ../GKC -G "Visual Studio 18 2026" -A Win32 ``` * x64 machine: ``` cmake ../GKC -G "Visual Studio 18 2026" -A x64 ``` 1. make: ``` MSBuild ALL_BUILD.vcxproj /t:build /p:Configuration=Debug ``` 1. test: ``` ctest -C "Debug" ``` #### Linux 1. CMake: ``` cmake ../GKC -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ``` 1. make: ``` make ``` 1. test: ``` ctest ``` ### Release #### Windows 1. CMake: * x86 machine: ``` cmake ../GKC -G "Visual Studio 18 2026" -A Win32 ``` * x64 machine: ``` cmake ../GKC -G "Visual Studio 18 2026" -A x64 ``` 1. make: ``` MSBuild ALL_BUILD.vcxproj /t:build /p:Configuration=Release ``` 1. pack: ``` cpack -G TGZ ``` #### Linux 1. CMake: ``` cmake ../GKC -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ``` 1. make: ``` make ``` 1. pack: ``` cpack -G TGZ ```