Did you install the corresponding development packages for GTK? sudo apt-get install gtk2-dev or something like that.
I don't find in google which files I need. ( A long week working!!). I installed lazarus 1.8 from repository. So packages was installed.
Then I compile, and it's works. Now I missed the source file of FPC, but is not a big deal.
But your solution is better @PascalDragron. I'll try on monday, and if it's works, I should write a wiki article.
I want install lazarus in a jetson nano, becauce in my work we are going some products with it (secret for the moment). The first option is programing in Python. After one week reading and watching videos, python is not for a serius app.
The next step, may optional, is make a crosscompile, because jetson nano is little bit slow with GUI, like raspberry pi, jetson is faster but not to make a big project. And our aplication will without graphical enviroment.
Other idea, is make a remote debuging, but I don't know if we can do it. I have to spend more time searching info.
Thanks
/Blueicaro