[ros-users] Cross-compilation and library locations

Benjamin Vanheuverzwijn bvanheu at gmail.com
Tue Apr 13 16:04:22 UTC 2010


On Tue, Apr 13, 2010 at 9:54 AM, Daniel Maier <
maierd at informatik.uni-freiburg.de> 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 - bvanheu at gmail.com
http://vanheu.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100413/b965ae13/attachment-0003.html>


More information about the ros-users mailing list