Comments

Jakub Jermář

24 Jan 2013 17:52

Looking forward for more news from this area...

Prrateek Mankawde

15 Feb 2013 12:09

Hi,
We are trying to cross compile Nano then Emacs text editor as our project. Can you give us some details on how to cross compile an application like Nano text editor for HelenOS. Please provide as much details an you can for Nano, it will be very helpful to kick start out project for Emacs.
-Pratik Mankawde
pratik.mankawde@iiitb.org

Vojtěch Horký

15 Feb 2013 13:11

Hello, Pratik,
I never tried compiling Nano for HelenOS and really I can't give you much guidance for this particular application.

By looking at this PKGBUILD (that captures how to build Nano for Arch Linux) it seems that Nano uses the standard ./configure && make && make install triplet and cross-compiling it for HelenOS would be similar to the one described in this post or other posts of this serie.

The problem is that Nano requires ncurses and I guess that porting that library would not be that easy. This library expects a Unix-like terminal to run in and the vterm we have in HelenOS is something completely different. Thus, porting of ncurses would be rather reimplementing the library from scratch, and keeping the API only.

As a matter of fact, Emacs needs ncurses too. So, you need to port that library first anyway.

If you encounter any concrete problem, do not hesitate to ask on the HelenOS development mailing list.

Prrateek Mankawde

19 Feb 2013 18:19

Hello Vojta,
Thanks for the answer. I tried to port ncurses to helenos and reached same conclusion. Anyway I will try to do it. Can we use the same version of libgmp, libmpc and libmpfr as compiled on gcc or will have to cross compile it first, the way you explained here and then include its path to ncurses compilation for cross compiling ncurses?

Sorry for bothering you too much, I am a grad. student, and a beginner on linux, porting and related stuff.

Vojtěch Horký

19 Feb 2013 18:34

Hello, Pratik,

Can we use the same version of libgmp, libmpc and libmpfr as compiled on gcc or will have to cross compile it first, the way you explained here and then include its path to ncurses compilation for cross compiling ncurses

First of all, I do not think that you need libgmp & co. at all for ncurses. But assuming you need them, you would have to cross-compile them first. AFAIK ncurses expects glibc which is something we do not have in HelenOS.

Sorry for bothering you too much, I am a grad. student, and a beginner on linux, porting and related stuff.

No problem :-). However, Linux does not enter into it as HelenOS is not Linux.