Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-26-2009, 05:02 AM   #1
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Rep: Reputation: 33
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' &&

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 or 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 05:04 AM.
Old 08-26-2009, 07:11 AM   #2
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 304

Original Poster
Rep: Reputation: 33
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you pass configure options kdevelop? binarybob0001 Programming 1 03-25-2008 05:03 PM
Kdevelop, Configure and ksharedptr.h snoozing SUSE / openSUSE 1 01-30-2006 05:17 AM
kdevelop configure fails on berkeley db.h jhcatch22 Linux - Software 1 06-16-2004 10:04 PM
Auto-generation of configure files in Kdevelop bigredgiant1 Programming 0 04-11-2004 02:46 PM
How to create configure file in kdevelop?? cd7809 Linux - Software 1 10-10-2003 04:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration