Added txt-document with first draft of cross-compile info.

Added cmake temp stuff to ignore.
This commit is contained in:
T. van der Zwan 2013-08-01 07:39:23 +00:00
parent a695ab91bb
commit a65305dbdb
3 changed files with 20 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/*.user

3
CrossCompileHowto.txt Normal file
View File

@ -0,0 +1,3 @@
http://airwiki.ws.dei.polimi.it/index.php/Cross-compiling_for_the_RaspberryPi
cmake -DCMAKE_TOOLCHAIN_FILE=$HOME/raspberrypi/Toolchain-RaspberryPi.cmake

View File

@ -58,12 +58,22 @@ add_executable(boblight-dispmanx
timeutils.h timeutils.h
timeutils.cpp) timeutils.cpp)
SET(VC_INCLUDE_DIRS FIND_PATH(VC_INCLUDE_DIR
/opt/vc/include bcm_host.h
/opt/vc/include/interface/vcos/pthreads /usr/include
/opt/vc/include/interface/vmcs_host/linux) /usr/local/include
SET(VC_LIBS /opt/vc/include)
/home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libbcm_host.so) SET(VC_INCLUDE_DIRS
${VC_INCLUDE_DIR}
${VC_INCLUDE_DIR}/interface/vcos/pthreads
${VC_INCLUDE_DIR}/interface/vmcs_host/linux)
FIND_LIBRARY(VC_LIBS
NAMES bcm_host
PATHS /usr/lib /usr/local/lib /opt/vc/lib)
message("{VC_LIBS} = ${VC_LIBS}")
#SET(VC_LIBS
# /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libbcm_host.so)
# /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libGLESv2.so # /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libGLESv2.so
# /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libEGL.so # /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libEGL.so
# /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libopenmaxil.so # /home/pi/.xbmc-current/xbmc-bin/lib/xbmc/system/libopenmaxil.so