Project

General

Profile

Bug #1026

Updated by Hammel over 1 year ago

This was discovered in RM #1025  
 All app's that use cross.sh need this update. 

 The cross.sh script should identify the toolchain prefix like so: 

 <pre><code class="shell"> 
 TCPREFIX=$(cd ${TC}/bin && ls -1 *gcc | sed 's/-gcc//') 
 </code></pre> 

 Then use that in the configure command. 

 <pre><code class="shell"> 
 PKG_CONFIG_PATH="" \ 
     PKG_CONFIG_LIBDIR=${STAGING_DIR}/usr/lib/pkgconfig:${STAGING_DIR}/usr/share/pkgconfig \ 
     PKG_CONFIG_SYSROOT_DIR=$STAGING_DIR \ 
     PATH=$TOOLCHAIN/bin:$PATH \ 
     CFLAGS="-g --sysroot=$STAGING_DIR -I$STAGING_DIR/usr/lib/glib-2.0/include -I$STAGING/usr/lib/gtk-2.0/include" \ 
     LDFLAGS="-L$STAGING_DIR/usr/lib -L$STAGING_DIR/lib --sysroot=$STAGING_DIR/" \ 
     ./configure --host="${TCPREFIX}" 

 </code></pre> 

 Tested this against appmgr and it appears to work for RPi4.    Need to verify it works for RPi2 and RPi. 

 Apps that need this update 
 # -appmgr-  
 # -launcher-  
 # -piboxd-  
 # -piclock-  
 # -pipics-  
 # -videofe-  
 # -musicfe-  
 # -picam-  
 # -pixm- pixm  
 # -pibox-network-config- pibox-network-config  
 # -libpibox- libpibox  
 # -raspi2fb- raspi2fb 
 # -pistore- pistore 
 # -pinet- pinet 
 # -pidialer- pidialer 


 After testing the app build manually it should also be tested under the metabuild.

Back