From: Benjamin J. S. <sto...@in...> - 2000-12-29 11:19:00
|
> Has anyone gotten Allegro to work with KDevelop (1.3)? I installed allegro > (to /usr/local/), fired up kdev and added -lalleg to the project settings of > my project, when this did not work I tried to add -L/usr/local/lib to the > library search paths. Still do not work. At first it could not find allegro > at all, and when I looked in /usr/local/lib the library had full version in > the name, so I made a symlink called liballeg.so pointing to the > fullname-liballeg. now it could find the alleg-library but complins with a > lot of lines like this: Here's what you need to do for KDevelop. Go to your project directory, go to the source (my directory for the source is named after the project, which I found strange) and go past the end block of the "kdevelop will overwrite this part!!!" Then, put something like this: LDFLAGS = `allegro-config --libs` Be sure you use the ` (mine is above the tab key), and not the regulat apostrophe ('). This way, your program will compile with Allegro and you don't have to mess with it anymore. allegro-config --libs outputs all the needed compiler library info, and the `` pastes it right into the command when it compiles. If you try to put that through KDE, it will try to compile the test program during configure with it, and will result in error, as it doesn't have an END_OF_MAIN(). Someone should keep this info on Allegro and KDevelop, heh. :-) ~StoverTech~ |