LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-26-2009, 04:02 AM   #1
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 313

Rep: Reputation: 34
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.
 
Old 08-26-2009, 06:11 AM   #2
icecubeflower
Member
 
Registered: Mar 2008
Location: USA
Distribution: Slackware 13.1
Posts: 313

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


Reply


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 04:03 PM
Kdevelop, Configure and ksharedptr.h snoozing SUSE / openSUSE 1 01-30-2006 04:17 AM
kdevelop configure fails on berkeley db.h jhcatch22 Linux - Software 1 06-16-2004 09:04 PM
Auto-generation of configure files in Kdevelop bigredgiant1 Programming 0 04-11-2004 01:46 PM
How to create configure file in kdevelop?? cd7809 Linux - Software 1 10-10-2003 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 AM.

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