Mandarancio / OpenGOO

A free clone of World Of Goo
mandarancio.github.com/OpenGOO
Other
153 stars 21 forks source link

Dont work under Debian Wheezy 64 bits #43

Closed apostols closed 12 years ago

apostols commented 12 years ago

Hi,

I try compile OpenGoo and i got this:

make

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_XML_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/QtXml -I/usr/include/qt4 -I. -o tools.o tools.cpp g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQTSHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o thorn.o thorn.cpp thorn.cpp: In constructor ‘Thorn::Thorn(QPoint, const QList&, b2World&, QObject)’: thorn.cpp:18:9: error: ‘struct b2BodyDef’ has no member named ‘type’ thorn.cpp:18:16: error: ‘b2staticBody’ was not declared in this scope thorn.cpp:40:24: error: no matching function for call to ‘b2PolygonShape::b2PolygonShape()’ thorn.cpp:40:24: note: candidates are: In file included from /usr/include/Box2D.h:37:0, from tools.h:4, from thorn.cpp:2: /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:41:15: error: ‘class b2PolygonShape’ has no member named ‘SetAsBox’ thorn.cpp:42:15: error: ‘class b2Body’ has no member named ‘CreateFixture’ make: *\ [thorn.o] Error 1

Another issue is that library uses Box2D/Box2D.h. In Debian package, the path is /usr/includes/Box2D.h

Thanks you.

Mandarancio commented 12 years ago

Which version of box2d are you using? It seem to old, try using the last one from http://www.box2d.org

apostols commented 12 years ago

In Debian: 2.0.1+dfsg1-1 (libbox2d-dev package)

Mandarancio commented 12 years ago

For opengoo is needed a version >= 2.2.1

fasigno commented 12 years ago

Try to compile the last version of box2d following the wiki, and let us know if the game works on debian.

Thanks.

AMDmi3 commented 12 years ago

As a side note, when I created FreeBSD port of box2d, I've been told by box2d devs that recommended way of using box2d is bundling and not systemwide installation, because new versions of box2d may change behavior and thus affect gameplay in an unexpected manner.

Mandarancio commented 12 years ago

So in the future we could bundling inside our code, I think is a good idea!

fasigno commented 12 years ago

Someone should open a task for it.