Rene Posted July 15, 2009 Share Posted July 15, 2009 Hi everyone,Recently I've been trying to compile the D2TM sources with NetBeans using MinGW as compiler. After a few days I almost gave up, but today I made some progress. However I'm not a C/C++ guru, so to everyone who is interested: please help ;DAlright, what I've found out so far:First, check out the sources using SVN. You can use the integrated SVN plugin in NetBeans, but the first time you use it it probably isn't installed. The installation is very straightforward, so I won't describe it here. Once it is installed, check out the source from http://code.google.com/p/dune2themaker/Put the sources in a folder called Dune2TheMaker or whatever you like, and you want to check the 'Skip "trunk" and checkout only its content' checkbox. Click finish, and wait until SVN finishes downloading. At the time of writing, the latest revision is 114Next, you want to create a new project. Create a new C/C++ Application project, NOT a C/C++ Project from Existing Code. This is what I did wrong all the time. When you try to make a project from existing code, NetBeans wants you to specify a makefile, but when you try to use the makefile supplied with D2TM it doesn't work. Anyway, just create a new C++ App. Name it the same as you named the directory with the source, so the project will be placed in the same directory. When you open the project, you'll see it is still empty, so we're going to add the sources. Right click the project, and chose 'Add Existing Items from Folders'. Click add folder, and add the Dune2TheMaker folder. Now the D2TM source has been added to the project ;DNow, we still need to add the Allegro sources to the project, take a look at the 'How to get this And Compiling' document in the following thread to see where to get them:http://forum.dune2k.com/index.php?topic=19313.0EDIT: These zip files are also in the dependencies folder of the D2TM project.Make a new folder somewhere, and put the Allegro sources in this folder. I made a folder in the NetBeansProjects folder with the name 'Includes'. Next go to the project properties in NetBeans, and go to the 'C++ Compiler' page. At the 'Include Directories' option, add the folder you just made. Now we've added the Allegro headers, but I'm not sure what to do with the lib files mentioned in the document :-[But we can do one more thing: try to build the project. First, you will see the compiler spitting out a lot of warnings, and in the end some errors. The first error, 'cEventManager.cpp:3: error: `cEventManager' has not been declared', is easy to fix: just add #include "cEventManager.h" to d2tmh.h. I'd put it at line 96.Now let's try to rebuild the project. Still some errors concerning cEventManager.cpp, but I didn't take a look at them yet, as I first made this post :PAnyone willing to help me out on getting this working, please do so ;). I would really like to get this compiling. I will keep you updated here when I find out something more. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.