Hello,
I have a question re building the Box2d testbed in code:blocks. I followed the orginal tutorials and got it to work, then I watched the following videos in order to see how the output of RUBE can be worked on further with C++,
https://www.youtube.com/watch?v=WqLR4dFn1qE
https://www.youtube.com/watch?v=-S-pmWLLGrU
https://www.youtube.com/watch?v=foYD3fWpMoo&t=349s
Unfortunately I can't get Code::Blocks to build the testbed with the new loadrube.h files. I've also looked at the Box2D JSON loader (http://www.iforce2d.net/b2djson/) but I can't figure out how it fits together. I'm sorry if this is covered elsewhere or its so blatantly obvious that I can't see the forest for the trees.
I've looked in the folder sampleLoaders-box2d-testbed-(C++) that came with the RUBE downloader but unlike the first tutorials there wasn't a Code::Blocks platform (Box2d.workspace,etc) (?)
Any help or pointer towards existing resources would be greatly appreciated. Thanks,
kind regards,
Helen
RUBE & Code::Blocks
Re: RUBE & Code::Blocks
There is not much to go on here. Surely "can't get to build" involves an error message of some kind?
The b2dJson is a handful of files you add to your program.
It sounds like this question is more about code:blocks and how to set up a project, compile and link etc, rather than Box2D or RUBE usage. Perhaps the code::blocks forums might be a better place to look for info? eg. http://forums.codeblocks.org/index.php?topic=13709.0
The b2dJson is a handful of files you add to your program.
It sounds like this question is more about code:blocks and how to set up a project, compile and link etc, rather than Box2D or RUBE usage. Perhaps the code::blocks forums might be a better place to look for info? eg. http://forums.codeblocks.org/index.php?topic=13709.0
Re: RUBE & Code::Blocks
yes I'm sorry I wasn't clearer, I was getting so many errors I didn't know where to start. Thanks for your quick reply and the code::blocks forum link, I've been looking around here and other forums today as the following errors keep coming up, 'Can't read files timestamp' or 'no such file or directory' - even though the files are there and the paths seem to be correct.
Essentially I'm trying to get the box2d testbed to run with code::blocks in order to go through the loadrube.h files. Is there another way to access this file?
I know box2d doesn't support/come with the code::blocks platform (contribution folder) so I was trying to work from your original tutorials which I had gotten to work (Box2D_v2.1.2-iforce2dTutorials). I copied the extra files (loadrube.h, loadrube_customProperties.h, etc and the rubestuff folder) to the appropriate folders and then added these files to the project in code::blocks itself but no luck.
I hope my problem is a little clearer and I'll keep looking through the forums you suggested but if you have any other ideas I'd be grateful. Thanks again for your time.
Essentially I'm trying to get the box2d testbed to run with code::blocks in order to go through the loadrube.h files. Is there another way to access this file?
I know box2d doesn't support/come with the code::blocks platform (contribution folder) so I was trying to work from your original tutorials which I had gotten to work (Box2D_v2.1.2-iforce2dTutorials). I copied the extra files (loadrube.h, loadrube_customProperties.h, etc and the rubestuff folder) to the appropriate folders and then added these files to the project in code::blocks itself but no luck.
I hope my problem is a little clearer and I'll keep looking through the forums you suggested but if you have any other ideas I'd be grateful. Thanks again for your time.
Re: RUBE & Code::Blocks
Hi again,
I've mangaged to get the testbed to run but it's showing that it 'Could not load JSON file' - whenever I try to run the load RUBE, load RUBE(custom properties), load RUBE(joint types) files in the testbed.
I have the three folders (src, data-files, binaries) and rubeRawInfoOutput.json - the file being called in loadrube.h is in the data-files folder. Am I missing something?
I've mangaged to get the testbed to run but it's showing that it 'Could not load JSON file' - whenever I try to run the load RUBE, load RUBE(custom properties), load RUBE(joint types) files in the testbed.
I have the three folders (src, data-files, binaries) and rubeRawInfoOutput.json - the file being called in loadrube.h is in the data-files folder. Am I missing something?
Re: RUBE & Code::Blocks
What filepath did you tell it to use? If you don't give a full path, it will look in the current working working directory, at least on Windows and Linux. On Mac there is some crazy system that I don't fully understand.