cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chanduj
Visitor
Visitor
4,849 Views
Registered: ‎07-26-2009

Regarding Libraries in SDK/EDK

Hi,

  

  I am beginner to xilinx (XPS, EDK/SDK). I run the hello world program in SDK. It shows the error like 


**** Full rebuild of configuration Debug for project system ****

make clean all
rm -rf main.o    main.d    system.elf
rm -rf main.o    main.d    system.elf
powerpc-eabi-gcc -ID:/EDK/ppc405_0/include -O0 -g -c -omain.o ../main.c

 

 

../main.c:5:25: xparameters.h: No such file or directory
make: *** [main.o] Error 1
Build complete for project system
 

 

Hello world program

 

/*-------------------------------------------------------------------
* Filename : test_uartlite_9600.c
* on the STDOUT device
* ----------------------------------------------------------------*/
#include "xparameters.h"
int main() {
xil_printf("Hello World \n");
return 0;
}

 

Could u give suggestion 2 me how to add "xparameters.h" and "xutil.h"  I need information urgent

0 Kudos
5 Replies
prateek_bhatt
Scholar
Scholar
4,835 Views
Registered: ‎08-21-2008

Hello.

This file is available to you after you do generate libraries and BSP. The location of this file is in your software project itself in XPS. Expand processor by clicking on "+" sign. 

Best of luck.
--
Unlimited in my Limits.
0 Kudos
chanduj
Visitor
Visitor
4,816 Views
Registered: ‎07-26-2009

Dear sir,

 

 As u said i follow the way

 

In project information area  tab -> in APPlICATION -> select Processor: PPC405_i -> generated header -> In that i modify or add header file

 


#define XPAR_CPU_PPC405_xparameters_lib_libxil.a 

 

Is the corrcect way added lib file?

 

Kindly reply 2 me.  

 

 

0 Kudos
prateek_bhatt
Scholar
Scholar
4,801 Views
Registered: ‎08-21-2008

Hello.

I never added the lib file corresponding to xaparameters.h

I always used it as it is.

#include "xparameters.h"

 I never used

#define XPAR_CPU_PPC405_xparameters_lib_libxil.a

 

Try removing xparameters.h and add stdio.h. See if that file is recognised. 

Best of luck.
--
Unlimited in my Limits.
0 Kudos
chanduj
Visitor
Visitor
4,794 Views
Registered: ‎07-26-2009

Dear sir,

 

   I used xparametrs as ur way but when i store this program in SDK it build defaulty and shows error for header files. kindly help me

 

 

e../main.c:5:25: xparameters.h: No such file or directory

0 Kudos
dorau
Explorer
Explorer
4,780 Views
Registered: ‎08-29-2008

Hi chanduj,

 

please look into the directory "edk-subproject-dir/ppc405_xxx" whether the file xparameters.h is available or not.

If not, you must generate libraries and BSPs first!

 

Rgds,

Kai

0 Kudos