Last active
August 29, 2018 03:45
-
-
Save artynet/3c22b56911d8b9e3db3c127223370a8e to your computer and use it in GitHub Desktop.
Steps to cross compile open-zwave library for ARMv7 architecture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# building eudev | |
cd eudev-3.2.5/ | |
./autogen.sh | |
./configure --prefix=${HOME}/cross-raspbian --host=arm-linux-gnueabihf | |
make -j3 | |
make install | |
# building libusb | |
cd libusb-1.0.21/ | |
./bootstrap.sh | |
LDFLAGS="-L${HOME}/cross-raspbian/lib" CFLAGS="-I${HOME}/cross-raspbian/include" ./configure --prefix=${HOME}/cross-raspbian --host=arm-linux-gnueabihf | |
make | |
make install | |
# building openzwave | |
cd open-zwave/ | |
LDFLAGS="-L${HOME}/cross-raspbian/lib -ludev" CFLAGS="-I${HOME}/cross-raspbian/include" PREFIX=${HOME}/cross-raspbian make CROSS_COMPILE=arm-linux-gnueabihf- MACHINE=armv7l | |
LDFLAGS="-L${HOME}/cross-raspbian/lib -ludev" CFLAGS="-I${HOME}/cross-raspbian/include" PREFIX=${HOME}/cross-raspbian make CROSS_COMPILE=arm-linux-gnueabihf- MACHINE=armv7l install | |
# LDFLAGS="-L${HOME}/Programmi/cross-raspbian/lib -ludev" CFLAGS="-I${HOME}/Programmi/cross-raspbian/include" PREFIX=${HOME}/Programmi/cross-raspbian make CROSS_COMPILE=arm-linux-gnueabihf- MACHINE=armv7l | |
# LDFLAGS="-L${HOME}/Programmi/cross-raspbian/lib -ludev" CFLAGS="-I${HOME}/Programmi/cross-raspbian/include" PREFIX=${HOME}/Programmi/cross-raspbian make CROSS_COMPILE=arm-linux-gnueabihf- MACHINE=armv7l install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment