Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 123809

Forum Post: DSPlib headers with Linux host compilation problem

$
0
0

Have a DSP C6X project using DSPlib version dsplib_c66x_3_2_0_1 from a RedHat CCSv5 Linux host.  Application compiles under similar windows system.  This was failing on a compile when it referenced a nested include file. 

The compiler complained upon not finding   ..\..\DSP_urand32\c66\DSP_urand32.h  
I found a solution by modifying a few include files with details at the end. Attempted reinstallation of tools to confirm no issues with Linux installer. Not sure if there was anything that was supposed to be done from CCS for installation. Also not sure if this is the proper place to post bugs or issues with software.


Seems it was due to use of Windows relative path. Also issues with "sp" captitalization. Easily fixed as follows /* NOTE (sfp): replaced this due to problem with Linux (..\..\) */ //#include "..\..\DSP_urand32\c66\DSP_urand32.h" #include <ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h> This was done on the following files (5): [sprause@smoke src]$ grep -n -r '..\\' * | grep include DSPF_sp_erand/c66/DSPF_sp_erand.h:51:#include "..\..\DSP_urand32\c66\DSP_urand32.h" DSPF_sp_fftSPxSP_r2c/c66/DSPF_sp_fftSPxSP_r2c.h:47:#include "..\..\DSPF_SP_fftSPxSP\c66\DSPF_SP_fftSPxSP.h" DSPF_sp_ifftSPxSP_c2r/c66/DSPF_sp_ifftSPxSP_c2r.h:47:#include "..\..\DSPF_SP_ifftSPxSP\c66\DSPF_SP_ifftSPxSP.h" DSPF_sp_nrand/c66/DSPF_sp_nrand.h:51:#include "..\..\DSP_urand32\c66\DSP_urand32.h" DSPF_sp_urand/c66/DSPF_sp_urand.h:51:#include "..\..\DSP_urand32\c66\DSP_urand32.h" [sprause@smoke dsplib_c66x_3_2_0_1]$ diff -r ./ ../.save/dsplib_c66x_3_2_0_1-save/ diff -r ./packages/ti/dsplib/src/DSPF_sp_erand/c66/DSPF_sp_erand.h ../.save/dsplib_c66x_3_2_0_1-save/packages/ti/dsplib/src/DSPF_sp_erand/c66/DSPF_sp_erand.h 51,53c51 < /* NOTE (sfp): replaced this due to problem with Linux (..\..\) */ < //#include "..\..\DSP_urand32\c66\DSP_urand32.h" < #include <ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h> ---
#include "..\..\DSP_urand32\c66\DSP_urand32.h" 
diff -r ./packages/ti/dsplib/src/DSPF_sp_fftSPxSP_r2c/c66/DSPF_sp_fftSPxSP_r2c.h ../.save/dsplib_c66x_3_2_0_1-save/packages/ti/dsplib/src/DSPF_sp_fftSPxSP_r2c/c66/DSPF_sp_fftSPxSP_r2c.h 47,49c47,48 <  /* NOTE (sfp):  replaced this due to problem with Linux (..\..\)  */ <  //#include "..\..\DSPF_SP_fftSPxSP\c66\DSPF_SP_fftSPxSP.h" < #include <ti/dsplib/src/DSPF_sp_fftSPxSP/c66/DSPF_sp_fftSPxSP.h> --- 
#include "..\..\DSPF_SP_fftSPxSP\c66\DSPF_SP_fftSPxSP.h"  
diff -r ./packages/ti/dsplib/src/DSPF_sp_ifftSPxSP_c2r/c66/DSPF_sp_ifftSPxSP_c2r.h ../.save/dsplib_c66x_3_2_0_1-save/packages/ti/dsplib/src/DSPF_sp_ifftSPxSP_c2r/c66/DSPF_sp_ifftSPxSP_c2r.h 47,49c47 <  /* NOTE (sfp):  replaced this due to problem with Linux (..\..\)  */ <  //#include "..\..\DSPF_SP_ifftSPxSP\c66\DSPF_SP_ifftSPxSP.h" < #include <ti/dsplib/src/DSPF_sp_ifftSPxSP/c66/DSPF_sp_ifftSPxSP.h> --- 
#include "..\..\DSPF_SP_ifftSPxSP\c66\DSPF_SP_ifftSPxSP.h" 
diff -r ./packages/ti/dsplib/src/DSPF_sp_nrand/c66/DSPF_sp_nrand.h ../.save/dsplib_c66x_3_2_0_1-save/packages/ti/dsplib/src/DSPF_sp_nrand/c66/DSPF_sp_nrand.h 51,53c51 <  /* NOTE (sfp):  replaced this due to problem with Linux (..\..\)  */ <  //#include "..\..\DSP_urand32\c66\DSP_urand32.h" < #include <ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h> --- 
#include "..\..\DSP_urand32\c66\DSP_urand32.h" 
diff -r ./packages/ti/dsplib/src/DSPF_sp_urand/c66/DSPF_sp_urand.h ../.save/dsplib_c66x_3_2_0_1-save/packages/ti/dsplib/src/DSPF_sp_urand/c66/DSPF_sp_urand.h 51,53c51 <  /* NOTE (sfp):  replaced this due to problem with Linux (..\..\)  */ <  //#include "..\..\DSP_urand32\c66\DSP_urand32.h" < #include <ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h> --- 
#include "..\..\DSP_urand32\c66\DSP_urand32.h" 



                       

Viewing all articles
Browse latest Browse all 123809

Trending Articles