Блог пользователя Al.Cash

Автор Al.Cash, 7 лет назад, По-английски

Let me introduce the competitive programming tool that's aimed to help you get AC more easily: ACHelper, wiki

I tried to take the best elements from Hightail, CHelper and Caide, and add project generation using CMake on top of that.

The tool itself is cross-platform and should work with any programming language and IDE that is supported by CMake (or other project generator). However, templates only for C++ for Mac (that should work for Linux as well) are implemented at the moment. Any help on Windows support is highly appreciated, more details on that here.

A screenshot of ACHelper with my AppCode IDE after the testing. screenshot

Let me know what you think.

  • Проголосовать: нравится
  • +76
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится +22 Проголосовать: не нравится

This is awesome! If you have the time it would be great if you could make a screencast of you using it in a contest, as for CHelper with Egor / Petr it really helped me understand the best workflow.

»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

what am i doing wrong?

  • »
    »
    7 лет назад, # ^ |
      Проголосовать: нравится +14 Проголосовать: не нравится

    As you can see, there's no Xcode on the list. Looks like you're using Linux, so that makes perfect sense. Replace Xcode with one of the generators listed such that you have that IDE.

    • »
      »
      »
      7 лет назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      i am unable to find full path to CMake executable in Fedora. Can anybody help?

      • »
        »
        »
        »
        7 лет назад, # ^ |
          Проголосовать: нравится +4 Проголосовать: не нравится

        mkdir error is fine, since the directory already exists.

        CMakeLists.txt should be created in the contest root directory by ACHelper. Parse some problems and check that it's there.

        There should be no need to run the script by hand, if it's set correctly in the last line of ACHelper.xml. But if you'd like to do that, run it from the contest root, i.e. scripts/unix/project.sh.

      • »
        »
        »
        »
        7 лет назад, # ^ |
        Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

        try which cmake or type -a cmake

        • »
          »
          »
          »
          »
          7 лет назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          It parsed the test cases! But i am still not able to understand how to run testcases!

          • »
            »
            »
            »
            »
            »
            7 лет назад, # ^ |
            Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

            If CMake ran successfully, open a project that was generated inside Project directory with the IDE you specified. Then run the problem target in Release or RelWithDebInfo mode (just make sure is't the same as the one you set in CMakeScripts.txt — item 3 in the instruction).

            • »
              »
              »
              »
              »
              »
              »
              7 лет назад, # ^ |
                Проголосовать: нравится 0 Проголосовать: не нравится

              I opened a project that was generated inside the project directory with Codeblocks. Now, i don't know how to run the problem target in Release or RelWithDebInfo mode!

              sorry for being so dumb and bugging you again nd again!

              • »
                »
                »
                »
                »
                »
                »
                »
                7 лет назад, # ^ |
                  Проголосовать: нравится 0 Проголосовать: не нравится

                Well, this depends only on IDE, and I didn't use Codeblocks. You should be able to select the target and configure it somewhere in the interface. Maybe the IDE didn't create the run configuration automatically.

        • »
          »
          »
          »
          »
          7 лет назад, # ^ |
            Проголосовать: нравится +6 Проголосовать: не нравится

          poikniok is right, a screencast will be very helpful !