[Bug 82028] New: SDL template (Appwizard) doesn't work properly, I have PATCH
Konrad Materka
kmaterka at wp.pl
Sun May 23 00:22:54 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=82028
Summary: SDL template (Appwizard) doesn't work properly, I have
PATCH
Product: kdevelop
Version: 3.0.3
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-devel kdevelop org
ReportedBy: kmaterka wp pl
Version: 3.0.3 (using KDE KDE 3.2.2)
Installed from: Debian testing/unstable Packages
OS: Linux
After creating new program in Appwizard from SDL template program doesn't compile on my system (Debian SID). g++ can't find file SDL.h, because in Debian rhis file is palced in /usr/include/SDL/, not in /usr/include/.
G++ can't find file because ./configure and make don't use sdl-config properly. Output from sdl-config --cflags is not commited to CXXFAGS variable. Litle change in file: configure.in resolve this problem:
diff -u configure.in configure.in.old
--- sdlbomber_1/configure.in 2004-05-22 19:56:27.000000000 +0000
+++ sdlbomber/configure.in 2004-05-22 21:32:26.000000000 +0000
@ -78,11 +78,11 @
done
LIBSDL_RPATH=`echo $LIBSDL_RPATH | sed -e "s/-L/-R/g"`
LIBSDL_CFLAGS="`$LIBSDL_CONFIG --cflags`"
+ CXXFLAGS="$CXXFLAGS $LIBSDL_CFLAGS"
AC_DEFINE_UNQUOTED(HAVE_LIBSDL, 1, [Defines if your system has the LIBSDL library])
fi
-
AC_SUBST(LIBSDL_LIBS)
AC_SUBST(LIBSDL_CFLAGS)
AC_SUBST(LIBSDL_RPATH)
I have added one line:
CXXFLAGS="$CXXFLAGS $LIBSDL_CFLAGS"
I know that this is not the smartest move in the world, but... it works perfectly!
Could you correct SDL template?
If you have any question about this send me a e-mail:
kmaterka wp pl or konrad linux pl
More information about the KDevelop-devel
mailing list