Archive

Posts Tagged ‘SYSTEMROOT’

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: , ,