Mandarancio/OpenGOO — Issue #1: Building on Debian
Author: passel
Created: 2012-02-20 06:23:51+00:00
State: open

Debian testing "Wheezy" 64-bit
4Gigs RAM, ATI RV630 [Radeon HD 2600XT]
libqt4-dev, libqt4-opengl-dev, libbox2d-dev installed

1- Box2D is located in /usr/include, *.h files that include Box2D.h say "#include "
To fix,
--added "-I/usr/include/" to the "INCPATH" line in the Makefile (also, "-I." is in there twice)
--changed the include line in all *.h files to read "#include "
OR, copy Box2D.h into a directory named "Box2D" created in the source folder.
--From OpenGOO source folder: mkdir ./Box2D && cp /usr/include/Box2D.h ./Box2D/

2- Compile errors: $ qmake && make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/X11R6/include -I. -o thorn.o thorn.cpp
thorn.cpp: In constructor ‘Thorn::Thorn(QPoint, int, b2World*, QObject*)’:
thorn.cpp:9:9: error: ‘struct b2BodyDef’ has no member named ‘type’
thorn.cpp:9:14: error: ‘b2_staticBody’ was not declared in this scope
thorn.cpp:11:20: error: no matching function for call to ‘b2PolygonShape::b2PolygonShape()’
thorn.cpp:11:20: note: candidates are:
/usr/include/Box2D/Collision/Shapes/b2PolygonShape.h:113:2: note: b2PolygonShape::b2PolygonShape(const b2ShapeDef*)
/usr/include/Box2D/Collision/Shapes/b2PolygonShape.h:113:2: note: candidate expects 1 argument, 0 provided
/usr/include/Box2D/Collision/Shapes/b2PolygonShape.h:55:7: note: b2PolygonShape::b2PolygonShape(const b2PolygonShape&)
/usr/include/Box2D/Collision/Shapes/b2PolygonShape.h:55:7: note: candidate expects 1 argument, 0 provided
thorn.cpp:16:11: error: ‘class b2PolygonShape’ has no member named ‘Set’
thorn.cpp:18:11: error: ‘class b2Body’ has no member named ‘CreateFixture’
make: *** [thorn.o] Error 1