Skip to content

Installation

AlCash07 edited this page Jun 25, 2017 · 7 revisions

ACHelper isn't simply "download and run", but that's because it automates as much as possible after the initial configuration.

Only the essential steps are listed below. Consult other pages for more detailed information.

Downloads

The latest version can be found on the releases page.

Download ACHelper.jar along with the source code. You'll need to copy the following files from the source code to the contest directory:

  • ACHelper.xml - configuration file;
  • scripts for your operating system and templates for your programming language (scripts and templates directories).

Download testlib.h and put it in the templates directory where the checkers reside.

Default C++ templates use stream input/output. If you want to change that, you'll have to modify most template files including tester.cpp. The following code should be helpful for scanf/printf.

Install CMake in case you haven't already.

Build Caide C++ code inliner cmd command line tool following the instruction in readme. Alternatively, use any other inliner you like.

Configuration files

  1. ACHelper.xml, the main configuration file
  • default values should work for most options;
  • make sure the paths to scripts and templates at the end are correct;
  • replace cmake command with the full path to CMake executable (or let me know how to avoid this).
  1. scripts/unix/project.sh, the script to generate the project
  • replace cmake command as above;
  • set the generator of your choice instead of Xcode.
  1. templates/cpp/CMakeScripts.txt, configuration for the generated problem files
  • set BINARY_DIR to the directory where the executables will be built in release mode, so that checkers are compiled to the same directory;
  • update TEMPLATES_DIR and CHECKERS_DIR if necessary.
  1. templates/cpp/CMakeLists.txt, the main configuration file for CMake
  • set INCLUDES_DIR to the directory with your custom library header files;
  • update TEMPLATES_DIR and CHECKERS_DIR if necessary;
  • set CODE_INLINER to the code inliner path you built above.

Now launch ACHelper.jar and enjoy.

Clone this wiki locally