From Mega 2560 to Due

Hello, i have a lot of well working .ino's.
Now i need a better resolution and i have to use a Due.
But very much of that programs can't be compiled. There are errors like that:

Arduino: 1.5.8 (Linux), Board: "Arduino Due (Programming Port)"

In file included from MLX90614.ino:1:0:
/home/elektro/Arduino/libraries/I2Cmaster/i2cmaster.h:88:20: fatal error: avr/io.h: No such file or directory
 #include <avr/io.h>
                    ^
compilation terminated.
Fehler beim Übersetzen

  Dieser Report hätte mehr Informationen mit
  "Ausführliche Ausgabe während der Kompilierung"
  aktiviert in Datei > Einstellungen

If i use #include <avr/io.h> or #include <io.h> or other paths; it is without any effect.
I spread a lot of io.h in different folders. Without a result.
Why doesn't find the IDE 1.5.8 the files, but the old 1.0.5?
(the path's are very different, why?)

Due uses an ARM processor, unlike Mega wich uses a AVR processor.
You should modify your program or change library version to upgrade to ARM.

The IDE 1.5.8 is correct?
Where can i find the correct libraries?
What does that mean: "upgrade to ARM"?

Now i use the 1.6.0 IDE, but with the same wrong (?) libraries.

Ok, after one week i stopped working and translating hundreds of pages. For the correct installation of eclipse with all the necessary plugins for a ATSAM3X, the libraries, the toolchains and a lot of other stuff it will not work.
At the moment, the DUE is not ready for use.
I have to use a MEGA and a DUE parallel. That is the only way...

I use Eclipse IDE and have not had these problems.

You can see from your error message that it is looking for an AVR library, 'fatal error: avr/io.h: No such file'

You need to make sure you are using libraries for the DUE, so, you need to look for a version of 'i2cmaster' that has been writtn for the DUE.