Usually indeed impossible to do directly, there's always going to be a middle man (like points.com or others)
Even within an alliance - I tried moving my BA
account to AA
when I moved from Europe to the Caribbean a few years ago, couldn't do it so I now have a bunch of useless BA
Person to person, or even buying missing miles, is sometimes possible (AA for example).