* installing ncurses for cross compiling
@ 2003-03-07 19:54 Omanakuttan
2003-03-07 20:12 ` Mark Hatle
2003-03-07 20:30 ` Wolfgang Denk
0 siblings, 2 replies; 3+ messages in thread
From: Omanakuttan @ 2003-03-07 19:54 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
I want to write some programs for our serial console using ncurses. I
have written and tested the apps in i386, now I want to cross compile it.
I ahave Monta vista linux and ncurses is not available on i386.
When i tried to include the /usr/include/ for ncurses, ppc-gcc issues
warnings.
I downloaded ncurses-devel-5.2-12.ppc.rpm but rpm refuses to install it
on i386 because it is not for the architecture. I did not try the
--force option because of the conflicts.
How shall I get ncurses-devel-5.2-12 for ppc and install it in i386?
Thanks and regards,
Om.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: installing ncurses for cross compiling
2003-03-07 19:54 installing ncurses for cross compiling Omanakuttan
@ 2003-03-07 20:12 ` Mark Hatle
2003-03-07 20:30 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Mark Hatle @ 2003-03-07 20:12 UTC (permalink / raw)
To: Omanakuttan; +Cc: linuxppc-embedded
Omanakuttan wrote:
>
> Hi,
> I want to write some programs for our serial console using ncurses. I
> have written and tested the apps in i386, now I want to cross compile it.
> When i tried to include the /usr/include/ for ncurses, ppc-gcc issues
> warnings.
Never, NEVER do -I/usr/include. You are attempting to tell the compiler to use
your HOST system's include files when building software for a target. This is
an incorrect development practice. You should be sure to use both headers and
libraries built for the appropriate target architecture.
> I downloaded ncurses-devel-5.2-12.ppc.rpm but rpm refuses to install it
> on i386 because it is not for the architecture. I did not try the
> --force option because of the conflicts.
This will not work. The random RPM you have downloaded is for a host system,
and not a cross development system. You may be able to play some games with it
to get the pieces you want out.. but it's still not the right answer as it was
built with a different compiler and may be linked to other random libraries.
> How shall I get ncurses-devel-5.2-12 for ppc and install it in i386?
You shouldn't. The proper method is to build ncurses in a cross-development
environment and install the components into the appropriate directories. (The
"appropriate directories" varies based on product and what you have built.)
--Mark
> Thanks and regards,
> Om.
>
>
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: installing ncurses for cross compiling
2003-03-07 19:54 installing ncurses for cross compiling Omanakuttan
2003-03-07 20:12 ` Mark Hatle
@ 2003-03-07 20:30 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-03-07 20:30 UTC (permalink / raw)
To: Omanakuttan; +Cc: linuxppc-embedded
In message <3E68F912.7000602@tataelxsi.co.in> you wrote:
>
> I want to write some programs for our serial console using ncurses. I
> have written and tested the apps in i386, now I want to cross compile it.
> I ahave Monta vista linux and ncurses is not available on i386.
You can find cross-development versions of the ncurses-devel and
ncurses RPM's as part of our ELDK, see http://www.denx.de/re/ELDK.html
Note that you must install the cross development environment, i. e.
it will not work to use just these 2 RPM's with a native compiler.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
If I don't document something, it's usually either for a good reason,
or a bad reason. In this case it's a good reason. :-)
- Larry Wall in <1992Jan17.005405.16806@netlabs.com>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-07 20:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-07 19:54 installing ncurses for cross compiling Omanakuttan
2003-03-07 20:12 ` Mark Hatle
2003-03-07 20:30 ` Wolfgang Denk
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 NNTP newsgroup(s).