Installing ncmpcpp in Cygwin
Step 1: Getting Cygwin and Cygwin Ports working
Nobody who I have ever walked through installing ncmpcpp has ever gotten this right without me explicitly telling them how, and admittedly, it is a little counterintuitive.
Their website is here: http://cygwinports.org/, but the important part is:
2. Launch setup-*.exe with the -K flag, e.g.:
cygstart -- /path/to/setup-x86.exe -K http://cygwinports.org/ports.gpg
3. On Choose Installation Type page, select “Install from Internet”.
4. On Choose Download Site(s) page, select a distro mirror, then enter ftp://ftp.cygwinports.org/pub/cygwinports in the User URL field and press Add (making sure that both are highlighted).
The easiest way to do this is to open the Command Prompt in the directory with
setup-*.exe in it (shift + right click in Explorer, “Open command window here”) and typing
setup-*.exe -K http://cygwinports.org/ports.gpg. Choose default settings up until you get to mirror selection, and select a mirror (I always choose kernel.org, YMMV) and then add the Cygwin Ports URL. It is extremely important that both URLs are selected – your installation will fail if you select only the Cygwin Ports URL and if you have only the Cygwin mirror URL, not all of the packages you need will be available. Optionally, you can set the download directory to %TEMP% or something if you don’t want the download folders polluting wherever you have your installer. It may take a minute for things to look like they’re moving.
The following is a list of packages you’ll need to install. Cygwin Ports is required only for the libmpdclient package. You don’t have to bother with Cygwin Ports if you plan to build this package from source yourself.
|Package||Version as of time of writing|
Step 2: Installing ncmpcpp
ncmpcpp was not designed for cygwin, and as of the time of writing, there are three things you have to do to get it to build normally.
Download and extract the current version of ncmpcpp. At time of writing this is 6.5. It is important to download the stable version – I have had luck building the git versions in the past, but now the stable version is the only manageable one
Extra step #1:
export AM_FORCE_VERSION=1.9 export NOCONFIGURE=true
Extra step #2:
Extra step #3:
In src/status.cpp, add the following to the top, with the rest of the inclusions.
#include <sys/socket.h> #include <sys/types.h>
And delete the following line:
You should have no errors at this point. If you do, carefully review the steps. If you still do, feel free to contact me.