Skip navigation.
Home
The QNX Community Portal

View topic - VIM 6.4

VIM 6.4

Read-only archive of qnx.qnx4 (General QNX4 Discussion Group) at inn.qnx.com

VIM 6.4

Postby Lawrence R. Sweet » Mon Apr 24, 2006 8:11 pm

Has anyone successfully compiled vim 6.4 under QNX 4.25? First pass
here has trouble with signal handlers and a missing manifest SA_STACK.
Lawrence R. Sweet
 

Re: VIM 6.4

Postby Ryan J. Allen » Tue Apr 25, 2006 1:50 pm

Lawrence R. Sweet wrote:
Has anyone successfully compiled vim 6.4 under QNX 4.25? First pass
here has trouble with signal handlers and a missing manifest SA_STACK.

I had some luck. Here's what I did (hopefully I don't miss any steps):

1. gunzip/untar vim-6.4-extra, rt1, rt2, src1, src2.
2. cd vim64 && ./configure --enable-gui=no
--prefix=/home/ryallen/viminstall
3. edit src/auto/config.h to comment out the line (this will fix the
signal handler error):
#define HAVE_SIGALTSTACK 1

I had some problems with languages that I didn't care to deal with, and
some problems with the install. I didn't care about languages so here's
what I did:

4. edit src/Makefile to change the line:
all: $(VIMTARGET) $(TOOLS) languages
to be:
all: $(VIMTARGET) $(TOOLS)
5. edit src/Makefile to change the line:
install_normal: installvim installtools install-languages
install-icons
to be:
install_normal: installvim installtools

And finally, for some reason shell "if" commands are returning 1 when
false, which breaks the make because make thinks an error occurs. So
you can combat this by replacing lines:
fi
with:
fi && echo

I had to do this in three parts in the Makefile. Once in installmacros:
(after the cvs= line); and in two spots in installtools: (after the if
test, and again after the cvs= line).

Finally end it off with:
6. make
7. make install

It's only a bit of a hack, but the result is a (seemingly) working vim
6.4 conveniently installed to /home/ryallen/viminstall/ (just for easy
isolation of vim from the rest of the system).

--
Ryan J. Allen
ryallen@qnx.com
Ryan J. Allen
 

Re: VIM 6.4

Postby Lawrence R. Sweet » Tue Apr 25, 2006 7:45 pm

Ryan J. Allen wrote:
Lawrence R. Sweet wrote:
Has anyone successfully compiled vim 6.4 under QNX 4.25? First pass
here has trouble with signal handlers and a missing manifest SA_STACK.

I had some luck. Here's what I did (hopefully I don't miss any steps):

1. gunzip/untar vim-6.4-extra, rt1, rt2, src1, src2.
2. cd vim64 && ./configure --enable-gui=no
--prefix=/home/ryallen/viminstall
3. edit src/auto/config.h to comment out the line (this will fix the
signal handler error):
#define HAVE_SIGALTSTACK 1

I had some problems with languages that I didn't care to deal with, and
some problems with the install. I didn't care about languages so here's
what I did:

4. edit src/Makefile to change the line:
all: $(VIMTARGET) $(TOOLS) languages
to be:
all: $(VIMTARGET) $(TOOLS)
5. edit src/Makefile to change the line:
install_normal: installvim installtools install-languages
install-icons
to be:
install_normal: installvim installtools

And finally, for some reason shell "if" commands are returning 1 when
false, which breaks the make because make thinks an error occurs. So
you can combat this by replacing lines:
fi
with:
fi && echo

I had to do this in three parts in the Makefile. Once in installmacros:
(after the cvs= line); and in two spots in installtools: (after the if
test, and again after the cvs= line).

Finally end it off with:
6. make
7. make install

It's only a bit of a hack, but the result is a (seemingly) working vim
6.4 conveniently installed to /home/ryallen/viminstall/ (just for easy
isolation of vim from the rest of the system).


Thanks Ryan. That will definetly save me some time :-)

Larry
Lawrence R. Sweet
 


Return to qnx.qnx4

Who is online

Users browsing this forum: No registered users and 1 guest