Summary: | ./configure fails when building project from SDL template | ||
---|---|---|---|
Product: | [Developer tools] kdevplatform | Reporter: | meldroc |
Component: | appwizard | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.0.0 | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
meldroc
2003-09-06 03:04:38 UTC
PS: My system actually has multiple versions of automake & autoconf. I also tried with automake 1.7 & autoconf 2.5. Still failed. I am having the same problem on a Mandrake 9.1 system with automake 1.6 and autoconf 2.5. I had a look at config.log and it looks like the SDL cflags are not getting passed to g++ when it trys to build the test program even though the sdl-config script is found. Thus the compiler fails because SDL.h is not found. Sounds very similar to the problems I had when wrestling an SDL macro into the automake & autoconf scripts on my KDevelop 2.0 project. If the test program is being compiled with g++, the paths from sdl-config need to be in CXXFLAGS as well as CFLAGS. [...] > * checking for SDL - version >= 1.2.0... no [...] > Obviously, the automake/autoconf scripts to check for the prescense of SDL > have failed. This maybe a SDL error. It occuers on my machine, too, but has nothing to do with kdevelop/gideon. It is really strange - perhaps the SDL guys can solve. I think the problem is aclocal: If I change in my /usr/share/aclocal/sdl.m4 all "SDL.h" to "SDL/SDL.h" and the line LIBS="$LIBS $SDL_LIBS" to LIBS="$LIBS $SDL_LIBS -lSDLmain -lSDL" it works fine! -- Dominik Haumann, dhaumann Could be, Dominik. The problem with using #include "SDL/SDL.h" and -lSDLmain -lSDL is it can break portability - hence the sdl-config script that comes with SDL. A good solution would use sdl-config to automagically generate the proper -l arguments. Try using the ` key (above tab on most keyboards) when you type `sdl-config --cflags` and `sdl-config --libs` instead of the ' key. You're using the wrong key I think. I had this problem also and it took me a while to figure out what was wrong. I found the answer here: http://vengeance.et.tudelft.nl/~smoke/logs/sdl/sdl.11May2003 I just checked to make sure sdl-config invocations are in backticks, and they are. I have verified that sdl-config is actually running. Please test again with newest CVS HEAD. Roberto (raggi) changed the file parts/appwizard/ sdlhello/configure.in and now it works for me! But I still get the warnings when doing "automake & friends". * cd /home/dh/Documents/projects/kdevelop/t3 && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -f Makefile.cvs * aclocal * autoheader * WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' * WARNING: and `config.h.top', to define templates for `config.h.in' * WARNING: is deprecated and discouraged. * * WARNING: Using the third argument of `AC_DEFINE' and * WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without * WARNING: `acconfig.h': * * WARNING: AC_DEFINE([NEED_MAIN], 1, * WARNING: [Define if a function `main' is needed.]) * * WARNING: More sophisticated templates can also be produced, see the * WARNING: documentation. * automake * autoconf * *** Success *** Dominik Those warnings ar normal. Ignore them |