Comments (7)
check if that variable is set and if not to run
allegro-config
This is a good idea.
from dumb.
This is a bug in our CMakeLists.txt. I will go about submitting a PR tomorrow.
from dumb.
Is it a matter of adding include_directories(${ALLEGRO_INCLUDE_DIR})
to the BUILD_ALLEGRO4 statement? That seems to work.
from dumb.
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.
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.
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.
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)
- 0.9.3 -> 2.0 transition and 2.0 API shortcomings: document these HOT 2
- Can't Use DUMB_OFF_T_CUSTOM to Fix Static Assertion On 32-Bit System HOT 7
- Won't Compile with MinGW32 HOT 6
- Resamplers Crash When SSE Enabled (MinGW) HOT 7
- PSM Playback Has Garbled Sound HOT 1
- aldumb missing HOT 11
- Ode to Protracker, 20sec, volume HOT 3
- libaldmb: Crashes with games that are using packfiles HOT 8
- Consider versioned dumb variants HOT 1
- Dumb can't open the UMX files included in the Unreal Beta of 1998 HOT 1
- Duplicate filenames on the playlist HOT 9
- Feature request: allow client code to programmatically set the next pattern. HOT 2
- Reads past end of file with DUMB_MOD_RESTRICT_OLD_PATTERN_COUNT HOT 3
- fb2k crashes while playing "ASIKWUSpulse - Shrubbing.s3m" HOT 2
- Support Standalone MIDI
- Seeking HOT 1
- allegro-5.2.5.0 HOT 1
- build fail HOT 1
- omit if-before-free
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dumb.