If you made wall of bricks it can be said "you сложил wall", because you "added brick to brick" in process.
The idea of "сложившееся мнение" is the same: some monolithic opinion was made from...