opc source code

This commit is contained in:
flower_linux
2026-06-09 17:27:24 +08:00
parent 70f675a48b
commit f0da5cb3c3
2002 changed files with 269812 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
# -- How to cross compile for Raspberry Pi (on a 32bit host) --
# 1) get the toolchain
# cd ~
# git clone https://github.com/raspberrypi/tools
# 2) export path to one of the compilers
# export PATH=$PATH:~/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/
# 3) use this toolchain file
# cmake -DCMAKE_TOOLCHAIN_FILE=../tools/cmake/Toolchain-rpi.cmake -DEXAMPLESERVER=ON ..
# make
set(CMAKE_C_COMPILER arm-bcm2708hardfp-linux-gnueabi-gcc)
set(CMAKE_CXX_COMPILER arm-bcm2708hardfp-linux-gnueabi-g++)
set(CMAKE_STRIP arm-bcm2708hardfp-linux-gnueabi-strip)