KDevelop and SDL
I would like to use SDL with KDevelop, but this article claims that there are some problems. However, the steps to follow don't really seem to work with my version of KDevelop. The author also notes elsewhere on his site that newer versions of KDevelop may have fixed most if not all of the issues. However, the KDevelop tutorials still link to that outdated page.
I did some googling and searching the forums here, but couldn't really find much. Everyone either points to the outdated page, or suggests that you specify the library directory, etc by hand (like this guy). However, that messes up your cross platform compatibility, right? What's the point of using autoconf if you still need to set the SDL library paths, etc by hand? Is there actually a way around this in newer version of KDevelop? I could just set it by hand, but if I switch over to using KDevelop, I would like to use it correctly. Thanks for the help.
[edited by - Mr Grinch on May 2, 2004 5:51:50 PM]
KDevelop should provide a "simple SDL project". You can examine the generated files. Basically, configure invokes sdl-config to get both the CFLAGS and LFLAGS.
Problems with Windows? Reboot! - Problems with Linux? Be root!
I just wrote my autoconf templates by hand and got KDevelop to use them instead of trusting KDev to generate any.
My stuff.Shameless promotion: FreePop: The GPL god-sim.
In Kdevelop 3.0 (and later) if you don't do the simple SDL example, after you make your project, click on Project, then Project Options. On the right side, click on on Configure Options. In the C/C++ Preprocessor flags (CPPFLAGS) put:
Just below that in the Linker flags (LDFLAGS) I put:
Just a note, those are back ticks, not apostrophies. That's the key to the left of the number 1, also on the "~" (tilda) key. Also, be sure to put these settings in the "default" configurations and not just the debug configuration.
Cheers,
Bob
----------------------------------
[edited by - scourage on May 3, 2004 7:14:23 AM]
`sdl-config --cflags`
Just below that in the Linker flags (LDFLAGS) I put:
`sdl-config --libs`
Just a note, those are back ticks, not apostrophies. That's the key to the left of the number 1, also on the "~" (tilda) key. Also, be sure to put these settings in the "default" configurations and not just the debug configuration.
Cheers,
Bob
----------------------------------
![I'm not online](http://scourage.servebeer.com/bob/halfway.jpg)
[edited by - scourage on May 3, 2004 7:14:23 AM]
[size="3"]Halfway down the trail to Hell...
Scourage, if I do what you said will autoconf etc. check to make sure you have SDL and that it is a valid version?
You know...I really don''t know. I just ran autoconfig on my project and it checked for sdl-config (and found it) but it doesn''t check for a version. I think that you would have to manually edit the .config file to check for a specific version. I hope somebody else can shed more light on this, because I really don''t know. Have you tried dropping a line on the kedevelop.org forum? It''s at:
http://www.kdevelop.org/forum/list.php?f=2
Cheers,
Bob
----------------------------------
http://www.kdevelop.org/forum/list.php?f=2
Cheers,
Bob
----------------------------------
![I''m not online](http://scourage.servebeer.com/bob/halfway.jpg)
[size="3"]Halfway down the trail to Hell...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement