CAPD RedHom Library
|
For CAPD users:
libwxgtk2.8-dev
package).libX11-dev
package).libgmp, libgmp-dev, libgmpxx, libmpfr, libmpfr-dev
.liblog4cxx10-dev
).libboost1.53-all-dev
or libboost-all-dev
).For CAPD developers one require also
The CAPD package was tested on Linux distributions: Debian, Ubuntu. Please check Dockerfiles to see our setup.
First of all we need C++ compiler from Command Line Tools. Go to Apple Developers, search for "command line tools". Download and install it.
Now we need to install GNU tools. For OSX you can find a few package managers, we recommend Homebrew.
1) Run Terminal application.
2) Execute:
3) Homebrew can check if the installation is correct:
4) Now install a few packages:
5) Optional step - X11 support:
Verify previous steps with pkg-config:
6) Optional/Experimental Recently OSX version of gcc/g++ switched to clang engine. We have not tested it for compatibility with our code. You can compile the code, but we are not sure about compatibility with roundings etc. You can experiment with original version of gcc/g++ which you can install using following commands:
The current version of CAPD uses automated compilation tools therefore it needs linux like shell console and selection of other tools. We recommend use of MinGW - Minimalist GNU for Windows.
We do not recommend Windows platform for development: shell scripts execution in MSYS is very slow(!) because of fork() emulation.
Nowadays we use cross-compilation techique to build binaries for Windows. We use MXE with Docker, see our Dockerfiles . However, long time ago we were able to prepare MinGW enviroment on Windows for CAPD compilation using the following:
NOT supported!!!
1) Download and install mingw-get-setup.exe. Set location or use default C:. Select 'Basic Setup' on the left panel. Then mark: mingw-32-base, msys-base. You may see a few errors related to dependencies - just ignore them.
2) Click 'Start' and to 'Run' prompt past (change C: if you use different settings):
Answer two times y.
MinGW is installed! To verify: open
and run
Please make sure that
returns something like:
if not, then close MSYS shell and execute once again:
3) Now we need to install a few packages. In the MSYS shell (msys.bat) execute following commands:
The CAPD compilation should be performed from msys shell.
(Optional)Please download Boost library from here. ATTENTION For Windows download ZIP archive. On the Boost webpage you can find details about the installation process. You need to do it from native windows command line shell (Start -> Run -> cmd.exe). For us enough is to execute:
You may see a lot of warnings, do not care about them - just keep waiting and be patient. UNLESS you see an error - then let us know.
Next, form the MSys shell (replace <path_to_boost> with MSys path to the Windows folder with boost, in our case /c/boost_1_55_0/ ):