Cross compile for ARM (saving binaries to local machine)
-
I am trying to cross compile Qt C++ files to be run on raspberry pie. Unfortunately, while I have tried to follow countless tutorials, my friend's raspberry pie always fails to install the required qt dependencies. It seems to say that there is not enough memory on the raspberry pi to update the repositories (or something like that) and this isn't my device, it is a friend's, so removing programs on that pi to make room is not an option.
My desired solution here is to download a arml7 cross-compiler, configure qt to compile the executable, copy the file across and then fill in any missing .dlls on the target pi manually (it already has the qt library downloaded, why it is erroring is beyond me, but I don't have the time to figure this out, it is for a competition and the clock is ticking).
The top answer in this https://forum.qt.io/topic/90156/does-anyone-know-how-to-generate-exe-file-for-qt-creator-based-application/2 post illustrates my point.
However, wherever I look, people explain how to deploy the code straight to the raspberry pi, but this is not what I want.
For starters, I don't know where to find a relevant c++ cross compiler.
Any help would be appreciated!
-
Hi and welcome to devnet,
You do not give enough information about your setup.
You are talking about repositories and dlls so I would guess that you are running on Windows while you are deploying on Linux, is that correct ?
If so, it's really not the most ideal cross-compilation environment to be quick.
As for your friend's device, I would recommend taking a second card so you don't mess his system and can deploy more freely what you need.