Skip to content

Compiling with Cygwin

dmatsumoto edited this page Oct 18, 2011 · 1 revision

I am a definite noob when it comes to compiling any open source code with GCC (i.e. anything that requires a makefile... I only use Visual Studio). I wanted to give Mandoline a try today, so I gave it a shot.

As the instructions say, you will need GCC/G++ and make. You'll also want to install autoconf and automake.

Depending upon your cygwin setup, you might immediately run into weird errors when executing ./configure. It will mention \r, which is a clue that there is an issue with the files being formatted for editing under DOS. My cygwin environment is set up for Unix compatibility.

The solution is simple. There are 5 files that need to be converted from DOS to Unix:

  1. configure
  2. missing
  3. config.sub
  4. config.guess
  5. depcomp

For each of the filenames listed above, simply run the utility "d2u" and have it overwrite the existing file, i.e.

d2u -- configure d2u -- missing d2u -- config.sub d2u -- config.guess d2u -- depcomp

After following these steps, I'm able to execute ./configure and make, and mandoline.exe gets generated! That said, I don't know if it actually is working. Skeinforge finished on my slow laptop about 5 minutes ago, and Mandoline is spewing tons of information in the console, which could actually be slowing it down.

Clone this wiki locally