kdevelop configure file
My program uses SDL, OpenGL, and GUICHAN. I wrote it in KDevelop in Slackware. Under project options, configure options, linker flags, I added this:
-lguichan_sdl -lguichan_opengl -lguichan -lSDL_mixer -lSDL_image -lSDL -lGLU -lGL
When I run Automake and friends this is the 1st line I read:
cd '/home/icecube/demo2_5' && LDFLAGS="-lguichan_sdl -lguichan_opengl
-lguichan -lSDL_mixer -lSDL_image -lSDL -lGLU -lGL"
"/home/icecube/demo2_5/configure" && cd '/home/icecube/demo2_5/./src' &&
WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE
I want to be able to take all the source files and the configure script from this project and then compile it on windows with MinGW.
But I haven't tried that yet. I only tried compiling it without KDevelop. It doesn't work. I can delete all the .o files and then type "make" and that still works. But if I delete the .o files and delete "Makefile" as well then I can't get it to work. I type "./configure" and that generates a new makefile. But then when I run make it doesn't link all those libraries I added into KDevelop. It's as if when KDevelop generates a makefile it adds those linker flags on the fly instead of having them in makefile.am or configure.in or wherever they go when you're not using an IDE.
So how do you get your source independent from the IDE so people can just type "./configure" and "make"? I thought that configure script would have those linker flags built into it or something but it doesn't.
Last edited by icecubeflower; 08-26-2009 at 04:04 AM.
|