It is easy to setup the FPC + Lazarus IDE, if you are going to build only for native platform (ex: Linux-x86 on Linux-x86 or Win32 on Win32, ..). But if you want to add the cross compilation (ex: x86-linux to arm-linux) capability, it will become difficult and you may stuck in wired setup cycle.
1st I used codetyphon. It is a monster. Too huge to manage and to know what is going into your system. After a bit of struggle, I found FpcUpDeluxe – multi-platform, simple and useful tool. Once you fulfilled the build tool dependencies or prerequisites, FpcUpDeluxe works smoothly. I used arm tool chains from Ubuntu package and Linaro. Both are Okay.
Setting up the FPC cross compilation env (for Arm-Linux) in Windows is bit of an challenge. Still working on it. If there is any success, I will update here 🙂