Giter Site home page Giter Site logo

Comments (7)

SimonN avatar SimonN commented on August 16, 2024 1

check if that variable is set and if not to run allegro-config

This is a good idea.

from dumb.

Rondom avatar Rondom commented on August 16, 2024

This is a bug in our CMakeLists.txt. I will go about submitting a PR tomorrow.

from dumb.

msikma avatar msikma commented on August 16, 2024

Is it a matter of adding include_directories(${ALLEGRO_INCLUDE_DIR}) to the BUILD_ALLEGRO4 statement? That seems to work.

from dumb.

msikma avatar msikma commented on August 16, 2024

Oh, I just realized also that the following line in cmake-scripts/FindAllegro4.cmake might be problematic:

exec_program(allegro-config ARGS --libs OUTPUT_VARIABLE ALLEGRO_LIBRARY)

If I'm linking to an Allegro library somewhere else, allegro-config won't work and the configuration will have an invalid value in it:

...
-- Found Allegro: /bin/sh: allegro-config: command not found
...

Didn't mention this before since I modified this file to get it to work and forgot about it.

from dumb.

Rondom avatar Rondom commented on August 16, 2024

The first issue with the include path is fixed by cab1803.

Regarding the second issue, is there a standard environment variable that is used in other build systems to specify the path to the allegro-config binary?

Adding the directory to your path during the invocation of cmake should also help, without you needing to modify any files.

from dumb.

SimonN avatar SimonN commented on August 16, 2024

I don't think Allegro 4 had a standard variable for its binaries. They're generally expected to be in the path, thereore I would add your local A4 directory to your path variable.

from dumb.

msikma avatar msikma commented on August 16, 2024

I'm not sure if it's necessary to have allegro-config. As far as I can tell, just setting the $ALLEGRO_LIBRARY manually is sufficient, so it's possible to just check if that variable is set and if not to run allegro-config. This makes it possible to link to Allegro 4 without having to actually have it installed and in the path.

In my case this is useful because I'm actually cross-compiling, so I'm not actually installing A4, but just linking to it.

from dumb.

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.