- run Cygwin setup.exe
- install these packages that are not installed by default: automake, gcc, git and pkg-config
- browse http://libevent.org
- download libevent-2.0.21-stable.tar.gz
- open a cygwin terminal
- cd to directory containing downloaded file
- tar zxf libevent-2.0.21-stable.tar.gz
- cd libevent-2.0.21-stable
- ./configure --prefix=/usr
- make && make install
- browse http://ftp.gnu.org/gnu/ncurses
- download ncurses-5.9.tar.gz
- open a cygwin terminal
- cd to directory containing downloaded file
- tar zxf ncurses-5.9.tar.gz
- cd ncurses-5.9
- ./configure --prefix=/usr
- make && make install
- open a cygwin terminal
- git clone http://git.code.sf.net/p/tmux/tmux-code tmux-tmux-code
- cd tmux-tmux-code
- ./autogen.sh (will see many warnings; if it complains about \r not found, convert autogen.sh to use Unix line endings with mv autogen.sh temp.sh; dos2unix -o autogen.sh temp.sh)
- CFLAGS="-I/usr/include/ncurses" ./configure --prefix=/usr
- make && make install
- to use the Solarized color scheme, see here.
- to manually adjust colors, fonts, cursor shape, and more right-click the Cygwin title bar and select "Options...".
- create a .tmux.conf file include at least this line so the mouse and arrow keys can be used to switch panes:
- set -sg escape-time 250
- for more information about tmux configuration, see here.
- open a cygwin terminal using mintty (the shortcut that opens the terminal should run C:\cygwin\bin\mintty.exe)
- tmux
When compiling tmux itself I got below error.
...
/home/jakubczn/tmuxIDE/tmux-tmux-code/alerts.c:149:(.text+0x569): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
timerclear' names.o: In function
check_window_name':/home/jakubczn/tmuxIDE/tmux-tmux-code/names.c:80: undefined reference to
timerclear' /home/jakubczn/tmuxIDE/tmux-tmux-code/names.c:80:(.text+0xf4): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
timerclear'session.o: In function
session_update_activity': /home/jakubczn/tmuxIDE/tmux-tmux-code/session.c:284: undefined reference to
timerclear'/home/jakubczn/tmuxIDE/tmux-tmux-code/session.c:284:(.text+0x11fe): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
timerclear' status.o: In function
status_timer_callback':/home/jakubczn/tmuxIDE/tmux-tmux-code/status.c:162: undefined reference to
timerclear' /home/jakubczn/tmuxIDE/tmux-tmux-code/status.c:162:(.text+0x169): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
timerclear'tty-term.o:tty-term.c:(.rdata$.refptr.cur_term[.refptr.cur_term]+0x0): undefined reference to `cur_term'
collect2: error: ld returned 1 exit status
Makefile:704: recipe for target 'tmux.exe' failed
make: *** [tmux.exe] Error 1
Any Idea why ?