From: Nicholas <no...@ma...> - 2006-09-28 00:32:34
|
On Wed, 2006-09-27 at 19:31 -0400, Cesar E. Perez wrote: > I am able to ssh into the gumstix via ethernet. I tried to copy a file using > the command scp. I made the hello world program, compiled and made an > executable called hello. I then scp hello root@192.168.1.103: it transferred > the file fine. When I tried to execute it in the gumstix, ./hello it gave me > the following error messages: > > NetFeed 1.0 >ls > hello > NetFeed 1.0 >./hello > ./hello: ./hello: 1: ????: not found > ./hello: ./hello: 2: Syntax error: word unexpected (expecting ")") > > I also tried cat hello and it gave me a bunch of weird lines, such as: > > gv:G(0,3)environ:G(0,3)__progname:G(0,4)mach_init_routine:G(0,8)=*(0,9)=f(0,2)_cthread_init_routine:G(0,8)pointer_to_objcInit:S(0,6)pointer_to__darwin_gcc3_preregister_frame_info:S(0,6)dyld_lazy_symbol_binding_entry_pointerror_messagedyld_func_lookup_pointer_darwin_unwind_dyld_add_image_hook_darwin_unwind_dyld_remov What command did you use to compile that program? From the look of that line it appears to be a Mach-O Executable (for either PPC or Intel), not an ELF or flat binary for ARM. You can use the "file" command to see what type of object file it is. Usually, you need to run arm-elf-gcc or something along those lines (whatever your cross-compile toolchain is called) to get a binary for arm, instead of the normal gcc which produces Mach-O executables on Mac OS X. Hope that helps! nick |