Pages: 1
  Print  
Author Topic: How to use Box2D?  (Read 15878 times)
Offline (Unknown gender) AsuMagic
Posted on: November 23, 2013, 03:29:19 pm
Member
Joined: Nov 2013
Posts: 23

View Profile Email
Hello, I am new to this forum - And to Enigma ( Not really to GM ).
I'm pretty impressed by Enigma. But it is still bugged.
Today I wanted to try Box2D. When I'm trying running the application ( Just a room with nothing in ), I'm receiving a C++ error :
Code: [Select]
// ...
-INetworking_Systems/None/Info -IUniversal_System/Info -I. -Wall -s -O3   -MMD -MP -c -o .eobjs/Windows/Windows/Run/Universal_System/Extensions/Box2D/B2Djoints.o Universal_System/Extensions/Box2D/B2Djoints.cpp
Universal_System/Extensions/Box2D/B2Djoints.cpp:21:25: fatal error: Box2D/Box2D.h: No such file or directory
compilation terminated.
g++ -I../Additional/Windows/include -IPlatforms/Win32/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/Win32/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -Wall -s -O3   -MMD -MP -c -o .eobjs/Windows/Windows/Run/SHELLmain.o SHELLmain.cpp
In file included from Universal_System/Extensions/Box2D/include.h:29:0,
                 from API_Switchboard.h:39,
                 from SHELLmain.cpp:54:
Universal_System/Extensions/Box2D/B2Dfunctions.h:24:25: fatal error: Box2D/Box2D.h: No such file or directory
compilation terminated.
mingw32-make.exe[1]: Leaving directory `C:/Users/Sylvain/Downloads/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mingw32-make.exe: *** [Game] Error 2
It seems like Box2D files are not ready at all ( There is no file in the Box2D directory that I found in ENIGMA folders ) while documentation says it should be ready in Windows build.
I've tried downloading sources on Box2D website but I'm pretty noob about compiling with commandline. ( Just knows nothing about it, I've compiled sources once on linux with cmake )

Thanks in advance, and, ENIGMA developers, keep doing so!

Running Win7 32-bit with a Core 2 Duo intel processor
Logged
Offline (Male) Goombert
Reply #1 Posted on: November 23, 2013, 04:35:19 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Quote
C:\Users\Owner\Desktop\ENIGMA\enigma-dev\ENIGMAsystem\Additional\i686-w64-mingw32\include\Box2D
The headers do exist for me in the following path on my PC. Please tell me if that folder exists for you.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) AsuMagic
Reply #2 Posted on: November 23, 2013, 04:51:51 pm
Member
Joined: Nov 2013
Posts: 23

View Profile Email
Well I was on wrong version. I installed the newest one in an another folder and I was still running the older one, I feel stupid  :eng101:
Sorry for wasting your time, can you lock/delete this thread?
Logged
Offline (Male) Goombert
Reply #3 Posted on: November 23, 2013, 06:43:13 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Oh good! And no reason to delete it, it's fine, we don't ever delete topics here.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print