Setting up an Open source project in Code Blocks

Started by
2 comments, last by Wilhelm van Huyssteen 12 years, 4 months ago
Hi.

I have no C++ experience apart from reading example c++ code (Im one of those Java people). Theres this open source SNES emulator written in c++ that I want to play around with but im strugling to get the code to run in Code Blocks and I would appreciate some help in setting it up.

Heres a link to the source: http://bsnes.googlecode.com/files/bsnes_v084-source.tar.bz2. Its about 900Kb. It contains all the source and header files, some resource files (textures etc), a Makefile (wich a asume is usefull) and a .BAT file that contains a command to build the project using mingw.

the author also has a compilation guide on his website http://byuu.org/bsnes/compilation-guide. Dont know how helpfull this is since im not trying to build it but the part about directx and opengl headers seem relevant.

I have tried setting it up with no luck so far. If someone here that understands Code Blocks and the c++ build process better would download the source and give me some assistance i would realy appreciate it. Thnx in Advance!

PS. it doesnt need to be done in Code Blocks. Il use any freely available C++ IDE. Code Blocks just happen to be the first thing i clicked on after googling "C++ IDE".
Advertisement
I'd recommend doing like it says and installing the latest TDM-GCC. The MinGW-w64 version compile 64-bit by default, but also supports 32-bit. If you want to use Code::Blocks as an IDE you can easily install the IDE-only version and set it up to use Mingw. You'll probably also want to install MSYS which will give you tools like gnu make which are normally required to compile most open source projects.

You don't even really need Code::Blocks. Some people like IDEs I guess, but I think some people think they are necessary simply because their only exposure to programming has been through things like MSVC.
Just out of curiosity, why did you choose Code::Blocks over CodeLite?
"But who prays for Satan? Who, in eighteen centuries, has had the common humanity to pray for the one sinner that needed it most?" --Mark Twain

~~~~~~~~~~~~~~~Looking for a high-performance, easy to use, and lightweight math library? http://www.cmldev.net/ (note: I'm not associated with that project; just a user)
I didint :D as i said its just the first thing i found on google. Im not a C++ programmer so i was just looking for an c++ IDE to put this open source project in so i could easily tweak it.

This topic is closed to new replies.

Advertisement