Thursday, June 22, 2017

Microsoft Visual Studio 2017 Command Line

The command line batch files have been moved... The new location for vcvarsall.bat and friends is:
  • C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build
Of course, you could always just go to the Start Menu and use
  • Visual Studio 2017 →  Visual Studio Tools → Developer Command Prompt for VS 2017

Wednesday, May 31, 2017

Latest Glade binaries on Windows

I wanted to use the latest version of Glade on Windows, but the pre-built binaries available on the official site were quite old. After poking around, it appeared that MSYS2 had a package for this. I installed the MSYS2 package and was ready to rock.

Afterwards, I realized I wanted to distribute just the Glade binaries. While I recognize that there are a number of projects that do this for you (i.e. build a Windows installer from an MSYS2 package), I decided to experimented by hand.

  1. I got the list of files that were installed with the Glade package. I used this command:
    pacman -Qlq mingw-w64-x86_64-glade
  2. I copied those files to a new directory tree.
  3. I copied over the DLLs that glade.exe depended on.
  4. I copied over mingw64/lib/gdk-pixbuf-2.0
  5. I copied over mingw64/share/glib-2.0
  6. I copied over mingw64/share/icons
Let's hope that was everything!

Monday, January 30, 2017

Simple Web Server

I needed to stand up a simple web server to test some WebGL code. It turns out that if you just need a basic HTTP server, Python has you covered in their standard library! You just run the following from what you want to be your web root folder:

python -m SimpleHTTPServer