Giter Site home page Giter Site logo

Comments (7)

alkurbatov avatar alkurbatov commented on August 17, 2024

Hi, @slimak2
The problem is written in the output: SC2Api_INCLUDE_DIR-NOTFOUND;SC2Api_Proto_INCLUDE_DIR-NOTFOUND

Please carefully follow instructions in the README.

from commandcenter.

slimak2 avatar slimak2 commented on August 17, 2024

I am following, but i dont now how to set the variables SC2Api_INCLUDE_DIR and SC2Api_Proto_INCLUDE_DIR. i dont see anything in README about those variables. Please tell me in witch step i did mistake.
I tried to set variables as
SC2Api_INCLUDE_DIR="/mnt/minerva1/nlp/projects/ai_in_games19/s2client-api/commandcenter/src:$SC2Api_INCLUDE_DIR"
and as
SC2Api_Proto_INCLUDE_DIR="/mnt/minerva1/nlp/projects/ai_in_games19/s2client-api/commandcenter/src:$SC2Api_Proto_INCLUDE_DIR"
but there was no difference.

from commandcenter.

alkurbatov avatar alkurbatov commented on August 17, 2024

The variables are set automatically by cmake if it finds required headers in the folders described in readme. Your error means that the api and protobuf headers are not where we expect it to find. Thats why I recommend you recheck the readme and the files copied.

from commandcenter.

slimak2 avatar slimak2 commented on August 17, 2024

Thank you, i see, the problem is that i am installing it on server where i dont have root rights, thats why i moved SC2 API headers and SC2 API libraries in my local folder and i did set CMAKE_LIBRARY_PATH and PATH variables to this location. i was convinced it would work. Can you please give me advice how can i make it work if i dont have root?

from commandcenter.

alkurbatov avatar alkurbatov commented on August 17, 2024

There are several ways to fix it.

  1. You can edit our findSC2Api cmake macro
    https://github.com/davechurchill/commandcenter/blob/master/cmake/FindSC2Api.cmake
    Search for the 'PATHS' specifications and add there absolute path to your folders.

  2. You can change the build routine itself (it requires more work): drop findSC2Api macro and specify all the paths manually. The example could be seen in my repository:
    https://github.com/alkurbatov/suvorov-bot

In general we should support such case, for example Boost allows to specify custom path to the libs and headers. Please file additional issue regarding it or reopen this one.

from commandcenter.

slimak2 avatar slimak2 commented on August 17, 2024

this is working! thank you so much!

from commandcenter.

davechurchill avatar davechurchill commented on August 17, 2024

@alkurbatov Thanks for the help :)

from commandcenter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.