Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- My first post on Stack overflow, and first use with allegro, and my first use of pkg-config. Very sorry if the formatting is odd in the post as it was wierdly not matching up correctly.
- As a preface, I have installed Allegro 5.0.5 with no error messages on Debian Linux according to
- http://wiki.allegro.cc/index.php?title=Debian_and_Allegro_5
- and consulted these posts
- http://stackoverflow.com/questions/6377204/compiling-c-code-with-allegro-5-and-g
- http://stackoverflow.com/questions/8430632/allegro-5-0-why-am-i-getting-linker-errors
- My error messages using the command:
- g++ -o foo allegtest.cpp `pkg-config --cflags --libs allegro-5.0`
- give the familiar:
- error: allegro5\allegro.h: No such file or directory
- the results of the command:
- pkg-config --libs allegro-5.0
- yields: -lallegro
- the results of the command:
- pkg-config --cflags
- yields an empty line and returns the prompt (research suggests it is supposed to give the path to the allegro headers?) ... which are located in /usr/include/allegro5 as expected
- the contents of the allegro-5.0.pc (located in allegro-5.0.5/build/lib/pkgconfig)
- prefix=/usr
- exec_prefix=${prefix}
- libdir=${exec_prefix}/lib
- includedir=${prefix}/include
- version=5.0.5
- soversion=5.0
- suffix=
- Name: allegro
- Description: Allegro game programming library
- Version: ${version}
- Libs: -L${libdir} -lallegro${suffix}
- Libs.private:
- Cflags: -I${includedir}
- .... this is the default file btw
- Why isn't it or does seem as though it cannot find the header files when it appears to be finding the library files?
- As a side note, on the installation when it got to the point where the install tutorial said to to the following (located in the Running Cmake section):
- "Once you've run that, press "c" twice, and then "g". You should now be back to a console."
- there was never a prompt to press anything, nor any error. It just gave the prompt after running thru everything up to that point. So I don't know what the c twice and g would have done.
- I think that is everything. If I forgot an important piece of info let me know.
- Thank you all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement