Re: [ros-users] Cross-compilation and library locations

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Benjamin Vanheuverzwijn
Date:  
To: ros-users
Subject: Re: [ros-users] Cross-compilation and library locations
On Tue, Apr 13, 2010 at 9:54 AM, Daniel Maier <
> wrote:

>
> Any suggestions?
>


Can you compile a simple program like just:

#include <stdio.h>
int main(int argc, char *argv[])
{
printf("hello world\n");
return 0;
}

with your cross-compile tools?

When building GCC, you can hardcode where are the libc headers and other
stuff. You may check that every path are correct with "gcc
-print-search-dirs" and "gcc -dumpspecs".

In case you have problem compiling a basic program, i suggest that you
strace gcc... you will see where it looks for which files and then fix the
path.

$ strace -F gcc -o test test.c

(-F used to follow the subprocess like ld, etc)


>
> Thanks,
> Dan
>
> P.S. and good luck with the exams :)



Thanks!


--
Benjamin Vanheuverzwijn

Google Talk/Jabber -
http://vanheu.ca