Posts Tagged ‘cygwin’

ogc – Reloaded on Linux

August 4th, 2009 subogero Comments off

I wanted to compile ogc for Linux first thing in the morning. Went surprisingly smoothly with a few tricks:

  • the target is called ogc, not ogc.exe
  • I had to remove the \r characters from each end-of-line of the usage and version text file sources
  • Installation to /usr/bin works only with the magic sudo command.

Later I added install, uninstall and clean rules, and prepared the makefile to run on both Linux and cygwin, detecting Windows from the presence of the SYSTEMROOT variable.

Finally I put it under revision control with git. But that’s another story.

Categories: posts Tags: , ,

cygwin – How it All Started

July 25th, 2009 subogero Comments off

At the very respectable company where I spend my days, we’ve been using a mysterious cygwin shell for building software projects. Don’t ask me why. I’d been wondering what the bash2.02> prompt was supposed to mean. Sometimes I overheard sentences about how good the GNU make was, or how cool it was to pipe sed into tr, but it’d be overstating the facts that I understood them.

Considering myself an embedded software wizard? Check.
Understanding our makefile? Nope.

Until the day came, when upgrading to the newest version of cygwin was proposed to achieve compatibility with a code-checking tool. And the loser to do this job was yours truly. So I upgraded and, guess what, our make ceased to work. After consulting some gurus in the office and the internet it turned out that cygwin had stopped supporting Win32 path formats altogether. Fantastic.

My beloved drive letters (C:\) were blown out of the window.
In came a weird /cygdrive/c/ format.
In case of a Unix-hacker, the terms root directory and mount-point spring to the lips.

It was suggested that I could fix this with the bloody sed in a matter of a few seconds, thank you very much.

And so it started…

Categories: posts Tags: ,