Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Visitor
c.gianni
Posts: 24
Registered: ‎03-01-2010
0
Accepted Solution

Can't execute own cross compiled executables under Linux OSL

[ Edited ]

Hi, I got OSL linux running on my custom board with Xilinx Virtex 5 FX130.

Now, I would like to create an application and execute it under linux.

So I created an "Hello World!" application and cross compiled it under ELDK, (ppc_4xx-gcc -mcpu=440 -o mytest mytest.c) then I put it into the ramdisk that I use for linux and started all the stuff.

 

Now, I try to execute this executable under linux in this way ./mytest, but it tells me   : "not found". I got the same even if I type only the executable name.

 

What is wrong with my method?

Regular Visitor
c.gianni
Posts: 24
Registered: ‎03-01-2010

Re: Can't execute own cross compiled executables under Linux OSL

[ Edited ]

I resolved this issue on my own, the problem was that even a simple program like Hello World needs certain libraries to be executed.

I tried to cross-compile with the option "-static" and now it's all right

Visitor
derryuh
Posts: 7
Registered: ‎09-11-2010
0

Re: Can't execute own cross compiled executables under Linux OSL

Hi,
could you please give me more details. Like your complete commands to compile a hello world program. And when you test the file (file hello, on your console), what do you get?.