Compiling directly on the phone is pretty slow, but doable and I'd recommend you do that.
What works on a Raspberry Pi might not work on a PinePhone and vice versa, even though it's the same architecture.
The reason being that one of them might have missing dependencies, or dependencies are located in a different place, and such.
Though if you're compiling this one of a kind app that has 0 dependencies (well, apart from the compiler of course), then there should be no problems.
Though the most common 0 dependency app I think think of are the trillions of "Hello World" tutorial apps.
But that app should be a CLI app, because ncurses or GTK or Qt etc count as dependencies.
What works on a Raspberry Pi might not work on a PinePhone and vice versa, even though it's the same architecture.
The reason being that one of them might have missing dependencies, or dependencies are located in a different place, and such.
Though if you're compiling this one of a kind app that has 0 dependencies (well, apart from the compiler of course), then there should be no problems.
Though the most common 0 dependency app I think think of are the trillions of "Hello World" tutorial apps.
But that app should be a CLI app, because ncurses or GTK or Qt etc count as dependencies.
母語は日本語ですが、英語も喋れます(ry