In order to use CCore, you have to "cook" it. The following ingredients are required:
Install cygwin first. Include make, bash and g++ in your installation. If you are not familiar with this platform, spend some time to learn it. To work with the current version of CCore gcc-5.3.0 is required.
Create the directory bin in your cygwin home directory. CCore uses some tools and utilities, they are built in and invoked from this directory. Make sure this directory is included into the cygwin path. You can also include this directory into the Windows path.
Unpack CCore package (or checkout the source tree from a repository) somewhere under you cygwin home directory. Avoid file and directory names with space characters.
Open bash console (or another console you would prefer, just configure it to use cygwin bash as a command processor).
Go to the CCore root directory. The following commands are used to prepare, clean and build the whole installation:
Once you install and build CCore, tools are built in the ~/bin directory. Two of them: CCore-MakeList.exe and CCore-Regen.exe, are the essential part of the build process, so keep them in the working condition.
cygwin terminal has a limitation in its console functions. It cannot be used to run some tools and tests. You can use the following console program instead to avoid troubles.
You can use Eclipse as an IDE to work with CCore and CCore-based projects. CCore package includes the archive eclipse-Mars.7z with the Eclipse Mars workbench. You will need Anonymouse Pro font for the text editor. Before using this workbench you have to adjust some settings.
Open menu Window/Preferences... . Then open the C++/Build/Environment tab. Correct variables CYGWIN and CYGWIN64 to point to cygwin and cygwin64 installation directories.
CCore supports the 64-bits Windows development using cygwin64. The host target WIN64 is provided.
Place CCore at a desired directory. You need /bin subdirectory in your home directory for tools, it must be included in the cygwin64 search path. You have to edit the file Makefile.host: change it from
CCORE_TARGET = WIN32
to
CCORE_TARGET = WIN64
CCore supports the 64-bits Linux development. The host target LIN64 is provided. This target is developed based on Ubuntu 13.04 (running on the VirtualBox), but should be fine on others 64-bits Linux platforms.
To deploy CCore on Linux, you need to install some additional developers components.
First, you need gcc-5.2.0 or later.
Second, you need the library libaio.
Finally, you need the library libgmp.
On Ubuntu you may use the following command to install additional packages:
sudo apt-get install <package-name>
The packages you need are: g++, libaio-dev, libgmp-dev (double check with the system support).
Once you have installed required packages, place CCore at a desired directory. You need /bin subdirectory in your home directory for tools, it must be included in the search path. You have to edit the file Makefile.host: change it from
CCORE_TARGET = WIN32
to
CCORE_TARGET = LIN64
To run on the VirtualBox hack the source code at the file IntelCPUID.s (Target/LIN64/CCore/src/crypton). Uncomment the following line to get the hardware AES support.
# orl $0x42000000, %ecx
CCore includes the primary XCore target BeagleBoneBlack. You can use this target to build applications running on the popular board BeagleBone Black. Read this document to learn more about this target.