Instructions for building with CMake were previously given on June 23, 2011 for Windows and June 21, 2011 for Linux, but will be briefly given here again using the CMake GUI for both.
On Windows, the CMake program needs to be installed. To keep up to date, the current version (2.8.9) was downloaded from Kitware and installed. There is only a 32-bit version, but this works fine on Windows 7 64-bit. The defaults of the installer were used. This version is close to the packages (2.8.7) mentioned on October 3, 2012 installed on Mint 13 (Ubuntu 12.04).
Start the CMake GUI, on Windows: Start, All Programs, CMake 2.8, CMake (cmake-gui), and on Linux: CMake from the launcher menu under Applications/Development or the cmake-gui command from a terminal in any directory). Once started, enter or browse to the ibcp directory where the source code is (on Windows, this will be C:/MinGW/msys/1.0/home/username/ibcp, and on Linux where it was cloned to, probably /home/username/ibcp). Then select the directory to build the binaries in (recommend using C:/MinGW/msys/1.0/home/username/ibcp-build or /home/username/ibcp-build). Click the Configure button, which brings up a dialog for which generator to use.
On Windows, the generator needs to be changed to MSYS Makefiles, and on Linux, the default Unix Makefiles is used. Click the Finish button to configure. The CmakeLists.txt file will be processed and the output will be written to the lower pane. Click the Generate button to create the make file. That's it, the program can now be built. From the command line, change to the ibcp-build directory and use the make command.
To test, copy the executable (ibcp.exe on Windows or ibcp on Linux) to the ibcp directory (on Linux, copy it as ibcp.exe). From the ibcp directory, the regtest script is used to run the tests. Currently, all tests succeed on Windows XP. On Windows 7, one test in parser test #3 fails due to how small a floating point number can be (see here). On Linux, several (5) tests in parser test #3 don't compare because exponents are output with only 2 digits instead of 3 on Windows. Next up, using CMake from the command line...
Sunday, October 7, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)