Advertisement
Guest User

wrestling with stack overflow

a guest
Mar 3rd, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. 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.
  2.  
  3. As a preface, I have installed Allegro 5.0.5 with no error messages on Debian Linux according to
  4. http://wiki.allegro.cc/index.php?title=Debian_and_Allegro_5
  5.  
  6. and consulted these posts
  7. http://stackoverflow.com/questions/6377204/compiling-c-code-with-allegro-5-and-g
  8. http://stackoverflow.com/questions/8430632/allegro-5-0-why-am-i-getting-linker-errors
  9.  
  10. My error messages using the command:
  11. g++ -o foo allegtest.cpp `pkg-config --cflags --libs allegro-5.0`
  12.  
  13. give the familiar:
  14. error: allegro5\allegro.h: No such file or directory
  15.  
  16. the results of the command:
  17. pkg-config --libs allegro-5.0
  18.  
  19. yields: -lallegro
  20.  
  21. the results of the command:
  22. pkg-config --cflags
  23.  
  24. 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
  25.  
  26. the contents of the allegro-5.0.pc (located in allegro-5.0.5/build/lib/pkgconfig)
  27.  
  28. prefix=/usr
  29. exec_prefix=${prefix}
  30. libdir=${exec_prefix}/lib
  31. includedir=${prefix}/include
  32. version=5.0.5
  33. soversion=5.0
  34. suffix=
  35.  
  36. Name: allegro
  37. Description: Allegro game programming library
  38. Version: ${version}
  39. Libs: -L${libdir} -lallegro${suffix}
  40. Libs.private:
  41. Cflags: -I${includedir}
  42.  
  43. .... this is the default file btw
  44.  
  45. Why isn't it or does seem as though it cannot find the header files when it appears to be finding the library files?
  46.  
  47. 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):
  48.  
  49. "Once you've run that, press "c" twice, and then "g". You should now be back to a console."
  50.  
  51. 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.
  52. I think that is everything. If I forgot an important piece of info let me know.
  53.  
  54. Thank you all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement