-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
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.
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 (
scriptsandtemplatesdirectories).
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.
-
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
cmakecommand with the full path to CMake executable (or let me know how to avoid this).
-
scripts/unix/project.sh, the script to generate the project
- replace
cmakecommand as above; - set the generator of your choice instead of
Xcode.
-
templates/cpp/CMakeScripts.txt, configuration for the generated problem files
- set
BINARY_DIRto the directory where the executables will be built in release mode, so that checkers are compiled to the same directory; - update
TEMPLATES_DIRandCHECKERS_DIRif necessary.
-
templates/cpp/CMakeLists.txt, the main configuration file for CMake
- set
INCLUDES_DIRto the directory with your custom library header files; - update
TEMPLATES_DIRandCHECKERS_DIRif necessary; - set
CODE_INLINERto the code inliner path you built above.
Now launch ACHelper.jar and enjoy.