LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kdevelop configure file (https://www.linuxquestions.org/questions/linux-newbie-8/kdevelop-configure-file-750324/)

icecubeflower 08-26-2009 04:02 AM

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.

icecubeflower 08-26-2009 06:11 AM

Yeah that's my whole problem. When it runs the configure script in KDevelop it adds those LDFLAGS. When I type ./configure outside of KDevelop it doesn't add them.

How do people create distributable source code with KDevelop? Am I supposed to add those flags in the configure script myself or something?


All times are GMT -5. The time now is 04:22 PM.