Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post Posted: June 14th, 2017, 6:57 am 
 

Joined: June 14th, 2017, 6:40 am
Posts: 6
Hi everyone,
I am a complete noob when it comes to programming so if I ask some questions that seem really dumb you understand why :P.
Just wondering with homework for lesson 15 the box2d seems to have been changed to C and is no longer in C++ or am I doing something wrong because after I clone it and it says success I click on it and it goes to home screen as expected but there is no solution found. Been at this for 5 hours now trying to work out whats going wrong.
Any help would be greatly appreciated thanks in advance.


Top 
 Profile  
Reply with quote  
 Post Posted: June 14th, 2017, 4:59 pm 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2762
Location: Oklahoma, United States
As far as the Box2D files, there is no solution. You only need to put the Box2D folder into your VC++ Directories \ Includes under your project settings, then #include <Box2D.h> at the top of your project.

Have you read the Building.txtfile?

He suggests putting the Box2D subfolder into your project, then you can import them into your project and then #include "Box2D.h". The other stuff about premake5, you'd have to ask someone else or figure it out on your own, I haven't dealt with premake only CMake and even then, I rely on step by step instructions.

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post Posted: June 14th, 2017, 8:15 pm 
 

Joined: June 14th, 2017, 6:40 am
Posts: 6
Ah ok cool tyvm. The video tutorial might need a little changing or comments added so noobs like me don't get stuck :P.


Top 
 Profile  
Reply with quote  
 Post Posted: June 15th, 2017, 12:43 am 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3435
Location: Japan
There is a solution file for visual studio, but you have to look for it. It involves exploring and thinking a little though ;)

Edit:
It seems they have changed the build steps. That's annoying; I might have to redo the homework solution video.

Here are the steps for Visual Studio 2017:
- Command line: premake5 vs2017
- Open the resulting Box2D.sln (should be in Build/vs2017)
- Set Testbed as the startup project
- In the Testbed debugging properties, set the Working Directory to ..\..\Testbed
- Press F5 to build and run the Testbed

_________________
Chili


Top 
 Profile  
Reply with quote  
 Post Posted: June 15th, 2017, 6:10 am 
 

Joined: June 14th, 2017, 6:40 am
Posts: 6
Yeah just a little annoying but its only a small change although for the purpose of that home work kinda ruins what you were getting people to do. I did end up figuring it out that thanks to albinopapa pointing me in the right direction.


Top 
 Profile  
Reply with quote  
 Post Posted: June 15th, 2017, 6:14 am 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2762
Location: Oklahoma, United States
I think when chili covered vcpkg, you were able to choose Box2D, that maybe another route.

Did you have to install Premake? Did you do the TestBed also?

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post Posted: June 15th, 2017, 6:53 am 
 

Joined: June 14th, 2017, 6:40 am
Posts: 6
Had to get Premake5 no install required tho. I just put it into the same directory that I had to unpack the build files from and ran command prompt cd'd that directory and typed premake5 vs2015.
The build folder and its contents as far as I could tell was all it had to do but just means I couldn't clone so I just went into build folder,vs2015 and opened Box2D from there.


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: