cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
arastu
Visitor
Visitor
584 Views
Registered: ‎04-22-2020

Regarding cross compilation in linux

Hello,

I want to cross compile attached file for am-linux-gnueabihf tool chain. how to do it?

In xilinx SDK some example is given in embeddedsw. I need to cross compile in linux using Xilinx SDK.

I tried but i got many error. How to solve this cross compilation issue?

 

Is there any way to use this embeddedsw supported code[ Example ] in linux ?

how to change arm-xilinx-gnueabi toolchain into arm-linux-gnueabihf?

 

0 Kudos
6 Replies
trigger
Voyager
Voyager
564 Views
Registered: ‎09-14-2016

hello,

 

you have to install crosstool chain to cross compile your .c file

Please take a look in Google first : https://fr.lmgtfy.com/?q=cross+compilation+arm-linux-gnueabihf

or https://www.acmesystems.it/arm9_toolchain

 

Which error are you talking about ??

 

Trigger

0 Kudos
arastu
Visitor
Visitor
557 Views
Registered: ‎04-22-2020

Hello,

 

Thanks for reply.

I already installed cross toolchain. But I want to cross compile attached file. Please find file in attachment and go through it. When i tried to cross compile,it did not support header file of code.

How to do it?

0 Kudos
trigger
Voyager
Voyager
550 Views
Registered: ‎09-14-2016

Ok ,

You don't paste error log, no cmdnline ...

 

So I can't help you. Good luck 

 

Trigger 

0 Kudos
arastu
Visitor
Visitor
528 Views
Registered: ‎04-22-2020

Hello,

Xilinx SDK provides some standalone application program.

I tried to cross compilation this standalone application code in linux [ arm-linux-gnueabihf tool chain].

I would like to know  it is possible to cross compile this standalone application. If it is possible , then please guide me for that.

0 Kudos
trigger
Voyager
Voyager
523 Views
Registered: ‎09-14-2016

Please give us more info to in order to help you ...

last try:

Do you have install an SDK ? If yes which version ? If not you have to install Xilinx SDK first.

How did you try to cross compile your .c file ? Give us cmdline, sceenshot, any info to help you..

We don't have any idea about your setup, do you use evaluation board, custom board ?

.

Cheers,
Trigger
0 Kudos
arastu
Visitor
Visitor
511 Views
Registered: ‎04-22-2020

Hello,

I am using Xilinx SDK 2018.1.

I have created one application for timer implementation and  followed some steps which are shown in attachment in form of images.

Please go through it. For tool chain i have used ARM v7 GNU/ Linux Toolchain to cross compile .

Is it correct way to cross compile for arm-linux-gnueabihf ?

code is also shown in images. When I tried to build , It shows Error which is shown in image[code with error].

How to solve this error? I added header file related to it.

app_start.jpg
template.jpg
toolchain1.jpg
code_with_error.jpg
0 Kudos