User:Hef/raspbian sdk: Difference between revisions

From Pumping Station One
No edit summary
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:


== Creating a sysroot ==
== Creating a sysroot ==
=== compiler ===
Get a linaro cross compiler. For linux, there are official ones available, for OS X, I used http://www.welzels.de/blog/en/arm-cross-compiling-with-mac-os-x/comment-page-1/
I needed to use the gcc 4.8 version for my compiled binaries to work on raspbian.  GCC 4.9 worked fine on alarmpi.
== everything else ==


In this case a sysroot is just a copy of the important files for compiling built for the target system.  It's also easier to just include a superset of the import files by grabbing pretty much everything.  
In this case a sysroot is just a copy of the important files for compiling built for the target system.  It's also easier to just include a superset of the import files by grabbing pretty much everything.  
Line 49: Line 57:
make -j8
make -j8
make install -j8
make install -j8
</syntaxhighlight>
once make install is run, there will be a a /volumes/rasbpian/usr/local/qt5.5-raspbian folder.  copy that back to the pi in the same location
First make a target location on the pi
<syntaxhighlight lang="bash">
sudo mkdir /usr/local/qt5.5-raspbian
chown pi:pi /usr/local/qt5.5-raspbian
</syntaxhighlight>
Copy the files from the host machine to the pi.
<syntaxhighlight lang="bash">
rsync -auP /usr/local/qt5.5-raspbian pi@raspbian.local:/usr/local
</syntaxhighlight>
</syntaxhighlight>