Menu

getting started

Simón Flores

Dependencies

  • Bullet Physiscs library
  • SDL
  • SDL_image
  • OpenGL

Setting Up

To use mialib first unzip the tar.gz lib, edit the Makefile, change /usr/local/include/bullet for the bullet instalation paht, and type in the terminal "make", it generates the mialib.a file that you must to link to your app.

To compile your app create a Makefile like this:

LIBS = -lBulletCollision -lBulletDynamics -lLinearMath -lBulletSoftBody -lGL -lGLU -lGLEW -lSDL -lSDL_image 
INC = -I/usr/local/include/bullet -I../mialib ../mialib/mialib.a

all: 
    g++ -g main.cpp  -o main  $(INC) $(LIBS)

change ../mialib for the mialib installation path.

A very short example application

#include "m.h"

class MyApp: public mSDLapp{
public:

};

IMPLEMENT_M_APP(MyApp);

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.