[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/games/astrododge
From: Andrew Coles <andrew_coles () yahoo ! co ! uk>
Date: 2009-03-26 23:39:25
Message-ID: 1238110765.779256.18241.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 945150 by coles:
It now compiles:
- fixed CMakeLists.txt to point to right variable names for libraries
- added include to Eigen/Geometry in relevant classes to provide
the inlined implicit template definition of cross().
M +2 -0 astrogen/asteroidgen.cpp
M +2 -2 src/CMakeLists.txt
M +2 -0 src/gameobject.cpp
M +1 -1 src/gameworld.cpp
--- trunk/playground/games/astrododge/astrogen/asteroidgen.cpp #945149:945150
@@ -27,6 +27,8 @@
#include <KConfig>
#include <KConfigGroup>
+#include <Eigen/Geometry>
+
using namespace Eigen;
#include <stdlib.h>
--- trunk/playground/games/astrododge/src/CMakeLists.txt #945149:945150
@@ -1,4 +1,4 @@
-include_directories(${ODE_INCLUDE_DIR})
+include_directories(${ODE_INCLUDE_DIRS})
set(astrododge_SRCS
asteroid.cpp
@@ -16,4 +16,4 @@
kde4_add_ui_files(astrododge_SRCS lodinfowidget.ui)
kde4_add_executable(astrododge ${astrododge_SRCS})
-target_link_libraries(astrododge ${KDE4_KDEUI_LIBS} ${KGLLIB_EXTRAS_LIBRARY} \
${ODE_LIBRARY}) +target_link_libraries(astrododge ${KDE4_KDEUI_LIBS} \
${KGLLIB_LIBRARY} ${KGLLIB_EXTRAS_LIBRARY} ${ODE_LIBRARIES})
--- trunk/playground/games/astrododge/src/gameobject.cpp #945149:945150
@@ -20,6 +20,8 @@
#include "gameworld.h"
#include "model.h"
+#include <Eigen/Geometry>
+
#include <kgllib/mesh.h>
#include <KDebug>
--- trunk/playground/games/astrododge/src/gameworld.cpp #945149:945150
@@ -220,7 +220,7 @@
mDataDir = datadir;
dInitODE();
- kDebug() << "ODE config:" << dGetConfiguration();
+// kDebug() << "ODE config:" << dGetConfiguration();
mOdeWorld = dWorldCreate();
dWorldSetGravity(mOdeWorld, 0.0, -0.0, 0.0);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic