Mariusmssj4
Posts: 15
Joined: Thu Jan 23, 2014 10:37 am

Raspberry Pi2 cross compile a library

Fri May 01, 2015 9:43 am

Hello guys,

I am trying to compile Point cloud library on my Pi2 but having lots of issues with swap and so on. So I saw an advice to compile on another Linux machine using armv7 cflag and then move the files to pi2 and do make install.

I was wondering how would I got about to do this? I got a machine running linux mint.

Thank you.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspberry Pi2 cross compile a library

Fri May 01, 2015 10:51 am

Have a look at the kernel build docs https://www.raspberrypi.org/documentati ... uilding.md if you set-up a cross compile environment for the kernel you can use that to cross compile anything else.

I've got that running on a Ubuntu Virtualbox on my Windows laptop.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “C/C++”