Well, I succeeded in figuring out how to get Eclipse to create an Amiga project including automatic generation of Makefiles. And it wasn't as difficult as I thought, I just needed the time to figure it out.
Prerequisites:
1.
Eclipse and the
CDT/, obviously.
2a. ZeroHero's
Cross Compiler tools.
2b. Alternatively
AmiDevCpp. I used this as I already had AmiDevCpp set up on my computer.
Steps are as follows:
- In Eclipse, select New -> Cpp Project
- Enter a Project Name.
- Under Executable, select Cross Compile project.
- Click Next
- In Tool Command Prefix, enter "m68k-amigaos-" without quotes. You can change this to change your target compilation. For example, if you want to compile to AROS on x86, change it to "i386-aros-". For MorphOS, it can be changed to "ppc-morphos-" and AmigaOS 4.0 is "ppc-amigaos-".
- In Tool Command Path enter: {Root path to Cross Compiler}usr\local\amiga\bin, for me this was: P:\Windows\AmiDevCpp\usr\local\amiga\bin the location of ZeroHero's cross compiler within AmiDevCpp.
- Click Finish.
You are now free to add a Source file to your project. I used this one:
#include <iostream>
using namespace std;
int main (int argc, char *argv[])
{
cout << "Hello Nerd!" << endl;
cin.get();
return 0;
}
If you try this, some things to be aware of: Initially, when I tried this, the source code, above, showed errors like not being able to find iostream and/or cout or cin. I tweaked this by for example, turning discovery options on, which caused the problem with my first post in this thread, and then back off, which seemed to allow everything to work perfectly.
So, if you try this and encounter anything different, please report back here so I can continue to refine this.
Up next: try some (slightly) more complex objects.