public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Trying to build sample apps
@ 2003-10-30 21:16 Michael Trozzo
  2003-10-31  7:31 ` Eric de Jong
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Trozzo @ 2003-10-30 21:16 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I've been able to get the tests running correctly, and I am now trying
to take the next step and build the sample applications in the user
guide.  I'm quite confused about the correct paths to compile/build the
files.  I've been going back and forth especially between chapters 11
and 13, and I can't quite figure what I'm doing wrong.  The output from
my cygwin window is below. Any help would be appreciated!

Mike Trozzo


Mike@LAPTOP /opt/ecos/ecos-2.0/examples
$ gcc --version
gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

Mike@LAPTOP /opt/ecos/ecos-2.0/examples
$ gcc
gcc: no input files

Mike@LAPTOP /opt/ecos/ecos-2.0/examples
$ i386-elf-gcc -g -IBASE_DIR/work1/host2_install/include hello.c
-LBASE_DIR/wor
k1/host2_install/lib _Ttarget.ld -nostdlib
bash: i386-elf-gcc: command not found

Mike@LAPTOP /opt/ecos/ecos-2.0
$ ls
COPYING      Makefile.in  acinclude.m4  buildid.txt   doc       examples
ChangeLog    README.host  aclocal.m4    configure     eCos.hhc  packages
Makefile.am  README.txt   acsupport     configure.in  eCos.hhp  tools

Mike@LAPTOP /opt/ecos
$ cd gnutools

Mike@LAPTOP /opt/ecos/gnutools
$ ls
i386-elf

Mike@LAPTOP /opt/ecos/gnutools
$ cd i386-elf

Mike@LAPTOP /opt/ecos/gnutools/i386-elf
$ ls
bin  i386-elf  info  lib  man  share

Mike@LAPTOP /opt/ecos/gnutools/i386-elf
$ cd bin

Mike@LAPTOP /opt/ecos/gnutools/i386-elf/bin
$ ls
cygtcl83.dll            i386-elf-c++filt.exe  i386-elf-nm.exe
cygtclpip83.dll         i386-elf-cpp.exe      i386-elf-objcopy.exe
cygtix4183.dll          i386-elf-g++.exe      i386-elf-objdump.exe
cygtk83.dll             i386-elf-gcc.exe      i386-elf-ranlib.exe
i386-elf-addr2line.exe  i386-elf-gccbug       i386-elf-readelf.exe
i386-elf-ar.exe         i386-elf-gcov.exe     i386-elf-size.exe
i386-elf-as.exe         i386-elf-gdb.exe      i386-elf-strings.exe
i386-elf-c++.exe        i386-elf-ld.exe       i386-elf-strip.exe

Mike@LAPTOP /opt/ecos/gnutools/i386-elf/bin
$ i386-elf-gcc -g -IBASE_DIR/work1/host2_install/include hello.c
-LBASE_DIR/wor
k1/host2_install/lib _Ttarget.ld -nostdlib
bash: i386-elf-gcc: command not found

Mike@LAPTOP /opt/ecos/gnutools/i386-elf/bin
$ i386-elf-gcc
bash: i386-elf-gcc: command not found



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Trying to build sample apps
  2003-10-30 21:16 [ECOS] Trying to build sample apps Michael Trozzo
@ 2003-10-31  7:31 ` Eric de Jong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric de Jong @ 2003-10-31  7:31 UTC (permalink / raw)
  To: ecos-discuss

>> I'm quite confused

You try to invoke the program "i386-elf-gcc", but it does not seem to be in your
search path. To check this, type
"echo $PATH". If you want to invoke "i386-elf-gcc" you have the following
options:
a) include the "/opt/ecos/gnutools/i386-elf/bin" folder in your search path
b) use a symbolic link to "i386-elf-gcc" and place that link in a folder which
is included in your search path
c) invoke the program directly by using an absolute path:
"/opt/ecos/gnutools/i386-elf/bin/i386-elf-gcc" or "cd
/opt/ecos/gnutools/i386-elf/bin" and "./i386-elf-gcc" (notice the ./ )

If you build i386-elf-gcc yourself, didn't you forget to do a "make install"?



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-31  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 21:16 [ECOS] Trying to build sample apps Michael Trozzo
2003-10-31  7:31 ` Eric de Jong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).